Ensure overage modal appears for Projects
What does this MR do and why?
This fixes two bugs:
- Ensures the overage modal appears when adding members to a Project.
- Ensures the overage modal shows the top-level group name (which is where the subscription is applied to)
References
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/504131
Screenshots or screen recordings
See below
How to set up and validate locally
Setup
- Make sure your GDK is linked to Cdot and you have Zsim running
- Create a group
- Go to Settings -> Billing
- Click on "Upgrade to Premium"
- Buy the subscription for 1 seat
- Return to the group's billing page in Gitlab
- If the billing page is still showing that you are using the "Free Plan" you can force a sync from a Cdot rails console with
Gitlab::Namespaces::UpdatePlanInfoService.new(Order.last, force_sync: true).execute
No harm testing existing behavior
- From the Group, go to Manage -> Members
- Click "Invite Members"
- Invite a new user or random email to the group with "maintainer" or higher access level.
- Notice the overage modal triggers with the correct group name
Testing new fixed behavior
- Create a new Project under the group
- Under the new Project, go to Manage -> Members
- Click on "Invite Members"
- Invite a new user or random email to the Project with "maintainer" or higher access level.
-
Before: the overage modal would not trigger. After: Overage modal appears with correct top-level group name
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Ryan Cobb

