Skip to content

Show banner when all seats used

Angelo Gulina requested to merge ag/441795-banner-when-all-seats-used into master

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
Screenshot_2024-03-28_at_13.18.41 Screenshot_2024-03-28_at_13.18.44 Screenshot_2024-03-28_at_16.18.42 Screenshot_2024-03-28_at_13.18.46

How to set up and validate locally

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

  1. In rails console enable the experiment fully
    Feature.enable(:block_seat_overages)
  2. Have a group w/ a subscription plan and X users
  3. Make sure all seats are occupied
  4. Visit any group or project member pages such as http://127.0.0.1:3000/groups/flightjs/-/group_members
  5. 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.

Edited by Angelo Gulina

Merge request reports