Skip to content

Replace feature flag for Code Suggestions tab on Usage Quotas page

Vamsi Vempati requested to merge 426344-replace-feature-flag-for-add-ons into master

What does this MR do and why?

Replaces enable_hamilton_in_usage_quotas_ui feature flag with hamilton_seat_management for Code Suggestions tab on Usage Quotas page.

  • Removes unused feature flag enable_hamilton_in_usage_quotas_ui

Added changelog entry Changelog: changed as danger errors if changelog is not provided when removing a feature flag that was never used. Related conversation: internal link.

Related to #426344

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Scenario Screenshot
With hamilton_seat_management enabled (Code Suggestions tab should be visible, if no addon purchase exists, an introductory state should be visible on the tab) Screenshot_2023-09-27_at_2.22.38_PM
With hamilton_seat_management disabled Screenshot_2023-09-27_at_2.23.00_PM

How to set up and validate locally

Application setup

  1. Customers Dot needs to be setup in order to view the billing page for a group
  2. Start GDK in SaaS mode GITLAB_SIMULATE_SAAS=1 gdk start

Group setup

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

Feature flag

Run the following in your rails console

Feature.enable(:hamilton_seat_management, Namespace.find(your-group-id)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vamsi Vempati

Merge request reports