dinukadesilva commented on a change in pull request #52:
URL:
https://github.com/apache/airavata-django-portal/pull/52#discussion_r533832101
##########
File path: django_airavata/apps/api/views.py
##########
@@ -970,6 +970,16 @@ def get(self, request, format=None):
data_product, context={'request': request})
return Response(serializer.data)
+ def put(self, request, format=None):
+ data_product_uri = request.query_params['product-uri']
+ data_product = request.airavata_client.getDataProduct(
+ request.authz_token, data_product_uri)
+
+ return UserStoragePathView().put(
+ request=request,
+
path=data_product.replicaLocations[0].filePath.replace("file://localhost:/tmp/default-admin/",
"")
Review comment:
Actually user_storage.get_rel_path didn't do that. Instead, I moved this
to the serializer and improved the regex
----------------------------------------------------------------
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]