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, Nov 13, 1:19 AM
Unknown Object (File)
Tue, Nov 12, 11:38 PM
Unknown Object (File)
Sat, Nov 9, 4:09 AM
Unknown Object (File)
Fri, Nov 8, 9:53 PM
Unknown Object (File)
Oct 22 2024, 2:44 PM
Unknown Object (File)
Oct 18 2024, 6:25 PM
Unknown Object (File)
Oct 18 2024, 6:25 PM
Unknown Object (File)
Oct 11 2024, 11:00 AM
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