Skip to content

Refactors model registry list into its own component

Eduardo Bonet requested to merge model_registry/extract_list_component into master

What does this MR do and why?

Refactors model registry into its own component

Refactoring as the list will be used in a few more pages. The name of the new component is SearchableList as we will add search into this component in a follow up.

This MR does not introduce any UI changes, it is a pure refactor.

How to set up and validate locally

  1. on rails console reate a few models and model versions, don't enable feature flag yet

    Feature.enable("model_registry")
    p = Project.find_by(id: 20) # or whatever project you want to use for testing
    model = Ml::FindOrCreateModelService.new(p, "model_1").execute
    
    60.times { |i| Ml::FindOrCreateModelVersionService.new(p, { model_name: "model_1", version: "1.0.#{i}" }).execute }
  2. Navigate to <project>/-/ml/models, select the model and then click on Versions. A list of versions should be loaded, with pagination

Edited by Eduardo Bonet

Merge request reports