-
Notifications
You must be signed in to change notification settings - Fork 13
refactor: replacing access type with access tag #73
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
Conversation
…into user_identity_access_processing
Adding a new grant and revoke method, adding transactions scope for offboarding
…into user_identity_access_processing
… unrequired params, using the new method for access grant
Access/userlist_helper.py
Outdated
| for mapping in new_user_access_mapping: | ||
| if mapping.is_approved(): | ||
| accept_request(user_access_mapping = mapping) | ||
| accept_request(user_access_mapping = mapping, is_migrated=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approval_type parameter in accept_request has no default value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to pass approver as well? since default value is None and its passed to "processing" method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to pass it in case of migration, this is handled inside the function
| raise Exception("Request Not approved") | ||
|
|
||
| user_access_mapping.processing() | ||
| user_access_mapping.processing(approval_type = approval_type, approver=approver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case of __change_identity_and_transfer_access_mapping (is_migrated=true) , do we need to set approvers again?
Do we need to handle that case separately in processing() method? or we can remove setting approver from processing method.
removing unused parameters, using the new method for access grant.
moving the approval type check and status change code to models
adding the call to the accept_request in the accept access request function