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
F2150813: D10221.id34371.diff
Sun, Jun 30, 11:17 AM
Unknown Object (File)
Sat, Jun 29, 4:27 PM
Unknown Object (File)
Thu, Jun 27, 5:49 PM
Unknown Object (File)
Wed, Jun 26, 10:05 AM
Unknown Object (File)
Tue, Jun 25, 2:31 PM
Unknown Object (File)
Tue, Jun 25, 12:04 PM
Unknown Object (File)
Tue, Jun 25, 12:04 PM
Unknown Object (File)
Tue, Jun 25, 12:04 PM
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