Adds UI to delete models
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
Before | After | |
---|---|---|
Normal | ||
Delete modal | ||
Success | ||
Error |
How to set up and validate locally
-
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
-
Visit the project where the model was created
-
Click on
Deploy > Model registry
, and navigate to the created model -
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