Page MenuHomePhabricator

[identity] Add devices to the new list after login and register
ClosedPublic

Authored by bartek on Dec 7 2023, 12:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 7:58 PM
Unknown Object (File)
Tue, Nov 12, 6:49 AM
Unknown Object (File)
Sun, Nov 10, 7:18 PM
Unknown Object (File)
Thu, Nov 7, 12:01 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Unknown Object (File)
Oct 18 2024, 2:42 AM
Subscribers

Details

Summary

Updated LoginUser and RegisterUser DDB calls to double-write new device info to both "legacy" and new device list.

Depends on D10220

Test Plan

Used keyserver to first register, then login (after restart). Used awslocal dynamodb scan to inspect both tables - both were updated successfully.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Dec 7 2023, 1:06 AM

I know the code is nearly duplicated: both password- and wallet- functions are nearly identical.
This is going to be refactored anyway when fully migrated to the new device list.
Now this is the least intrusive way to plug the new device list into existing codebase without introducing too much mess.

This revision is now accepted and ready to land.Dec 8 2023, 12:22 PM