Page MenuHomePhabricator

[keyserver] new fetchPrivilegedThreadInfos function
ClosedPublic

Authored by varun on Oct 31 2024, 10:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 5:02 PM
Unknown Object (File)
Fri, Dec 20, 12:09 PM
Unknown Object (File)
Fri, Dec 20, 6:03 AM
Unknown Object (File)
Thu, Dec 19, 11:01 PM
Unknown Object (File)
Thu, Dec 19, 1:51 AM
Unknown Object (File)
Thu, Dec 19, 1:51 AM
Unknown Object (File)
Thu, Dec 19, 1:51 AM
Unknown Object (File)
Thu, Dec 19, 1:50 AM
Subscribers

Details

Summary

unlike fetchThreadInfos, this function does not filter out threads that are inaccessible to the given user

Depends on D13851

we need this function to get all the threadInfos for community root threads. we'll use this data on clients to populate a directory of communities for users to join

Test Plan

successfully got back threadInfos for all threads when calling responder in next diff

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat requested changes to this revision.Nov 1 2024, 8:32 AM

This won't work without addressing the KNOW_OF issue

This revision now requires changes to proceed.Nov 1 2024, 8:32 AM
varun retitled this revision from [keyserver] new fetchThreadInfos function to [keyserver] new fetchPrivilegedThreadInfos function.
varun edited the summary of this revision. (Show Details)
varun edited the test plan for this revision. (Show Details)

new approach without using script viewer

ashoat requested changes to this revision.Nov 15 2024, 10:31 AM

Don't love that we're artifically inserting a permission that doesn't exist. Is it truly necessary?

lib/shared/thread-utils.js
764 ↗(On Diff #45843)

If my comment below makes sense, I think we should rename this to something like dontFilterMissingKnowOf, to make it clear that it affects the filtering behavior

887–889 ↗(On Diff #45843)

Instead of artificially adding a KNOW_OF permission that doesn't exist, can't we just skip this check here?

This revision now requires changes to proceed.Nov 15 2024, 10:31 AM
lib/shared/thread-utils.js
878 ↗(On Diff #45891)

confirmed that this returned the same results as adding the KNOW_OF permission (previous approach)

This revision is now accepted and ready to land.Nov 20 2024, 4:13 AM