Page MenuHomePhabricator

[keyserver] Introduce a function that allows fetching all the primary links
ClosedPublic

Authored by tomek on Dec 4 2023, 4:37 AM.
Tags
None
Referenced Files
F3522901: D10150.id34185.diff
Mon, Dec 23, 7:51 AM
F3522774: D10150.id37087.diff
Mon, Dec 23, 7:35 AM
F3522773: D10150.id36524.diff
Mon, Dec 23, 7:35 AM
F3522771: D10150.id34185.diff
Mon, Dec 23, 7:35 AM
F3522770: D10150.id34178.diff
Mon, Dec 23, 7:35 AM
F3522752: D10150.id.diff
Mon, Dec 23, 7:34 AM
F3522747: D10150.diff
Mon, Dec 23, 7:34 AM
Unknown Object (File)
Sun, Dec 15, 1:59 AM
Subscribers

Details

Summary

Currently we're fetching only the links for communities where a viewer is a member. For the migration to work we need to be able to fetch all the links - this diff introduces a function that allows it.

Depends on D10134

Test Plan

Check if in the web app we're receiving only the links for communities where a viewer is a member.
Check if calling fetchAllPrimaryInviteLinks returns all the links.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Dec 4 2023, 4:56 AM

This feels pretty messy. I'm not sure what the callstack looks like, but is it possible to introduce a second function for this (with shared code factored out) instead of overloading fetchPrimaryInviteLinks to handle two different scenarios?

tomek planned changes to this revision.Dec 4 2023, 6:33 AM

This feels pretty messy. I'm not sure what the callstack looks like, but is it possible to introduce a second function for this (with shared code factored out) instead of overloading fetchPrimaryInviteLinks to handle two different scenarios?

Yeah, I can do that. Shouldn't matter too much at the call sites.

Split a function into two

tomek edited the test plan for this revision. (Show Details)
tomek retitled this revision from [keyserver] Fetch all the links when a viewer is a script viewer to [keyserver] Introduce a function that allows fetching all the primary links.
This revision is now accepted and ready to land.Dec 5 2023, 8:24 AM
tomek edited the summary of this revision. (Show Details)

Rebase