Skip to content

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

image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Chose a project to test, and get it's id

  2. On rails console. Result should be 20

    Project.find_by_id(id).model_registry_access_level
  3. Navigate to 'Settings > General > Visibility' and search for 'Model registry', should be below 'Model experments'

  4. Toggle from 'Everyone with access' to 'Only project members' and save

  5. 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.

Related to #412384 (closed)

Edited by Eduardo Bonet

Merge request reports

Loading