Skip to content

Allow to delete error packages from package registry

Jose Ivan Vargas requested to merge jivanvl-delete-error-packages into master

What does this MR do and why?

Adds the ability to remove error packages within the UI

#337849 (closed)

Screenshots or screen recordings

Screen_Shot_2022-04-18_at_15.47.49

How to set up and validate locally

On your rails console bundle exec rails c

  1. Find the project where you want to work with the package registry p = Project.find(<project_id>)
  2. Create a package FactoryBot.create(:npm_package, project: p)
  3. Update the status of the package to ERROR Packages::Package.last.update(status: :error)
  4. Go to the package registry using the sidebar or via the URL https://gitlab.com/<project>/-/packages

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 Jose Ivan Vargas

Merge request reports