-
Notifications
You must be signed in to change notification settings - Fork 77
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
[Backend] Make New Users Viewers By Default [#2866] #2900
Conversation
… created in the background so it is given a VIEWER role by default. - The separate endpoints for creating and editing user permissions, require that a "roles" key is in the request. If that "roles" value is an empty list, that effectively adjusts the user to have no roles. For the permissions endpoints intentionally allow the user to set no roles if they want to.
Passing run #977 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2900 +/- ##
=======================================
Coverage 86.60% 86.60%
=======================================
Files 299 299
Lines 16814 16815 +1
Branches 2148 2148
=======================================
+ Hits 14562 14563 +1
Misses 1841 1841
Partials 411 411
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
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.
ah, I'm relieved the UI picked up on the change without any problems 😌 thanks for the update!!
Really appreciate all the review you've been doing for me the last couple days @allisonking 🏆 |
Argh changelog 😠 |
Closes #2866
Code Changes
Steps to Confirm
Pre-Merge Checklist
CHANGELOG.md
Description Of Changes
Give new users a Viewer role by default. Also require that the get/create permissions endpoints specify a role key in the request (this is new behavior, it was previously given an empty list by default), and assert that an empty list will remove the users roles (this was existing behavior, just adding tests)