Page MenuHomePhabricator

[keyserver] Update `deleteAccount` to handle user image avatars
ClosedPublic

Authored by atul on Apr 10 2023, 1:14 PM.
Tags
None
Referenced Files
F3394528: D7379.id24977.diff
Sat, Nov 30, 8:21 PM
Unknown Object (File)
Thu, Nov 28, 3:42 AM
Unknown Object (File)
Thu, Nov 28, 1:52 AM
Unknown Object (File)
Tue, Nov 19, 8:40 AM
Unknown Object (File)
Mon, Nov 18, 8:14 AM
Unknown Object (File)
Mon, Nov 18, 8:07 AM
Unknown Object (File)
Mon, Nov 18, 7:06 AM
Unknown Object (File)
Mon, Nov 18, 6:57 AM
Subscribers

Details

Summary

I looked through all of the DELETE queries in keyserver to see where we're handling the deletion of users. I found one query (deleteAccount) that needed to be updated to handle deletion of user image avatar (AKA upload with container=deletedUserID)


Depends on D7377

Test Plan
  1. Set image avatar for user.
  2. Observe that container is set correctly in uploads table.
  3. Delete user.
  4. Observe that row in uploads table corresponding to user's image avatar has been removed.

This is safe because uploads has an index on container

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Apr 10 2023, 1:14 PM

This is safe because uploads has an index on container (would be good to note this in your Test Plan)

This revision is now accepted and ready to land.Apr 10 2023, 1:29 PM
atul edited the test plan for this revision. (Show Details)

rebase and alnd

This revision was landed with ongoing or failed builds.Apr 11 2023, 8:27 AM
This revision was automatically updated to reflect the committed changes.