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 29, 12:17 AM
Unknown Object (File)
Thu, Nov 28, 11:08 PM
Unknown Object (File)
Thu, Nov 28, 8:07 PM
Unknown Object (File)
Thu, Nov 28, 6:02 PM
Unknown Object (File)
Thu, Nov 28, 1:05 PM
Unknown Object (File)
Nov 20 2024, 8:56 AM
Unknown Object (File)
Nov 20 2024, 8:55 AM
Unknown Object (File)
Nov 15 2024, 4:58 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.Oct 17 2024, 1:48 AM