Page MenuHomePhabricator

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

Authored by ashoat on Oct 16 2024, 12:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 4:58 AM
Unknown Object (File)
Thu, Nov 14, 3:02 PM
Unknown Object (File)
Thu, Nov 14, 2:56 PM
Unknown Object (File)
Thu, Nov 14, 12:55 PM
Unknown Object (File)
Thu, Nov 7, 8:52 AM
Unknown Object (File)
Thu, Nov 7, 2:05 AM
Unknown Object (File)
Thu, Nov 7, 2:02 AM
Unknown Object (File)
Wed, Nov 6, 11:59 PM
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.Oct 17 2024, 1:48 AM