You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/02/23 18:25:37 UTC
[airavata-django-portal] branch develop updated: Use
data_product_uri overload
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
The following commit(s) were added to refs/heads/develop by this push:
new 789cf4e Use data_product_uri overload
789cf4e is described below
commit 789cf4e6cc4c864491d04c66df3344f2097e8ab5
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Feb 23 13:24:31 2021 -0500
Use data_product_uri overload
---
django_airavata/apps/api/views.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index da95510..5ab2bb0 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -427,14 +427,12 @@ class ExperimentViewSet(mixins.CreateModelMixin,
def _copy_experiment_input_uri(
self,
data_product_uri):
- source_data_product = self.request.airavata_client.getDataProduct(
- self.authz_token, data_product_uri)
- if user_storage.exists(self.request, source_data_product):
+ if user_storage.exists(self.request, data_product_uri=data_product_uri):
return user_storage.copy_input_file(
- self.request, source_data_product)
+ self.request, data_product_uri=data_product_uri)
else:
log.warning("Could not find file for source data "
- "product {}".format(source_data_product))
+ "product {}".format(data_product_uri))
return None
def _update_workspace_preferences(self, project_id,