Restrict watching and member project display better

Summary: Fixes T12713. We don't need to show watching and member info on other views other than ApplicationSearch (for now) so add a few methods to restrict the calls.

Test Plan: Visit project search, profile, project home, project home with subprojects

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12713

Differential Revision: https://secure.phabricator.com/D17883
This commit is contained in:
Chad Little
2017-05-15 09:02:39 -07:00
parent 6fa91caf32
commit ea874a2825
4 changed files with 24 additions and 13 deletions

View File

@@ -31,8 +31,6 @@ final class PhabricatorProjectSubprojectsController
->setViewer($viewer)
->withParentProjectPHIDs(array($project->getPHID()))
->needImages(true)
->needMembers(true)
->needWatchers(true)
->withIsMilestone(false)
->execute();
} else {
@@ -44,8 +42,6 @@ final class PhabricatorProjectSubprojectsController
->setViewer($viewer)
->withParentProjectPHIDs(array($project->getPHID()))
->needImages(true)
->needMembers(true)
->needWatchers(true)
->withIsMilestone(true)
->setOrderVector(array('milestoneNumber', 'id'))
->execute();