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)
Sun, Nov 17, 1:37 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:02 PM
Unknown Object (File)
Fri, Nov 8, 7:01 PM
Unknown Object (File)
Fri, Nov 8, 2:29 AM
Unknown Object (File)
Oct 23 2024, 11:42 PM
Unknown Object (File)
Oct 23 2024, 10:21 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
No Lint Coverage
Unit
No Test Coverage

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

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

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