Skip to content

Tie AI UI settings visibility to feature flag

What does this MR do and why?

resolves #432282 (closed)

Tie AI UI settings visibility to feature flag

To support migration to AI Add-On it is requried to hide all AI related settings at the time when Add On is enabled. To do that, AI UI components will be dependent on the same feature flag as Add-on

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

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

Before After
Screenshot_2024-01-04_at_14.21.15 Screenshot_2024-01-04_at_14.20.04

How to set up and validate locally

Visit

  1. http://gdk.test:3000/-/profile/preferences
  2. http://gdk.test:3000/groups/gitlab-org/-/edit

Search Code s

check that code suggestion settings is either present with ::Feature.enabled?(:purchase_code_suggestions)or not with ::Feature.disabled?(:purchase_code_suggestions)

Merge request reports