Skip to content

Adds link from model detail to latest version

Eduardo Bonet requested to merge model_registry/link_model_version into master

What does this MR do and why?

Adds link from model detail to latest version

To access the latest version page, users needed to click on version than on the model version. This allows users to navigate directly from the first page.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

How to set up and validate locally

  1. In rails console enable the feature flag

    Feature.enable(:model_registry)
  2. Create a model and a bunch of candidates

    p = Project.find_by_id(1)
    m = Ml::FindOrCreateModelService.new(p, "model_1", nil, "Cool description").execute
    mv = Ml::FindOrCreateModelVersionService.new(p, {model_name: 'model_1'}).execute
  3. Navigate to <gdk>/<project>/-/ml/models and select the model.

  4. Verify that the version by 'Latest version' is clickable and navigates to the model version page

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports