Improves header on IndexMlModels
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 |
---|---|---|
1. Shows number of project, 2. version now links to the model version detail page |
How to set up and validate locally
-
checkout the combined branch: https://gitlab.com/gitlab-org/gitlab/-/tree/385061-ui-list-models-page-full
-
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 }
-
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #385061 (closed)