Page MenuHomePhabricator

[keyserver] Add cron to delete orphaned invite links
ClosedPublic

Authored by ashoat on Oct 16 2024, 12:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:34 AM
Unknown Object (File)
Wed, Nov 6, 1:36 PM
Unknown Object (File)
Wed, Nov 6, 12:40 PM
Unknown Object (File)
Wed, Nov 6, 8:29 AM
Unknown Object (File)
Mon, Oct 28, 7:31 PM
Unknown Object (File)
Sat, Oct 26, 3:31 AM
Unknown Object (File)
Fri, Oct 25, 6:17 PM
Unknown Object (File)
Fri, Oct 25, 6:50 AM
Subscribers
None

Details

Summary

I noticed that invite links aren't deleted when deleting their corresponding communities. I then checked MariaDB in production and found several orphaned invite links.

In later diffs I'll make sure we delete invite links when we delete communities. This diff introduces a cronjob to clean up orphaned blobs.

Depends on D13731

Test Plan

I deployed this as a script to my personal server and ran it there. I confirmed that the blobs were removed from both MariaDB and DynamoDB

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage