Skip to content

Enables users to delete experiments

Eduardo Bonet requested to merge mlops/delete-experiments-frontend into master

What does this MR do and why?

Adds UI for users to delete an experiment

Screenshots or screen recordings

Before After
Main Screen image image (1) Moved title below the banner and (2) Added dropdown for actions, with button to delte
Modal Opened image

How to set up and validate locally

  1. Enable the feature flag

    echo "Feature.enable(:ml_experiment_tracking)" | bundle exec rails c
  2. Create an experiment

    user_id = 1 # if you are using root
    project_id = 20 # not necessarily 20, but the project you are using for testing
    Ml::Experiment.create!(name: 'Gitlab Experiment', user_id: user_id, project_id: project_id)
  3. Navigate to the experiment page (/project/path/-/ml/experiments/1)

  4. Click on the delete button, it should open the modal

  5. Click on Confirm, it should delete the experiment and redirect to /project/path/-/ml/experiments

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eduardo Bonet

Merge request reports