-
Notifications
You must be signed in to change notification settings - Fork 971
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
[frontend/backend] New user shouldn't be assigned default groups if other groups are specified (#9234) #9274
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9274 +/- ##
==========================================
+ Coverage 65.37% 65.38% +0.01%
==========================================
Files 624 624
Lines 59660 59663 +3
Branches 6686 6687 +1
==========================================
+ Hits 39000 39010 +10
+ Misses 20660 20653 -7 ☔ 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.
Now that default groups are set in the form in the UI I don't think we should check on the backend if nothing is set then set the defaults. Because, in my opinion, as a user if I clear the field with the defaults, it's not to see the user created with defaults anyway after all.
Would be nice to have product opinion
It was in case users are created from the API... If no groups are specified, the user should be added to the default groups (we don't create users with no groups). @nino-filigran @romain-filigran What do you think? |
I agree that we need to also have a check at BE side in case you create through API only. Your comment makes sense @Archidoit |
could you update user-test to test these changes ? There is at least the part "User has no capability query behavior" that removes the default_assignation, which is not necessary anymore. And maybe add a test to make sure when we create a user with a specific group, we don't assign the default group to the user. |
@SouadHadjiat I don't understand why you want we to remove the default_assignation of 'User has no capability query behavior'. If so, the user will be affected to the default group since there are no groups specified in the user to create input. |
6e8e52a
to
d0a5c2e
Compare
@SouadHadjiat tests written :) |
d0a5c2e
to
321f63f
Compare
Waiting for Product decision about the functional breaking change (@romain-filigran ) |
Proposed changes
Related issues
#9273
#9234