Page MenuHomePhabricator

[lib] Fix `farcasterRelationshipRequestValidator`
ClosedPublic

Authored by atul on Apr 10 2024, 12:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 24, 6:29 AM
Unknown Object (File)
Sun, Nov 24, 6:22 AM
Unknown Object (File)
Sun, Nov 24, 5:07 AM
Unknown Object (File)
Sun, Nov 3, 9:48 AM
Unknown Object (File)
Oct 12 2024, 11:29 PM
Unknown Object (File)
Oct 12 2024, 11:29 PM
Unknown Object (File)
Oct 12 2024, 11:29 PM
Unknown Object (File)
Oct 12 2024, 11:28 PM
Subscribers

Details

Summary

exactlyTwoDictEntriesValidator is only relevant for UpdateRelationshipMessages, not for the request. Multiple farcaster mutuals can be included in single FarcasterRelationshipRequest.


Depends on D11612

Test Plan

Able to include multiple users in single request farcaster request (hard-coded dummy FIDs in request)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 10 2024, 1:25 PM
This revision is now accepted and ready to land.Apr 11 2024, 8:27 AM

Do we need a dedicated validator for UpdateRelationshipMessage?

Do we need a dedicated validator for UpdateRelationshipMessage?

Yeah, we introduced rawUpdateFarcasterRelationshipMessageInfoValidator to handle this (has been landed). We didn't end up needing exactlyTwoDictEntriesValidator because modified type to include creatorFID and targetFID instead.

This revision was landed with ongoing or failed builds.Apr 18 2024, 1:26 PM
This revision was automatically updated to reflect the committed changes.