Page MenuHomePhabricator

[keyserver] Also delete from ids table when deleting invite links
ClosedPublic

Authored by ashoat on Wed, Oct 16, 12:42 PM.
Tags
None
Referenced Files
F2994972: D13731.id45231.diff
Thu, Oct 17, 8:31 AM
F2994482: D13731.id45231.diff
Thu, Oct 17, 8:11 AM
F2994199: D13731.id.diff
Thu, Oct 17, 7:18 AM
F2992966: D13731.id.diff
Thu, Oct 17, 5:53 AM
F2992846: D13731.id45233.diff
Thu, Oct 17, 5:34 AM
F2992840: D13731.id45235.diff
Thu, Oct 17, 5:30 AM
F2992520: D13731.id45235.diff
Thu, Oct 17, 3:54 AM
F2992218: D13731.id45233.diff
Thu, Oct 17, 3:14 AM
Subscribers
None

Details

Summary

Noticed this query wasn't deleting from the ids table. Turns out that the RETURNING keyword isn't allowed for multi-table deletes, so I had to rework the logic.

Test Plan
  1. I deleted an invite link from the UI and confirmed it was removed from MariaDB and DynamoDB
  2. I tested in combination with the next diff, where I introduce a cronjob for deleting orphaned invite links

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Don't do anything if links array is empty

This revision is now accepted and ready to land.Thu, Oct 17, 1:48 AM