-
Notifications
You must be signed in to change notification settings - Fork 442
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
RBAC resource sharing #2320
RBAC resource sharing #2320
Conversation
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
E2E template updates in |
Quickstart template updates in |
E2E template updates in |
NLP template updates in |
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.
Got two larger questions. Besides those you got my 🦭 of approval.
}, | ||
) | ||
@handle_exceptions | ||
def update_user_resource_membership( |
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.
Correct me if I'm wrong. This handles adding a Permission to a User for a Resource. How would I remove a permission?
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.
You would remove a permission by sending an empty list of actions
. I think I might have to document that in the docstring though, or do you think having two separate endpoints makes more sense. It's definitely a little confusing with the RBACInterface.share_resource(...)
method name though, maybe that should have two separate methods or it should also be called RBACInterface.update_resource_membership(...)
?
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.
+1 for the renaming
…enml into feature/rbac-resource-sharing
E2E template updates in |
…enml into feature/rbac-resource-sharing
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.
🦭
* Add endpoint for resource sharing * Auto-update of E2E template * Auto-update of Starter template * Auto-update of E2E template * Auto-update of NLP template * Rename sharing methods * Auto-update of E2E template * Fix docstrings --------- Co-authored-by: GitHub Actions <[email protected]>
* Add endpoint for resource sharing * Auto-update of E2E template * Auto-update of Starter template * Auto-update of E2E template * Auto-update of NLP template * Rename sharing methods * Auto-update of E2E template * Fix docstrings --------- Co-authored-by: GitHub Actions <[email protected]>
Describe changes
This PR adds a new endpoint to enable sharing single resources using RBAC.
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes