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)
Thu, Nov 21, 2:28 AM
Unknown Object (File)
Thu, Nov 21, 2:28 AM
Unknown Object (File)
Thu, Nov 21, 2:28 AM
Unknown Object (File)
Sun, Nov 10, 11:42 AM
Unknown Object (File)
Fri, Nov 8, 7:16 PM
Unknown Object (File)
Oct 26 2024, 5:18 PM
Unknown Object (File)
Oct 18 2024, 2:19 AM
Unknown Object (File)
Oct 18 2024, 2:19 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