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)
Sun, Dec 15, 1:59 AM
Unknown Object (File)
Sat, Nov 30, 1:12 AM
Unknown Object (File)
Sat, Nov 30, 1:10 AM
Unknown Object (File)
Thu, Nov 28, 10:28 PM
Unknown Object (File)
Tue, Nov 26, 10:19 PM
Unknown Object (File)
Nov 23 2024, 3:57 AM
Unknown Object (File)
Nov 8 2024, 5:27 AM
Unknown Object (File)
Nov 8 2024, 2:36 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