Use new Reconciliation endpoint for overages
What does this MR do and why?
What?
Use Reconciliation endpoint of CustomersDot to provide information about subscription eligibility. This endpoint is used to define if we should show information about subscription overage for the group.
Why?
Currently we only show overage to users who purchased the subscription. Reconciliation allows all users to get information about subscription reconciliation eligibility => all users who are able to add users/groups to a group will see the overage warning.
Important
Don't merge before https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/6260 is deployed to production
Related to #386281 (closed)
Screenshots or screen recordings
Before: no overage modal is shown for users that didn't purchase the subscription
After: show overage modal for users that didn't purchase the subscription
How to set up and validate locally
-
Check out https://gitlab.com/gitlab-org/customers-gitlab-com/-/tree/dz/386281-add-seats-reconciliation-endpoint branch and run CustomerDot locally.
-
Make sure that you are running GitLab as SaaS and have
check_namespace_plansetting enabled
::Gitlab::CurrentSettings.update(check_namespace_plan: true)
To test members invite:
- Create a group, add a premium subscription for one seat
- Visit this group page, then Group Information -> Members
http://localhost:3000/groups/<your-group>/-/group_members. - Click the
Invite membersbutton. - Add a member in a dropdown and click
Invite. - Check the modal.
To test groups invite:
- Create a group, add a premium subscription for one seat
- Visit this group page, then Group Information -> Members
http://localhost:3000/groups/<your-group>/-/group_members. - Click the
Invite groupbutton. - Add a group in a dropdown and click
Invite. - Check the modal.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.







