Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Perms update for argus client #34

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

snehabas
Copy link
Contributor

No description provided.

@salesforce-cla
Copy link

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.

@snehabas snehabas closed this Aug 12, 2021
@snehabas snehabas reopened this Aug 12, 2021
::

logging.info("Looking up existing group with groupID %s", groupID)
groupObj =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

formatting is off

if not get_all_req_opts:
get_all_req_opts = {}
get_all_req_opts.setdefault(REQ_PATH, "grouppermission")
print("init happening")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

return updatedGroup

def delete_permissions_for_group(self, grouppermission):
deleted_permission = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 @@
#
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need to check this file in

}
groupPermission_E = {
"type": "group",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use the variable groupPermissionIdentifier here

@hdara-sfdc
Copy link
Contributor

@snehabas I made some additional changes to your formatting PR and merged it. Could you please rebase this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants