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)
Sat, Nov 23, 3:57 AM
Unknown Object (File)
Fri, Nov 8, 5:27 AM
Unknown Object (File)
Fri, Nov 8, 2:36 AM
Unknown Object (File)
Tue, Nov 5, 6:21 PM
Unknown Object (File)
Tue, Oct 29, 11:18 AM
Unknown Object (File)
Oct 4 2024, 3:12 AM
Unknown Object (File)
Oct 4 2024, 3:12 AM
Unknown Object (File)
Oct 4 2024, 3: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
Branch
linki
Lint
No Lint Coverage
Unit
No Test Coverage

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