Prevent Adding New Members When Block Seat Overages is Enabled
What does this MR do and why?
When Block Seat Overages is enabled for a root group, total billable members cannot exceed the number of seats in the subscription.
Reject requests to add new members to groups or projects if block seat overages is enabled for the root group and all the seats in the subscription are full.
This change is behind a feature flag.
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/443383
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.
Screen recording
Please see the demo video of this MR here: https://gitlab.com/gitlab-org/gitlab/-/issues/443383#note_1796216272
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Enable the feature flag:
Feature.enable(:block_seat_overages, group)
- Run in simulating saas mode.
- Now you should see the behavior in the video whenever you try to add users in excess of the seats in your subscription for the group.
Edited by Jason Goodman