Page MenuHomePhabricator

[keyserver] new fetchPrivilegedThreadInfos function
ClosedPublic

Authored by varun on Thu, Oct 31, 10:42 PM.
Tags
None
Referenced Files
F3332920: D13852.id45568.diff
Thu, Nov 21, 2:32 AM
F3332678: D13852.diff
Thu, Nov 21, 1:09 AM
Unknown Object (File)
Mon, Nov 18, 11:24 AM
Unknown Object (File)
Sun, Nov 17, 4:40 PM
Unknown Object (File)
Sun, Nov 17, 4:40 PM
Unknown Object (File)
Sun, Nov 17, 4:40 PM
Unknown Object (File)
Sun, Nov 17, 4:40 PM
Unknown Object (File)
Sun, Nov 17, 11:44 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.Fri, Nov 1, 8:32 AM

This won't work without addressing the KNOW_OF issue

This revision now requires changes to proceed.Fri, Nov 1, 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.Fri, Nov 15, 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.Fri, Nov 15, 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.Wed, Nov 20, 4:13 AM