Page MenuHomePhabricator

Refactor get user identifier to return identity with farcaster id
ClosedPublic

Authored by will on May 8 2024, 10:32 PM.
Tags
None
Referenced Files
F2996255: D11951.id39959.diff
Thu, Oct 17, 12:43 PM
F2996230: D11951.id.diff
Thu, Oct 17, 12:43 PM
F2996221: D11951.diff
Thu, Oct 17, 12:42 PM
Unknown Object (File)
Thu, Sep 26, 3:00 AM
Unknown Object (File)
Thu, Sep 26, 3:00 AM
Unknown Object (File)
Sep 15 2024, 1:26 PM
Unknown Object (File)
Sep 15 2024, 10:38 AM
Unknown Object (File)
Sep 15 2024, 10:37 AM
Subscribers

Details

Summary

This includes a new identity struct with a farcaster id field which we refactor get_user_identifier to return. This follows discussion from
https://linear.app/comm/issue/ENG-7759/modify-finduseridentity-to-take-list-of-userids-and-include-fid.

Depends on D11859

Test Plan

cargo check

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

will retitled this revision from Refactor Identifier to include farcaster id to Refactor get user identifier to return identity with farcaster id.May 8 2024, 10:33 PM
will edited the summary of this revision. (Show Details)
services/identity/src/database.rs
25 ↗(On Diff #39959)

Decided to name this DBIdentity to avoid confusion with proto Identity message. Let me know if there's an alternative name I could use

will requested review of this revision.May 8 2024, 10:49 PM

Technically it looks okay. I like the renames you did. Just please apply the inline comment

services/identity/src/ddb_utils.rs
193–195 ↗(On Diff #39959)

I think it should be merged. This way, it gets None when the attribute doesn't exist, but still fail when parsing fails (e.g. it's not a String)

This revision is now accepted and ready to land.May 8 2024, 11:12 PM