This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch mft-integration
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git


The following commit(s) were added to refs/heads/mft-integration by this push:
     new 7d06516  AIRAVATA-3420 For backwards compat, keep file hidden attribute
7d06516 is described below

commit 7d06516eebd73bb81680ba1838681b7bacacd183
Author: Marcus Christie <[email protected]>
AuthorDate: Wed Apr 28 16:56:58 2021 -0400

    AIRAVATA-3420 For backwards compat, keep file hidden attribute
---
 airavata_django_portal_sdk/user_storage/api.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/airavata_django_portal_sdk/user_storage/api.py 
b/airavata_django_portal_sdk/user_storage/api.py
index 6159084..1c47f29 100644
--- a/airavata_django_portal_sdk/user_storage/api.py
+++ b/airavata_django_portal_sdk/user_storage/api.py
@@ -387,6 +387,8 @@ def get_file_metadata(request, path, 
storage_resource_id=None):
             mime_type = data_product.productMetadata['mime-type']
         file['data-product-uri'] = data_product_uri
         file['mime_type'] = mime_type
+        # TODO: remove this, there's no need for hidden files
+        file['hidden'] = False
         return file
     else:
         raise ObjectDoesNotExist("File does not exist at that path.")

Reply via email to