Create new tab for Code Suggestions in Usage Quota
What does this MR do and why?
Create new tab for Code Suggestions in Usage Quota
- Add a helper to control the visibility of the new tab
- Create a new app for code suggestions tab
- Adds tests
Note: This MR adds only the new tab and the visibility logic. Content for the tab to be added in follow-up MRs.
Screenshots or screen recordings
Scenario | Screenshot |
---|---|
With feature flag enabled for group with subscription in SaaS mode (New tab for Code Suggestions should be visible) | |
With feature flag enabled for group with subscription in SM mode (No new tab for Code Suggestions) | |
With feature flag enabled for group with no subscription in SaaS mode (No new tab for Code Suggestions) | |
With feature flag disabled for group with subscription in SaaS mode (No new tab for Code Suggestions) |
How to set up and validate locally
- Customers Dot needs to be setup in order to view the billing page for a group
Enable feature flag
In your rails console:
Feature.enable(:enable_hamilton_in_usage_quotas_ui)
Group with subscription
- Create a Group
- Buy a Subscription for your group from
Settings
>Billing
SaaS mode
- Start GDK in SaaS mode
GITLAB_SIMULATE_SAAS=1 gdk start
SM mode
- Start GDK in SM mode
GITLAB_SIMULATE_SAAS=0 gdk start
(or)
- Return false here to simulate SM mode
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.
Related to #421965
Edited by Vamsi Vempati