Skip to content

Add modal to warn group owners the impact of changing user cap

Sheldon Led requested to merge led/330028-add-warn-when-changing-user-caps into master

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

group_owner_user_cap_warn_modal

How to set up and validate locally

  1. rails console
  2. my_group = Group.find(<group_id>)
  3. Feature.enable(:saas_user_caps, my_group)
  4. Visit the group's setting page on the browser (e.g. http://localhost:3000/groups/my_group/-/edit#js-permissions-settings)
  5. Go to "Permissions, LFS, 2FA" > "Membership > User Cap". Set it to 1.
  6. Add new users to the group by visiting "Group information > members" (e.g. http://localhost:3000/groups/my_group/-/group_members)
  7. New users should be on the invited tab.
  8. Back to the settings page, change User Cap to any higher number
  9. 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.

Edited by Sheldon Led

Merge request reports