Page MenuHomePhabricator

[identity] on linkFarcasterUser we should return an error if the FID already exists for a different user in the users table
ClosedPublic

Authored by varun on Mar 27 2024, 1:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 9, 11:26 AM
Unknown Object (File)
Sun, Mar 30, 2:05 PM
Unknown Object (File)
Sun, Mar 30, 8:00 AM
Unknown Object (File)
Sun, Mar 30, 6:52 AM
Unknown Object (File)
Sat, Mar 29, 4:00 PM
Unknown Object (File)
Wed, Mar 26, 7:37 AM
Unknown Object (File)
Feb 18 2025, 7:06 PM
Unknown Object (File)
Feb 18 2025, 7:06 PM
Subscribers

Details

Summary

LinkFarcasterUser should succeed if the FID is already associated with this user (no-op) but should fail if the FID is already associated with another user. We don't want the same FID associated with multiple Comm users.

Depends on D11412

Test Plan

Tried calling the RPC with an FID already associated with a different user and it failed. Tried calling with an FID associated with this user and it succeeded. Tried calling with an FID associated with no users and it succeeded.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage