Skip to content

Only show Ultimate group user additional charges modal when opted in to reconciliations

Proposal

Product requirements

The modal to warn Ultimate accounts of user overages was introduced in this issue.

We need to ensure that the modal only shows for Ultimate users who have reconciliation enabled.

Technical details

The GraphQL API for reconciliation status was added in this isssue. The CDot API was introduced in this MR and an example consumption is in this MR.

In shouldShowOverageModal, we will need to query the getReconciliationStatus endpoint.

To verify whether the user has an Ultimate license, we will need to check the ? TODO endpoint.

Implementation Plan for User Overage Modal

Step Notes Status
Add feature flag :show_overage_on_role_promotion 1 MR either frontend or backend workflowcomplete
Add a Vue component that would be shown every time a user is being promoted from Guest to a higher role. frontend workflowcomplete
Create a GraphQL resolver to grab Ultimate, reconciliation, and overage status backend customers-gitlab-com#5741 (closed) workflowcomplete
Consume backend GraphQL resolver evaluation and render modal accordingly frontend (You are here) workflowready for development
Rollout :show_overage_on_role_promotion 1 MR either frontend or backend workflowblocked

Availability & Testing

Only show Ultimate group user additional charges modal when opted in to reconciliations

Let's consider writing tests to ensure the behavior of this title. Units/Features/View specs

Edited by Diana Zubova