Skip to content

Improves header on IndexMlModels

Eduardo Bonet requested to merge 385061-ui-list-models-page-1 into master

What does this MR do and why?

Improves header on IndexMlModels

Adds TitleArea to match package registry design. Also adds link to latest version and model detail page.

This code works without BE changes, but the values are only shown with the changes in !135101 (merged).

This branch contains both MRs combined: https://gitlab.com/gitlab-org/gitlab/-/tree/385061-ui-list-models-page-full?ref_type=heads

Screenshots or screen recordings

Before After Changes
image image 1. Shows number of project, 2. version now links to the model version detail page

How to set up and validate locally

  1. checkout the combined branch: https://gitlab.com/gitlab-org/gitlab/-/tree/385061-ui-list-models-page-full

  2. on rails console enable the feature flag, and create a few models and model versions

    Feature.enable("model_registry")
    p = Project.find_by(id: 20) # or whatever project you want to use for testing
    3.times { |i|  Ml::FindOrCreateModelService.new(p, "model_#{i}").execute }
    
    Ml::FindOrCreateModelVersionService.new(p, { model_name: "model_1", version: "1.0.0" }).execute
    3.times { |i| Ml::FindOrCreateModelVersionService.new(p, { model_name: "model_2", version: "1.2.#{i}" }).execute }
  3. Navigate to /ml/models

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

Edited by Eduardo Bonet

Merge request reports

Loading