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

Refactor S3 sharing logic in new version of sharing management #183

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

LEUNGUU
Copy link
Contributor

@LEUNGUU LEUNGUU commented Oct 31, 2022

Feature or Bugfix

  • Refactoring

Detail

  • Refactor s3 folder sharing. Include all the s3 manipulate actions into a parent class called 'S3ShareManager' in s3_share_manager.py. S3ShareApproval and S3ShareRevoke will inherit S3ShareManager and perform the specific workflow.

Relates

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@LEUNGUU LEUNGUU requested a review from dlpzx October 31, 2022 06:55
@LEUNGUU LEUNGUU changed the title refactor s3 sharing logic Refactor S3 sharing logic in new version of share management Oct 31, 2022
@LEUNGUU LEUNGUU changed the title Refactor S3 sharing logic in new version of share management Refactor S3 sharing logic in new version of sharing management Oct 31, 2022
sharing_folder.manage_bucket_policy()
sharing_folder.grant_target_role_access_policy()
sharing_folder.manage_access_point_and_policy()
sharing_folder.update_dataset_bucket_key_policy()
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the handling of the variables by using the cls at item level. Very nice

@dlpzx dlpzx merged commit ccba328 into fix/issue-142 Nov 2, 2022
@dlpzx dlpzx deleted the refactor-s3-sharing branch February 9, 2023 06:34
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.

2 participants