Page MenuHomePhabricator

[keyserver] new fetchPrivilegedThreadInfos function
ClosedPublic

Authored by varun on Thu, Oct 31, 10:42 PM.
Tags
None
Referenced Files
F3351410: D13852.id45896.diff
Sat, Nov 23, 1:30 AM
F3349479: D13852.id45891.diff
Fri, Nov 22, 6:06 PM
F3349470: D13852.id45896.diff
Fri, Nov 22, 6:05 PM
F3349469: D13852.id45841.diff
Fri, Nov 22, 6:05 PM
F3349468: D13852.id45843.diff
Fri, Nov 22, 6:05 PM
Unknown Object (File)
Thu, Nov 21, 3:06 AM
Unknown Object (File)
Thu, Nov 21, 2:58 AM
Unknown Object (File)
Thu, Nov 21, 2:32 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
No Lint Coverage
Unit
No Test Coverage

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