Add partner deletion
Partner deletion
Scenario
The user has two ways the delete a partner :
- From the list of partners
- From the partner view
For both ways, when the user click the button to delete a partner, a confirmation should be asked to the user. If the user confirms, and only then, the partner can be deleted.
After the partner has been deleted:
- A success message should be displayed
- If the user was on the view partner, she should be redirected to the list after
If the deletion failed on the backend, an error message should be displayed to indicate the reason of the error.
To Do
Backend
-
Add a handler to delete a partner to the API and add it to the router (with the DELETE
method). -
Add a check to prevent deleting the partner if flow_dest has partner_id registered -
Add a check to prevent deleting the partner is cc_relay
,int_gtw
orext_gtw
Frontend
-
add a button on each partner row to delete the corresponding partner -
add a button on the page to view a single partner to delete the corresponding partner -
When the user click the button, show a confirmation modal box: -
When the user confirms, delete the partner: -
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