Group Perms update for argus client #34
Conversation
|
Thanks for the contribution! It looks like @sanjana-sfdc @snehabas is an internal user so signing the CLA is not required. However, we need to confirm this. |
| :: | ||
|
|
||
| logging.info("Looking up existing group with groupID %s", groupID) | ||
| groupObj = |
There was a problem hiding this comment.
is this required? Looks incomplete
| params=self.get_all_req_opts.get(REQ_PARAMS, None), | ||
| dataObj=self.get_all_req_opts.get(REQ_BODY, None)))) | ||
| self.get_all_req_opts.get(REQ_PATH, None), | ||
| params=self.get_all_req_opts.get(REQ_PARAMS, |
| if not get_all_req_opts: | ||
| get_all_req_opts = {} | ||
| get_all_req_opts.setdefault(REQ_PATH, "grouppermission") | ||
| print("init happening") |
| return updatedGroup | ||
|
|
||
| def delete_permissions_for_group(self, grouppermission): | ||
| deleted_permission = None |
There was a problem hiding this comment.
Define this closer to where it is used like near line 501
| perms_to_delete = grouppermission.permissionIds | ||
| if perms_to_delete == []: | ||
| raise ValueError("Permission is not already assigned and hence cant be deleted") | ||
| if tuple(perms_to_delete) in self._coll: |
There was a problem hiding this comment.
do we need this check? I think we should make the request anyway even if it is not in the collection
| @@ -0,0 +1,119 @@ | |||
| # | |||
There was a problem hiding this comment.
we don't need to check this file in
| "permissionIds": [0,1,2] | ||
| } | ||
| groupPermission_E = { | ||
| "type": "group", |
There was a problem hiding this comment.
You could use the variable groupPermissionIdentifier here
|
@snehabas I made some additional changes to your formatting PR and merged it. Could you please rebase this PR? |
No description provided.