Homec4science

Simplify ProjectQuery handling of viewer membership

Authored by epriestley <git@epriestley.com> on Dec 23 2015, 12:42.

Description

Simplify ProjectQuery handling of viewer membership

Summary:
Ref T10010. Currently, we do an unusual JOIN to make testing for viewer membership in projects a little cheaper.

This won't work as-is once we have subprojects, so standardize, simplify, and cover it with more tests for now. (I may be able to get a similar optimization later, but want a correct implementation first.)

Test Plan:
This change should create no behavioral differences.

  • Added tests.
  • Ran tests.
  • Viewed projects.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10010

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

Details

Committed
epriestley <git@epriestley.com>Dec 23 2015, 23:38
Pushed
aubortJan 31 2017, 17:16
Parents
rPHc4df80b39e3b: Remove various unused beahviors from PHUIWorkboardView
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH16d8e806a0bc: Simplify ProjectQuery handling of viewer membership (authored by epriestley <git@epriestley.com>).Dec 23 2015, 23:38