Adds bulk delete UI for other versions of package
What does this MR do and why?
Adds bulk deletion UI for other versions of package.
Adds tracking for implementation.
Adds package list row highlighting when selected.
Note:
Upon successful deletion there is currently a typebug which returns package versions marked for deletion #374295 (comment 1259248444). However this is not a blocker since Fix the package versions scope (!110657 - merged) should fix the issue separately.
Screenshots or screen recordings
Action | Screenshot |
---|---|
without permission | |
with permission | |
select all | |
modal to confirm deletion | |
failure to delete | |
successful deletion |
How to set up and validate locally
- Publish more than 20 packages with same name & different versions, as mentioned in https://gitlab.com/gitlab-org/ci-cd/package-stage/package/-/wikis/Packages-Tips-&-Tricks#how-to-create-a-list-of-packages-artificially
-
rails c
- Open the rails console -
p = Project.find(1)
- Find one of your GDK projects. Project id can be found on the project home page -
FactoryBot.create_list(:npm_package, 25, project: p, name: p.name)
- Creates 25 npm packages -
Add this line if above fails during the creation of files
def fixture_file_upload(*args, **kwargs) Rack::Test::UploadedFile.new(*args, **kwargs) end
-
- Visit package registry detail page via groups & projects package list page.
- Switch to the
Other versions
tab. - Should be able delete single & multiple 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.
-
I have evaluated the MR acceptance checklist for this MR.
Closes #374295 (closed)