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 3b9c8e6d635bd5e3f0f0aa2a298ecd3e974a971b
Author: Marcus Christie <machr...@iu.edu>
AuthorDate: Thu Feb 8 12:05:43 2018 -0500

    Fix getting all groups
---
 django_airavata/apps/api/views.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/django_airavata/apps/api/views.py 
b/django_airavata/apps/api/views.py
index dd90a1b..361ad5f 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -193,14 +193,9 @@ class GroupViewSet(APIBackedViewSet):
 
     serializer_class = serializers.GroupSerializer
     lookup_field = 'group_id'
-    pagination_class = APIResultPagination
-    pagination_viewname = 'django_airavata_api:group-list'
 
     def get_list(self):
-        class GroupMemberResultIterator(APIResultIterator):
-            def get_results(self, limit=-1, offset=0):
-                return self.request.sharing_client.getGroups(self.gateway_id, 
limit, offset)
-        return GroupMemberResultIterator()
+        return 
self.request.profile_service['group_manager'].getGroups(self.authz_token)
 
     def get_instance(self, lookup_value):
         return self.request.airavata_client.getGroup(self.authz_token, 
self.gateway_id, lookup_value)

-- 
To stop receiving notification emails like this one, please contact
machris...@apache.org.

Reply via email to