Add flow deletion
Flow deletion is direct : there are no risk to compromise the integrity of the whole configuration.
Scenario
The user has two ways the delete a flow :
- From the list of flows
- From the flow view
For both ways, when the user click the button to delete a flow, a confirmation should be asked to the user. If the user confirms, and only then, the flow can be deleted.
After the flow has been deleted:
- A success message should be displayed
- If the user was on the view flow, she should be redirected to the list after
If the deletion failed on the backend, an error message should be displayed to indicate wthe reason of the error.
To Do
Backend
-
Add a handler to delete a flow to the API and add it to the router (with the DELETE
method). -
If they do not exist, add post-delete methods to flows to remove associated rules -
If they do not exist, add post-delete methods to rules to remove associated tasks -
Add entries to the audit log for flow deletion
Frontend
-
add a button on each flow row to delete the corresponding flow -
add a button on the page to view a sinlgle flow to delete the corresponding flow -
When the user click the button, show a confirmation modal box: -
When the user confirms, delete the flow: -
if the deletion succeeded, show a success message, and redirect the user if needed -
if the deletion failed, show an error message
-
-
when the user cancels, close the modal window!
-
Other
-
Every code change should be covered by an automated test -
The documentation must be changed to reflect this new feature -
The changelog must be updated