Show banner when all seats used
What does this MR do and why?
Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/441795 – this MR is showing a notifications to Owner when seats used equals seats in subscription. Note that, once dismissed the notification will not currently re-appear. The dismissal frequency will be handled with a follow-up MR (based on this spike: !148652 (closed)).
Note: the work is behind a feature flag.
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
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Free Group | All seats used: Owner | All seats used: Non Owner | Not all seats used |
---|---|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- In rails console enable the experiment fully
Feature.enable(:block_seat_overages)
- Have a group w/ a subscription plan and X users
- Make sure all seats are occupied
- Visit any group or project member pages such as
http://127.0.0.1:3000/groups/flightjs/-/group_members
- The banner should display
Note: the code relies on reactive cache. This can sometimes be flaky. One way to populate it was to restart gdk
.