Homec4science

Clean up ProjectQuery when viewer is logged-out or omnipotent

Authored by epriestley <git@epriestley.com> on Dec 27 2015, 13:15.

Description

Clean up ProjectQuery when viewer is logged-out or omnipotent

Summary:
Ref T10010. When the viewer is logged-out or omnipotent, we can skip this query.

(Currently we issue a silly query like src = X AND type = Y AND dst = '', which will never return results.)

Test Plan:

  • Viewed projects as normal user and logged-out user.
  • Ran unit tests.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

Differential Revision: https://secure.phabricator.com/D14892

Details

Committed
epriestley <git@epriestley.com>Dec 27 2015, 18:26
Pushed
aubortJan 31 2017, 17:16
Parents
rPH2b5d4bca8a8f: Put some crumbs on some project pages
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH77897ce86258: Clean up ProjectQuery when viewer is logged-out or omnipotent (authored by epriestley <git@epriestley.com>).Dec 27 2015, 18:26