You need to sign in or sign up before continuing.
Add modal to warn group owners the impact of changing user cap
What does this MR do and why?
Relates to #330028 (closed)
This adds a modal to warn the group owner that pending users will be approved in case the UserCap is increased.
Screenshots or screen recordings
How to set up and validate locally
rails console
my_group = Group.find(<group_id>)
Feature.enable(:saas_user_caps, my_group)
- Visit the group's setting page on the browser (e.g.
http://localhost:3000/groups/my_group/-/edit#js-permissions-settings
) - Go to "Permissions, LFS, 2FA" > "Membership > User Cap". Set it to
1
. - Add new users to the group by visiting "Group information > members" (e.g.
http://localhost:3000/groups/my_group/-/group_members
) - New users should be on the invited tab.
- Back to the settings page, change User Cap to any higher number
- You should see the modal as in the screenshot
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Sheldon Led