Skip to content

Use new GraphQL endpoint for overage modal

Diana Zubova requested to merge dz/378649-use-be-service-for-overage into master

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:

  1. Create a group, add a premium subscription for one seat
  2. Visit this group page, then Group Information -> Members http://localhost:3000/groups/<your-group>/-/group_members.
  3. Click the Invite members button.
  4. Add a member in a dropdown and click Invite.
  5. Check the modal.

To test groups invite:

  1. Create a group, add a premium subscription for one seat
  2. Visit this group page, then Group Information -> Members http://localhost:3000/groups/<your-group>/-/group_members.
  3. Click the Invite group button.
  4. Add a group in a dropdown and click Invite.
  5. 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.

Edited by Diana Zubova

Merge request reports