Add subscription information to duo pro card on usage quotas page
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 |
![]() |
![]() |
SM |
![]() |
![]() |
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:
- Setup and start CustomersDot.
- Create or locate a group that is not Free and has duo pro seats.
- Visit
http://localhost:3000/groups/<GROUP_NAME_ABOVE>/-/usage_quotas#code-suggestions-usage-tab
. - You should see the
Duo Pro
tab. Confirm the changes above. - For SM, visit
http://localhost:3000/admin/code_suggestions
.
Related to #462535
Edited by Minahil Nichols