Skip to content

Remove experiment features ai dependency

What does this MR do and why?

Eligibility for some AI features used to depend solely on experiment_features_enabled field on the Namespace. This is recently refactored.

Now that AI-features do not depend solely on experiment_features_enabled but instead checks other flags as well, we are updating the validations in the model, as well as strong parameters.

This will allow us to add other experiment features such as Product Analytics that does not depend on AI features.

Changelog is not added as the feature is behind a feature flag.

How to set up and validate locally

  1. Visit groups edit page
  2. Disable ai_global_switch flag
  3. Enable "Use experiment and beta features" toggle
  4. You should be able to save the changes
  5. Disable "Use experiment and beta features" toggle
  6. You should be able to save the changes

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 #431370 (closed)

Edited by Halil Coban

Merge request reports