Page MenuHomePhabricator

[keyserver] Add cron to delete orphaned invite links
ClosedPublic

Authored by ashoat on Wed, Oct 16, 12:44 PM.
Tags
None
Referenced Files
F2999315: D13732.diff
Thu, Oct 17, 10:20 PM
F2995593: D13732.id45259.diff
Thu, Oct 17, 10:18 AM
F2995575: D13732.id45259.diff
Thu, Oct 17, 10:10 AM
F2995518: D13732.id45232.diff
Thu, Oct 17, 9:55 AM
F2994942: D13732.id.diff
Thu, Oct 17, 8:24 AM
F2992219: D13732.id.diff
Thu, Oct 17, 3:16 AM
F2992044: D13732.diff
Thu, Oct 17, 3:04 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