Skip to content

feature: Delete artifacts from a model version

Alper Akgun requested to merge 461197-delete-artifacts-from-a-model-version into master

What does this MR do and why?

feature: Delete artifacts from a model version

Related to Delete artifacts from a model version (#461197 - closed)

Followup refactor: User permissions for ML models, versi... (#461314)

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
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, 'FooModel6').execute.payload
model_version = Ml::CreateModelVersionService.new(model,version: '3.1.4').execute
fn='boo.txt'; File.write(fn, 'Hello'); model_version.package.package_files.create! file: File.new(fn), file_name: fn, status: :default

Delete the file

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

Merge request reports