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
F3518317: D13732.id45232.diff
Sun, Dec 22, 7:43 PM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 20 2024, 8:55 AM
Unknown Object (File)
Nov 7 2024, 2:34 AM
Unknown Object (File)
Nov 6 2024, 1:36 PM
Unknown Object (File)
Nov 6 2024, 12:40 PM
Unknown Object (File)
Nov 6 2024, 8:29 AM
Unknown Object (File)
Oct 28 2024, 7:31 PM
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