Skip to content

Conversation

@Kartikkumar-Shetty
Copy link
Contributor

@Kartikkumar-Shetty Kartikkumar-Shetty commented Feb 16, 2023

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

Base automatically changed from user_identity_access_processing to main February 17, 2023 07:11
vedharish
vedharish previously approved these changes Feb 17, 2023
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)
Copy link
Contributor

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

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 to pass approver as well? since default value is None and its passed to "processing" method.

Copy link
Contributor Author

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

@larsendsouza larsendsouza Feb 17, 2023

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.

@Kartikkumar-Shetty Kartikkumar-Shetty merged commit a64d230 into main Feb 17, 2023
@Kartikkumar-Shetty Kartikkumar-Shetty deleted the fixes-and-refactor branch February 17, 2023 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants