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

fix: pass role through to api directly to better capture misspelled roles #337

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Apr 9, 2024

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated.
  • Changelog entry has been written

Fixes the error where a mistyped role name would result in the user being added as a guest (fallback). It will now check if the --role flag is provided, and if so provides the value of this to the mutation, which if the user has typed incorrectly will result in a graphql error. The guest fallback remains for times where the --role flag is omitted.

Closing issues

closes #336

@shreddedbacon shreddedbacon marked this pull request as ready for review April 9, 2024 22:59
@shreddedbacon shreddedbacon changed the title fix: pass role through to api directly to better capture misspelled r… fix: pass role through to api directly to better capture misspelled roles Apr 9, 2024
Copy link
Member

@rocketeerbkw rocketeerbkw left a comment

Choose a reason for hiding this comment

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

Tested and working as expected now 👍

@shreddedbacon shreddedbacon merged commit 269759d into main Apr 10, 2024
4 checks passed
@shreddedbacon shreddedbacon deleted the group-role-fix branch April 10, 2024 00:50
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.

add user-group doesn't error on invalid role
2 participants