Skip to content

Create new tab for Code Suggestions in Usage Quota

Vamsi Vempati requested to merge 421965-create-new-tab-for-code-suggestions into master

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

Free groupScreenshot_2023-08-21_at_4.54.34_PM
Paid groupScreenshot_2023-08-21_at_4.54.11_PM
Scenario Screenshot
With feature flag enabled for group with subscription in SaaS mode (New tab for Code Suggestions should be visible)
ScreenshotScreenshot_2023-08-21_at_4.52.33_PM
With feature flag enabled for group with subscription in SM mode (No new tab for Code Suggestions)
ScreenshotScreenshot_2023-08-22_at_9.25.06_AM
With feature flag enabled for group with no subscription in SaaS mode (No new tab for Code Suggestions)
ScreenshotScreenshot_2023-08-21_at_4.53.13_PM
With feature flag disabled for group with subscription in SaaS mode (No new tab for Code Suggestions)
ScreenshotScreenshot_2023-08-21_at_4.58.25_PM

How to set up and validate locally

  1. 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

  1. Create a Group
  2. Buy a Subscription for your group from Settings > Billing

SaaS mode

  1. 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.

Related to #421965

Edited by Vamsi Vempati

Merge request reports

Loading