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
Unknown Object (File)
Thu, May 2, 5:55 PM
Unknown Object (File)
Thu, May 2, 2:11 AM
Unknown Object (File)
Mar 6 2024, 9:13 AM
Unknown Object (File)
Mar 6 2024, 9:13 AM
Unknown Object (File)
Mar 6 2024, 9:13 AM
Unknown Object (File)
Mar 6 2024, 9:13 AM
Unknown Object (File)
Mar 6 2024, 9:13 AM
Unknown Object (File)
Mar 6 2024, 9:12 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