Page MenuHomePhabricator

[services][identity] helper function to parse map attributes from dynamodb
ClosedPublic

Authored by varun on Nov 8 2022, 1:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 17, 7:23 AM
Unknown Object (File)
Tue, Dec 17, 7:23 AM
Unknown Object (File)
Tue, Dec 17, 7:22 AM
Unknown Object (File)
Tue, Dec 17, 7:19 AM
Unknown Object (File)
Sat, Dec 7, 7:46 PM
Unknown Object (File)
Oct 25 2024, 5:18 PM
Unknown Object (File)
Oct 25 2024, 5:18 PM
Unknown Object (File)
Oct 25 2024, 5:17 PM

Details

Summary

fairly straightforward. we take an Option<AttributeValue> that should hold a HashMap and then return the HashMap or an error if it's the wrong type or missing

Depends on D5567

Test Plan

this helper function is tested two diffs later when the getUserPublicKey RPC is actual callable

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Nov 8 2022, 1:26 PM
This revision is now accepted and ready to land.Nov 10 2022, 2:02 AM
services/identity/src/database.rs
518 ↗(On Diff #18235)

Why do we use devices name here? This function seems like something more general and the name should reflect that.

services/identity/src/database.rs
518 ↗(On Diff #18235)

yeah good catch, i'll change that before landing