Backup Management: Delete option
General
Escalation
General
Escalation
Description
How to test
None
How to document
None
100% Done
Smart Checklist
Activity
Show:
Maxim Kondratenko May 26, 2021 at 2:00 PM
Several points to consider during implementation:
we should add a protection so that user can't delete backup that is currently being used for restoring some DB from this backup.
we should add a protection so that user can't delete the backup that is currently being created (with state "IN PROGRESS") otherwise in worse case we will get a broken backup.
Done
Details
Details
Assignee
Maksym Hilliaka
Maksym Hilliaka(Deactivated)Reporter
Roma Novikov
Roma Novikov(Deactivated)Priority
Components
Labels
Needs Doc
Yes
Fix versions
Smart Checklist
Open Smart Checklist
Smart Checklist

Open Smart Checklist
Created May 26, 2021 at 10:30 AM
Updated March 6, 2024 at 2:41 AM
Resolved July 27, 2021 at 10:00 AM
User story:
As a PMM user, I need to be able to delete artifact from the storage, so it's not occupying the space on the storage
UI/UX:
https://www.figma.com/file/Fk9p1JX7sYAOzBjoR9u8WU/Backup-Management?node-id=426%3A1331
Acceptance criteria
Confirmation modal window with confirmation info and The "Delete from Storage" checkbox appears on clicking Delete button\icon for selected artifact
The "Delete from Storage" checkbox is selected by default
If the "Delete from Storage" checkbox is selected, then the artifact is also deleted from Storage; otherwise, delete from artifacts list only
Documentation updated about deletion
Disallow artifact removal if artifact is not in the final state e.g. backup is currently being created (status
In progress
).Disallow artifact removal if backup is being used by any restore operation that is
In progress
.Out of scope:
Bulk actions
Suggested implementation:
On the FE side add a "Delete" button on each artifact entry clicking on it will open confirmation modal window with checkbox "Delete from Storage".
On the BE side implement an endpoint
/v1/management/backup/Artifacts/Delete
with option to delete actual backup files from s3 storage. Remove all the restore history items that is associated with the artifact.