Skip to content

Add subscription information to duo pro card on usage quotas page

Minahil Nichols requested to merge 462535-sub-info-quotas-page into master

What does this MR do and why?

Solves https://gitlab.com/gitlab-org/gitlab/-/issues/462535.

We should add subscription information to the Duo Pro card on usage quotas page for Saas & SM.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Subscription Before After
Saas image image
SM image image

How to set up and validate locally

General setup

Enable the following feature flags in the Rails console (bundle exec rails c):

Feature.enable(:code_suggestions)
Feature.enable(:code_suggestions_tokens_api)
Feature.enable(:purchase_code_suggestions)
Feature.enable(:self_managed_code_suggestions)
Feature.enable(:hamilton_seat_management)

The following feature flags are needed on the Customers App:

  1. Setup and start CustomersDot.
  2. Create or locate a group that is not Free and has duo pro seats.
  3. Visit http://localhost:3000/groups/<GROUP_NAME_ABOVE>/-/usage_quotas#code-suggestions-usage-tab.
  4. You should see the Duo Pro tab. Confirm the changes above.
  5. For SM, visit http://localhost:3000/admin/code_suggestions.

Related to #462535

Edited by Minahil Nichols

Merge request reports