Page MenuHomePhabricator

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

Authored by ashoat on Sep 23 2024, 10:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 7:02 PM
Unknown Object (File)
Fri, Nov 8, 7:02 PM
Unknown Object (File)
Fri, Nov 8, 7:02 PM
Unknown Object (File)
Fri, Nov 8, 7:01 PM
Unknown Object (File)
Fri, Nov 8, 2:29 AM
Unknown Object (File)
Wed, Oct 23, 11:42 PM
Unknown Object (File)
Wed, Oct 23, 10:21 PM
Unknown Object (File)
Sat, Oct 19, 5:40 AM
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.Sep 23 2024, 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.Sep 24 2024, 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