Use new GraphQL endpoint for overage modal
What does this MR do and why?
This MR removes overage calculations from client side, adds a graphql call to GitLab API to and wires the overage modal with it's results.
Related to #378649 (closed)
Screenshots or screen recordings
There is no visible changes
Adding new member to a group
Screen_Recording_2022-11-07_at_15.24.51
Adding new group to a group
Screen_Recording_2022-11-10_at_11.52.39
How to set up and validate locally
Enable the invite modal
Feature.enable(:overage_members_modal)
Make sure that you are running GitLab as SaaS and have check_namespace_plan
setting 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 members
button. - 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 group
button. - 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.
Edited by Diana Zubova