Skip to content

1414 Implement soft delete

Hannes Heine requested to merge pr1440head into pr1440base

Created by: Tirokk

roschaefer 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

Todo

  • None

Merge request reports