Page MenuHomePhabricator

[identity][terraform] Create DDB index for deviceID
ClosedPublic

Authored by bartek on Jun 7 2024, 3:55 AM.
Tags
None
Referenced Files
F3544453: D12348.id41094.diff
Thu, Dec 26, 12:47 PM
F3544425: D12348.id41372.diff
Thu, Dec 26, 12:35 PM
F3539259: D12348.diff
Thu, Dec 26, 12:19 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Dec 19, 4:44 AM
Unknown Object (File)
Thu, Nov 28, 6:48 AM
Subscribers

Details

Summary

Addresses ENG-8382.
Introduced index to find devices only by deviceID.

Test Plan

terraform, localstack,

awslocal dynamodb scan --table-name identity-devices --index-name deviceID-index

returns userID, deviceID and loginTime attributes

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Jun 7 2024, 4:25 AM

CI unrelated

services/identity/src/constants.rs
138–141

Decided to restructure it a bit - login time is no longer a "migration-specific" attribute, but instead we have two "deprecated" attributes

@will or @varun will do a better job reviewing this.

This revision is now accepted and ready to land.Jun 14 2024, 6:40 AM