Skip to content

feature: Delete model version

What does this MR do and why?

feature: Delete model version

Related to #428908 (closed)

Migration of legacy css utils refactor: Migrate legacy legacy utils for MLOps (#462117)

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Go to a model version Use the action bar menu to delete See confirmation and redirection
image image image

How to set up and validate locally

Create the file

Go to rails console using bin/rails c

Feature.enable(:model_registry)
project = Project.find(26)
model = Ml::CreateModelService.new(project, 'FooModel18').execute.payload
10.times { |i| Ml::CreateModelVersionService.new(model,version: "3.1.#{i}").execute }

Delete some versions

  • Go to the project URL in your browser
  • Open the "Deploy" and "Model registry" under it.
  • Find the model FooModel18
  • Delete some model versions
Edited by Alper Akgun

Merge request reports