You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users may leave their structure and their corresponding data should either be deleted or anonymized.
Solution
Allow administrators to delete a user account. This solution deletes all the data related to the user (e.g. tickets, messages, entity events, etc.) Thus, the administrator must be warned about the risks.
Specifications
Form
Add a form at the bottom of the user edit page, allowing to delete the user.
There must be a warning to indicate that all the information, including tickets, messages and traceability related to this user will be deleted.
Clicking on the submit button must ask for confirmation.
Associations constraints
There are good chances that a lot of Entity associations will prevent the deletion because of the foreign keys' constraints.
Deletions must be applied in cascade at the database level, e.g.:
Problem
Users may leave their structure and their corresponding data should either be deleted or anonymized.
Solution
Allow administrators to delete a user account. This solution deletes all the data related to the user (e.g. tickets, messages, entity events, etc.) Thus, the administrator must be warned about the risks.
Specifications
Form
Add a form at the bottom of the user edit page, allowing to delete the user.
There must be a warning to indicate that all the information, including tickets, messages and traceability related to this user will be deleted.
Clicking on the submit button must ask for confirmation.
Associations constraints
There are good chances that a lot of Entity associations will prevent the deletion because of the foreign keys' constraints.
Deletions must be applied in cascade at the database level, e.g.:
Some other user associations doesn't require the association to be set, so we can set the value to null:
You can find all the relations with
git grep 'private ?User'
Estimated time
1 - 2 days
The text was updated successfully, but these errors were encountered: