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
F5058785: D11413.id38511.diff
Wed, Mar 26, 7:37 AM
Unknown Object (File)
Feb 18 2025, 7:06 PM
Unknown Object (File)
Feb 18 2025, 7:06 PM
Unknown Object (File)
Feb 18 2025, 7:06 PM
Unknown Object (File)
Feb 18 2025, 6:35 PM
Unknown Object (File)
Feb 17 2025, 11:13 PM
Unknown Object (File)
Feb 14 2025, 1:47 PM
Unknown Object (File)
Jan 31 2025, 10:59 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