Page MenuHomePhabricator

Search queries with "Not In: Restricted Project" return no results
Closed, WontfixPublic

Description

This seems like odd behaviour to me. Basically I have a query set up that has a filter " Not In: Games Project". When I view that when logged in, it gives me back a list of tasks that are not in Games Project. However "Games Project" is not visible to public users, and when the query is run for them (either on the dashboard or through Maniphest), no results are returned.

This is the query: https://code.redpointgames.com.au/maniphest/query/0JCVlyLIg0F_/

And this is a task that I would expect to appear in the search results (it appears in the search results only when I am logged in): https://code.redpointgames.com.au/T2287

Event Timeline

epriestley claimed this task.
epriestley added a subscriber: epriestley.

This is expected. Queries using projects you do not have permission to see are not valid, and do not return results.

How would I exclude tasks for projects that are not visible then? Or do I have to tag every single task with like an "Open Source" project and then make it filter based on that (this is undesirable because now every task just has a project on there so it can be queried on)?

Use spaces, a positive "open source" project or custom field, make "Games Project" public, or use a public negative project which is a companion to "Games Project" (Herald rules could enforce that it was added when "Games Project" was added and removed when "Games Project" was removed).