This sends through a rejection reason when deleting a user and their comments. This ensures that it will go through and delete the comments without error.
These changes will impact:
[x] commenters
[ ] moderators
[ ] admins
[ ] developers
What changes to the GraphQL/Database Schema does this PR introduce?
none
Does this PR introduce any new environment variables or feature flags?
no
If any indexes were added, were they added to INDEXES.md?
n/a
How do I test this PR?
You can create a User 1, have them comment. Then have another User 2 report their comment for illegal content. Then have the User 1 request their account be deleted. Go in and update their scheduled deletion date to be now. Run Coral with jobs so that they will be deleted (might want to update to make account deletion run more often in accountDeletion.ts so you don't have to wait). See that the user is successfully deleted with no errors. The illegal content report against their comment should now be set to status Void.
Where any tests migrated to React Testing Library?
What does this PR do?
This sends through a rejection reason when deleting a user and their comments. This ensures that it will go through and delete the comments without error.
These changes will impact:
What changes to the GraphQL/Database Schema does this PR introduce?
none
Does this PR introduce any new environment variables or feature flags?
no
If any indexes were added, were they added to
INDEXES.md
?n/a
How do I test this PR?
You can create a User 1, have them comment. Then have another User 2 report their comment for illegal content. Then have the User 1 request their account be deleted. Go in and update their scheduled deletion date to be now. Run Coral with jobs so that they will be deleted (might want to update to make account deletion run more often in
accountDeletion.ts
so you don't have to wait). See that the user is successfully deleted with no errors. The illegal content report against their comment should now be set to statusVoid
.Where any tests migrated to React Testing Library?
How do we deploy this PR?