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)
Fri, Apr 12, 1:29 AM
Unknown Object (File)
Fri, Apr 12, 1:29 AM
Unknown Object (File)
Fri, Apr 12, 1:29 AM
Unknown Object (File)
Fri, Apr 12, 1:29 AM
Unknown Object (File)
Mon, Apr 1, 3:22 PM
Unknown Object (File)
Mon, Apr 1, 9:27 AM
Unknown Object (File)
Sat, Mar 30, 12:42 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
Lint Not Applicable
Unit
Tests Not Applicable