Page MenuHomePhabricator

[lib][native][web] Introduce useUpdateRelationships
ClosedPublic

Authored by ashoat on Mon, Sep 23, 10:40 PM.
Tags
None
Referenced Files
F3013334: D13441.id44475.diff
Sat, Oct 19, 5:40 AM
F3012486: D13441.id44464.diff
Sat, Oct 19, 3:28 AM
F3002594: D13441.id44515.diff
Fri, Oct 18, 8:09 AM
Unknown Object (File)
Thu, Oct 17, 2:45 PM
Unknown Object (File)
Sun, Oct 13, 5:20 PM
Unknown Object (File)
Sat, Oct 12, 12:21 AM
Unknown Object (File)
Thu, Oct 10, 2:12 PM
Unknown Object (File)
Wed, Oct 9, 3:13 PM
Subscribers
None

Details

Summary

This diff updates the updateRelationships action function to use the new update_relationships2 API, and introduces useUpdateRelationships, a new hook that abstracts some complexity and in following diffs will handle forking between thick/thread logic.

Depends on D13440

Test Plan

I tested this new endpoint as part of my testing of ENG-9269

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Mon, Sep 23, 10:54 PM
Harbormaster failed remote builds in B31798: Diff 44464!
tomek added inline comments.
lib/components/farcaster-data-handler.react.js
47 ↗(On Diff #44475)

Does the new endpoint correctly support farcaster action without userIDsToFID map?

This revision is now accepted and ready to land.Tue, Sep 24, 3:31 AM
lib/components/farcaster-data-handler.react.js
47 ↗(On Diff #44475)

D13436 updates our code to ignore this input from the user. Instead of trusting the user's claims about FIDs, we will instead query the identity service