Page MenuHomePhabricator

[keyserver] Rework updateRelationships on keyserver to use new API
ClosedPublic

Authored by ashoat on Sep 23 2024, 10:36 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)
Sun, Oct 20, 10:48 PM
Unknown Object (File)
Oct 14 2024, 12:26 PM
Unknown Object (File)
Oct 12 2024, 12:16 AM
Subscribers
None

Details

Summary

This diff updates updateRelationships to take the new API as input, and adds code for converting the old input into the new format to legacyUpdateRelationshipsResponder

Depends on D13437

Test Plan

I tested the API as part of my work on ENG-9331

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:51 PM
Harbormaster failed remote builds in B31795: Diff 44461!
tomek added inline comments.
lib/types/relationship-types.js
93

How about renaming it to createThinThread? This sounds less confusing, because createRobotextInThinThread = false could also be interpreted that we want to create a thin thread but without a robotext.

This revision is now accepted and ready to land.Sep 24 2024, 1:54 AM
lib/types/relationship-types.js
96

Are we supporting farcaster action? Shouldn't we include userIDsToFID for it?

lib/types/relationship-types.js
93

I dislike createThinThread for two reasons:

  1. We don't always create a thin thread. We only create one if it doesn't already exist.
  2. It doesn't mention creating robotext, which is arguably the main thing that we're controlling. The thin thread creation is more of a side effect / implied (if no thread exists, we need to create one for the robotext).

This sounds less confusing, because createRobotextInThinThread = false could also be interpreted that we want to create a thin thread but without a robotext.

I'm not sure I share this interpretation. For me, this is saying "don't create robotext in thin thread". I don't see how it could read to imply that a thin thread should be created.

96

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