Search and sort versions of a model
What does this MR do and why?
Adds search to model version list
Reuses searchable list to allow users to search model versions. Also fixes a bug where graphql query was being called twice, similar to !142707 (merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
-
In rails console enable the experiment fully
Feature.enable(:model_registry)
-
In rails console, create a model and a few model versions
p = Project.find_by(id: 1) Ml::FindOrCreateModelService.new(p, "model_1").execute Ml::FindOrCreateModelVersionService.new(p, { model_name: "model_1", version: "2.0.0" }) 100.times { |i| Ml::FindOrCreateModelVersionService.new(p, { model_name: "model_1", version: "1.0.#{i}" }).execute }
-
Navigate to
<gdk>/<project>/-/ml/models
, select the created model andVersions
tab, around with it. Search, sorting and navigation should work.
Related to #428902 (closed)
Edited by Eduardo Bonet