1414 Implement soft delete
Created by: Tirokk
Authored by roschaefer Merged
🍰 Pullrequest
This PR changes the behaviour of DeletePost
, DeleteComment
and DeleteUser
to soft delete the corresponding resources. Soft delete means, mark the records in the database as deleted but don't actually delete them. For GDPR we still delete the actual content on the nodes, but we keep the structure of the graph, ie. we keep nodes and their connections, to avoid NullPointer errors.
Since I had to touch basically every imaginable backend tests, I refactored all but 8 remaining tests to use apollo-server-testing
. The seeds are already refactored 100%, see #1427 (closed).
Issues
- fix #1414 (closed)
- fix #1427 (closed)
Todo
-
None