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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user