Skip to content

Hides model experiments menu if it is not enabled

What does this MR do and why?

If model experiments is disabled, hides the entry from the side bar menu

How to set up and validate locally

  1. Navigate to a project

  2. Check that 'Model experiments' is not under 'Package & registries' or under deploy in the new sidebar) image

  3. Enable the feature flag

    echo "Feature.enable(:ml_experiment_tracking)" | bundle exec rails c
  4. 'Model experiments' is now shown on the sidebar: image

  5. Disable model experiments on rails console (id is the id of the project you are testing)

    ProjectFeature.where(project_id: id).first.update!(model_experiments_access_level: 0)
  6. Check that 'Model experiments' is not under 'Package & registries' or under deploy in the new sidebar) image

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

Edited by Eduardo Bonet

Merge request reports

Loading