Add toggle for Model registry feature
What does this MR do and why?
Adds a toggle to disable Model registry on Project visibility
This is MR is part of adding the visibility to Model registry.
Screenshots or screen recordings
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Chose a project to test, and get it's id
-
On rails console. Result should be 20
Project.find_by_id(id).model_registry_access_level
-
Navigate to 'Settings > General > Visibility' and search for 'Model registry', should be below 'Model experments'
-
Toggle from 'Everyone with access' to 'Only project members' and save
-
On rails console. Result should be 10
Project.find_by_id(id).model_registry_access_level
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