Add column with Job link of a Model Candidate
What does this MR do and why?
Adds a column displaying a link to the Ci job associated to a candidate, if it has one. This value is populated if the user runs the mlflow client on a ci pipeline (!117412 (merged)).
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
-
Enable the feature flag
echo "Feature.enable(:ml_experiment_tracking)" | bundle exec rails c
-
Seed the database with project that have jobs
bin/rake "gitlab:seed:runner_fleet"
-
In rails console
bundle exec rails c
, create experiment and candidates for on the project with he first buildbuild = Ci::Build.first project_id = Ci::Build.first.project_id exp = Ml::Experiment.create!(name: 'Gitlab Experiment', user_id: 1, project_id: project_id) exp.candidates.create!(name: 'with job', user_id: 1, start_time: 0, project_id: project_id, ci_build: build) exp.candidates.create!(name: 'without job', user_id: 1, start_time: 0, project_id: project_id)
-
Navigate to the candidate "/path_to_project/-/ml/experiment/1", where the project is the one from build (likely
rf-top-level-group-1/rf-group-1.1/rf-group-1.1.1/rf-project-1-1-1-1/-/ml/experiments/1
) -
Note that 'with job' has a link to a job, but 'without job' shows a dash.
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 #406784 (closed)