From 4077051a887048a46ee0165b6dd58d9755a70e9d Mon Sep 17 00:00:00 2001 From: Pallab Pain Date: Fri, 1 Sep 2023 13:56:53 +0530 Subject: [PATCH] feat(usergroup): supports user group role in projects --- rapyuta_io/clients/user_group.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rapyuta_io/clients/user_group.py b/rapyuta_io/clients/user_group.py index 528c3c62..b9b9279d 100644 --- a/rapyuta_io/clients/user_group.py +++ b/rapyuta_io/clients/user_group.py @@ -35,6 +35,7 @@ def __int__(self, guid=None, name=None, description=None, self.members = members self.admins = admins self.projects = projects + self.role_in_projects = [] @staticmethod def validate(self, guid, name, description, creator, members, admins, projects): @@ -58,7 +59,8 @@ def get_serialize_map(self): 'creator': 'creator', 'members': 'members', 'admins': 'admins', - 'projects': 'projects' + 'projects': 'projects', + 'userGroupRoleInProjects': 'role_in_projects', } def get_deserialize_map(self): @@ -69,5 +71,6 @@ def get_deserialize_map(self): 'creator': 'creator', 'members': list_field('members', User), 'admins': list_field('admins', User), - 'projects': list_field('projects', Project) + 'projects': list_field('projects', Project), + 'role_in_projects': 'userGroupRoleInProjects' }