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)
Sun, Dec 22, 11:31 PM
Unknown Object (File)
Sun, Dec 22, 9:54 PM
Unknown Object (File)
Sun, Dec 22, 9:54 PM
Unknown Object (File)
Sun, Dec 22, 9:54 PM
Unknown Object (File)
Sun, Dec 22, 9:53 PM
Unknown Object (File)
Sun, Dec 22, 7:43 PM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 20 2024, 8:55 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
Lint Not Applicable
Unit
Tests Not Applicable