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.
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 UpdateRole and add display names to invite-related responses #3689
Refactor UpdateRole and add display names to invite-related responses #3689
Changes from all commits
7b943cb
7808543
60711c5
1d54fdc
4eb2fe6
8cda230
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This feels a little weird -- it feels like we should either show the output of
role grant list
, or only include details for the current invitation / grant.In particular, if we're updating a grant, we will get back the code as a one-time thing, and we should specifically print something like:
Where $URL is something that includes the code and will redirect them to the Stacklok UI if needed.
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.
(Some part of this could be a TODO for later...)
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.
Partially addressed it in #3710
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.
I'm not a big fan of having separate
sub
andemail
parameters -- can we make this just one parameter (e.g.sub
), and then have the backend determine whether this should be an invite or just a role grant?That avoids issues where (for example), the user is already a project member, but then the admin gets an invite code when it should have been a direct grant.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.