Skip to content

Auto approve pending members when disabling user cap

Vijay Hawoldar requested to merge vij-auto-approve-user-cap into master

What does this MR do and why?

This change means that when a group admin updates the user cap setting to disable it (i.e. turning it off once it's been enabled), we will now auto-approve any pending members.

Members added to a group that is over it's user cap get put into a pending state, which means they don't have access, and importantly, don't become billable, until they have been approved.

Group admins are now warned that disabling the setting will auto-approve any pending members.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot_2024-01-30_at_14.38.26

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Enable the user cap setting in group settings (Group -> Settings -> General -> User Cap), setting it to a low number e.g. 1
  2. Invite a new user to your group with a billable role, e.g. maintainer. They will be added in a pending state and visible under Group -> Settings -> Usage Quotas -> Pending Members
  3. Update the Group's settings to disable the user cap (i.e. leaving it empty) - you should see a modal
  4. The pending member should now be approved and displayed under the seats tab of the Usage Quotas page
Edited by Vijay Hawoldar

Merge request reports