Skip to content

Adds UI to delete models

Eduardo Bonet requested to merge 428910-ui-model-detail-delete-model-1 into master

What does this MR do and why?

Adds UI to delete models

  • Adds button to allow deletion of models
  • Refactors backend to use helper instead of ShowMlModelViewComponent, to be consistent with the #index action and make it easier to move everything to graphql
  • Refactors translations out of translation files as per new guidelines

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

146805

Before After
Normal image image
Delete modal image
Success image
Error image

How to set up and validate locally

  1. In rails console enable the experiment fully and create a model

    Feature.enable(:model_registry)
    
    p = Project.find_by(id: 1)
    Ml::CreateModelService.new(p, "model_1").execute 
  2. Visit the project where the model was created

  3. Click on Deploy > Model registry, and navigate to the created model

  4. Click on the overflow menu, and then on 'Delete model'. Click in 'Delete modal' and check that the deletion was succesful.

Related to #428910 (closed)

Edited by Eduardo Bonet

Merge request reports