Page MenuHomePhabricator

[services] refactor subroutines to use new error types
ClosedPublic

Authored by varun on Jul 1 2022, 2:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 6:03 AM
Unknown Object (File)
Mon, Jun 24, 9:45 AM
Unknown Object (File)
Thu, Jun 13, 6:00 AM
Unknown Object (File)
Tue, Jun 11, 10:11 PM
Unknown Object (File)
May 17 2024, 12:41 PM
Unknown Object (File)
May 3 2024, 1:32 PM
Unknown Object (File)
May 1 2024, 2:48 PM
Unknown Object (File)
Apr 14 2024, 1:27 AM

Details

Summary

we can now use the DBItemError type in the subroutines that handle parsing/unpacking DynamoDB attributes

Depends on D4427

Test Plan

printed out some of the errors to see how they're logged. cargo build + cargo run server

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Jul 1 2022, 3:09 PM
tomek added inline comments.
services/identity/src/database.rs
57 ↗(On Diff #14100)

Why do we remove an attribute here?

This revision is now accepted and ready to land.Jul 4 2022, 5:12 AM
services/identity/src/database.rs
57 ↗(On Diff #14100)

it's the same as get but it returns the actual value instead of a reference to it