Page MenuHomePhabricator

[keyserver] Delete invite links when deleting threads
ClosedPublic

Authored by ashoat on Wed, Oct 16, 4:03 PM.
Tags
None
Referenced Files
F2993412: D13733.id45234.diff
Thu, Oct 17, 6:41 AM
F2992216: D13733.id.diff
Thu, Oct 17, 3:13 AM
F2991921: D13733.diff
Thu, Oct 17, 2:26 AM
F2991843: D13733.diff
Thu, Oct 17, 2:09 AM
Subscribers
None

Details

Summary

We should delete invite links when we delete threads. This diff makes sure we delete both thread-specific and community-specific invite links when the thread/community is deleted.

Depends on D13732

Test Plan
  1. Create a community, enable invite link. Confirm it exists in MariaDB and DynamoDB. Delete it and confirm that it's gone from both
  2. Same as above, but for a thread-specific invite link, which was created using this script: https://gist.github.com/Ashoat/0c3815442bf6427ecd7d8a3dbdb4e5dd
  3. Same as above, but for a community that has a community-specific invite link, and a thread inside that community that has a thread-specific invite link. Delete the community and confirm that both invite links are gone from MariaDB and DynamoDB

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable