Page MenuHomePhabricator

[keyserver] Delete invite links when deleting threads
ClosedPublic

Authored by ashoat on Oct 16 2024, 4:03 PM.
Tags
None
Referenced Files
F3301033: D13733.id45260.diff
Sun, Nov 17, 11:25 PM
Unknown Object (File)
Fri, Nov 15, 2:50 AM
Unknown Object (File)
Thu, Nov 14, 7:01 PM
Unknown Object (File)
Thu, Nov 14, 4:00 PM
Unknown Object (File)
Thu, Nov 7, 9:05 AM
Unknown Object (File)
Thu, Nov 7, 8:41 AM
Unknown Object (File)
Wed, Nov 6, 12:35 AM
Unknown Object (File)
Sat, Nov 2, 7:20 PM
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