-
Notifications
You must be signed in to change notification settings - Fork 44
feat: add SetOrganizationMemberRole RPC #1471
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
dc05755
chore: update proton commit for SetOrganizationMemberRole RPC
whoAbhishekSah aaa0520
feat: implement SetOrganizationMemberRole RPC
whoAbhishekSah aa8461a
docs: add rationale for org-only policy filter in SetMemberRole
whoAbhishekSah 139bba1
chore: update proton commit after rebase
whoAbhishekSah 7f7aa9b
chore: remove unintended docs files
whoAbhishekSah 9d74518
fix: SetOrganizationMemberRole validation and owner check
whoAbhishekSah df5ff66
style: fix indentation in service_test.go
whoAbhishekSah f5560d7
refactor: simplify RoleService by using role.Role directly
whoAbhishekSah 8e21f03
style: improve error handling readability in SetMemberRole
whoAbhishekSah cdf9491
refactor: rename roleID to newRoleID for clarity in SetMemberRole
whoAbhishekSah 9e3922b
refactor: split SetMemberRole into smaller functions
whoAbhishekSah 4e6b4cd
refactor: move role validation from handler to service
whoAbhishekSah c071f6a
refactor: consolidate validation into validateSetMemberRoleRequest
whoAbhishekSah 24a6202
test: add table-driven tests for SetOrganizationMemberRole handler
whoAbhishekSah 3691a82
test: add unit tests for SetMemberRole service function
whoAbhishekSah 5c4dc8b
fix: validate user_id is a valid UUID in SetOrganizationMemberRole
whoAbhishekSah 488fb21
fix: use distinct error for last owner role constraint
whoAbhishekSah 02a3bc2
feat: use proto UUID validation for SetOrganizationMemberRole
whoAbhishekSah 5cc97fc
refactor: address review feedback on SetMemberRole
whoAbhishekSah bb411e6
fix: require user to be org member before changing role
whoAbhishekSah 9973227
feat: validate role is valid for organization scope
whoAbhishekSah 6979c5b
fix: handle nil UUID for global role org_id check
whoAbhishekSah eae912d
chore: update proton commit and simplify role validation
whoAbhishekSah 39f8e94
chore: regenerate proto with SearchCurrentUserPATsRequest rename
whoAbhishekSah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.