Bulk delete package assets from the UI
Context
You use the GitLab Package Registry to publish packages to your project or group. Package assets are the related files that make up a given package. In &5152 (closed), we are adding a new GitLab feature that will allow you to programmatically delete package assets.
Problem to solve
The policies are great, but there are times when a project Maintainer/Owner is perusing their project and wants to manually delete items. Why? As an example, there may be a package with hundreds of duplicate assets that are confusing and slowing down the troubleshooting process.
Implementation plan
- Render checkboxes in first column of package files table
- Add
Delete selected
button, enable button when assets are selected & disable otherwise. - On click of above button, show confirmation modal confirming number of assets that will be deleted.
- Upon confirmation, use mutation implemented in !89927 (merged) to call the backend API.
- In scenario all package assets are selected & there are no more assets, show confirmation modal confirming that package will be deleted & delete the package using a
deletePackage
mutation.
Proposal
Add the ability to bulk delete package assets from the user interface.
⬇
Designs Edited by Rahul Chanila