Page MenuHomePhabricator

Don't return any results for viewerprojects() if the viewer is in no projects
ClosedPublic

Authored by epriestley on Jan 12 2016, 2:11 PM.
Tags
None
Referenced Files
F19312261: D15003.id36246.diff
Thu, Dec 25, 12:07 AM
F18813655: D15003.id36243.diff
Oct 20 2025, 6:13 PM
F18764750: D15003.id36243.diff
Oct 7 2025, 7:42 AM
F18748927: D15003.id36243.diff
Oct 4 2025, 1:35 AM
F18745843: D15003.diff
Oct 3 2025, 9:52 AM
F18740284: D15003.id.diff
Oct 2 2025, 1:56 AM
F18659109: D15003.id36243.diff
Sep 23 2025, 9:57 AM
F18643105: D15003.id36243.diff
Sep 19 2025, 1:32 AM
Subscribers
None

Details

Summary

Fixes T10135. When the viewer is a member of no projects, specify the constraint type as a new "EMPTY" type.

When a query has an "EMPTY" constraint, fail fast with no results.

Test Plan
  • Viewed a viewerprojects() query result set as a user in no projects.
    • Before patch: got a lot of hits. After patch: no hits.
  • Viewed a normal result set, no changes.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Don't return any results for viewerprojects() if the viewer is in no projects.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 12 2016, 3:00 PM
This revision was automatically updated to reflect the committed changes.