dinukadesilva commented on a change in pull request #52:
URL: 
https://github.com/apache/airavata-django-portal/pull/52#discussion_r547369486



##########
File path: django_airavata/apps/api/serializers.py
##########
@@ -513,6 +515,13 @@ def get_isInputFileUpload(self, data_product):
         request = self.context['request']
         return user_storage.is_input_file(request, data_product)
 
+    def get_path(self, data_product):
+        """Getter for path field."""
+        if len(data_product.replicaLocations) > 0:
+            return re.sub(r'.*/tmp/[^/]*/', "", 
user_storage._get_replica_filepath(data_product))

Review comment:
       
https://github.com/apache/airavata-django-portal/pull/52/files#diff-c7351d24aefb0b542f4eb165ac38b5271701a7fd111e44ed45614e181a4df817R59




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to