Page MenuHomePhabricator

[keyserver] Delete invite links when deleting threads
ClosedPublic

Authored by ashoat on Oct 16 2024, 4:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 15, 6:08 AM
Unknown Object (File)
Thu, Nov 28, 10:16 PM
Unknown Object (File)
Thu, Nov 28, 1:01 PM
Unknown Object (File)
Thu, Nov 28, 12:59 PM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 20 2024, 8:55 AM
Unknown Object (File)
Nov 17 2024, 11:25 PM
Unknown Object (File)
Nov 15 2024, 2:50 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
Branch
ashoat/delete
Lint
No Lint Coverage
Unit
No Test Coverage