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 2019/05/13 13:53:20 UTC
[airavata-django-portal] 02/02: AIRAVATA-3038 Fetch creationTime
and update new group resource profile
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 609b06838b14dc0a4deeba6dcaa6153170b27c6e
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon May 13 09:48:18 2019 -0400
AIRAVATA-3038 Fetch creationTime and update new group resource profile
---
django_airavata/apps/api/views.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index b6c926b..75151a9 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -935,6 +935,10 @@ class GroupResourceProfileViewSet(APIBackedViewSet):
group_resource_profile_id = self.request.airavata_client.createGroupResourceProfile(
authzToken=self.authz_token, groupResourceProfile=group_resource_profile)
group_resource_profile.groupResourceProfileId = group_resource_profile_id
+ # Update the creationTime field on the group resource profile
+ new_group_resource_profile = self.request.airavata_client.getGroupResourceProfile(
+ self.authz_token, group_resource_profile_id)
+ group_resource_profile.creationTime = new_group_resource_profile.creationTime
def perform_update(self, serializer):
grp = serializer.save()