domino icon indicating copy to clipboard operation
domino copied to clipboard

Piece repository delete request enhancement

Open tdari opened this issue 1 year ago • 3 comments

Currently when you want to delete a repository from the platform UI shows a generic toast and i think it is not helpful. Imagine when you have a lot of workflows and you get this warning. image My proposal is to delete all workflows containing this repository by asking the user.

tdari avatar Jan 29 '24 21:01 tdari

@luiztauffer @nathan-vm What you think about that? Maybe we can have something like a confirmation modal asking if the user want to delete all workflows with a relation to the repository to be deleted, them we can cascade delete them.

vinicvaz avatar Jan 30 '24 08:01 vinicvaz

we definitely don't want to just delete with one step. Perhaps we could have something similar to a dialog with:

The following workflows are dependent on this repository, and will be deleted together with it:
- workflow 1
- workflow 2
- workflow 3
...

To delete the `repository name` and all the workflows above, confirm writing the name of the repository below:
___________________________
confirm     cancel

luiztauffer avatar Jan 30 '24 13:01 luiztauffer

I agree, we need a very explicit confirmation modal.

I'll work on this once I finish the refactoring on front-end storage.

nathan-vm avatar Jan 30 '24 18:01 nathan-vm