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
Unknown Object (File)
Sat, Oct 26, 5:18 PM
Unknown Object (File)
Fri, Oct 18, 2:19 AM
Unknown Object (File)
Fri, Oct 18, 2:19 AM
Unknown Object (File)
Thu, Oct 17, 12:43 PM
Unknown Object (File)
Thu, Oct 17, 12:43 PM
Unknown Object (File)
Thu, Oct 17, 12:42 PM
Unknown Object (File)
Sep 26 2024, 3:00 AM
Unknown Object (File)
Sep 26 2024, 3:00 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

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

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