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)
Fri, Oct 25, 5:18 PM
Unknown Object (File)
Fri, Oct 25, 5:18 PM
Unknown Object (File)
Fri, Oct 25, 5:17 PM
Unknown Object (File)
Fri, Oct 25, 5:03 PM
Unknown Object (File)
Oct 6 2024, 4:11 PM
Unknown Object (File)
Sep 14 2024, 7:59 AM
Unknown Object (File)
Sep 10 2024, 5:00 AM
Unknown Object (File)
Sep 8 2024, 1:41 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