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
F15328560: D15003.id36243.diff
Fri, Mar 7, 5:48 AM
Unknown Object (File)
Feb 14 2025, 4:07 AM
Unknown Object (File)
Feb 9 2025, 12:26 AM
Unknown Object (File)
Feb 9 2025, 12:26 AM
Unknown Object (File)
Feb 9 2025, 12:26 AM
Unknown Object (File)
Feb 9 2025, 12:26 AM
Unknown Object (File)
Feb 2 2025, 12:13 AM
Unknown Object (File)
Jan 24 2025, 11:09 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.