Skip to content

1414 Bugfix: Delete notifications if connected post, comment or user is deleted

Hannes Heine requested to merge pr1426head into pr1426base

Created by: Tirokk

roschaefer Authored by roschaefer Merged


🍰 Pullrequest

Issues

Todo

  • bug report at cypress-cucumber-preprocessor about silently failing scenario I don't have a build at hand that's silently failing, so I keep that for later when I'm able to reproduce this issue again
  • write more backend test to check what happens if you would create the same notification again, e.g. if sb. updates the post and re-mentions the user. (It will probably create another relationship)
  • update database migration we don't import notifications :woman_facepalming:

EDIT: I just tested out if the bug is actually fixed, turns out: No. We can still have a dangling pointer if a comment notified a user and the post of the comment was deleted. Deleting a post will not delete its comments. So we have comments without posts in the database.

Merge request reports