Skip to content

Fixes candidate list showing nothing

Eduardo Bonet requested to merge model_registry/fix_candidate_list into master

What does this MR do and why?

Fixes candidate list showing nothing

Candidate list was being refreshed and items would disappear when changing tabs, since query variables were passed in a wrong way.

Screenshots or screen recordings

Before

2024-04-18_15.30.35

After

After

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").execute
    50.times { |i| Ml::CreateCandidateService.new(m.default_experiment, {}).execute }
  3. Navigate to <gdk>/<project>/-/ml/models and select the model, then select the Version candidates tab, switch to Version and back to Version candidates: data should still be displayed and navigation should work

Merge request reports