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
-
Navigate to a project
-
Check that 'Model experiments' is not under 'Package & registries' or under deploy in the new sidebar)
-
Enable the feature flag
echo "Feature.enable(:ml_experiment_tracking)" | bundle exec rails c
-
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)
-
Check that 'Model experiments' is not under 'Package & registries' or under deploy in the new sidebar)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #412384 (closed)
Edited by Eduardo Bonet