Bulk delete UI for Other versions of Package
Context
In Bulk delete packages and package assets from th... (&8022 - closed) we added the ability to bulk delete packages.
In Simplify the packages list by consolidating ver... (#341329 - closed) we will consolidate the package list by consolidating versions of the package into the detail page
Scope of this issue
Add bulk delete UI to other versions
of package registry (Packages & Registries > Package Registry > Click on Package > Other version tab)
Current version | Proposal |
---|---|
We want to give users the control to bulk delete items from the registry. When Simplify the packages list by consolidating ver... (#341329 - closed) is implemented, the only way to delete multiple versions of a package version would be to manually delete each version one-by-one. A bulk delete UI would be more efficient.
Implementation guide
- Use
left-action
slot oflist-row
component within https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/assets/javascripts/packages_and_registries/package_registry/components/details/version_row.vue#L39 to renderGlCheckbox
- Use deletePackages mutation to handle deletion
- Add
select all
functionality which is applicable only for a single page of max 20 items - Show modal for confirmation
- Track clicks similar to section
Edited by Rahul Chanila