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)
Wed, Dec 18, 7:08 PM
Unknown Object (File)
Wed, Dec 18, 7:08 PM
Unknown Object (File)
Wed, Dec 18, 7:08 PM
Unknown Object (File)
Wed, Dec 18, 7:07 PM
Unknown Object (File)
Wed, Dec 18, 7:07 PM
Unknown Object (File)
Fri, Dec 6, 5:17 AM
Unknown Object (File)
Nov 17 2024, 1:37 PM
Unknown Object (File)
Nov 8 2024, 7:02 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.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