Rename "needReviewerStatus()" into "needReviewers()"

Summary: Ref T10967. The old name was because we had a `getReviewers()` tied to `needRelationships()`, rename this method to use a simpler and more clear name.

Test Plan: `grep`, browsed around.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10967

Differential Revision: https://secure.phabricator.com/D17519
This commit is contained in:
epriestley
2017-03-20 14:37:24 -07:00
parent d179d0150c
commit a15df4f8d5
22 changed files with 29 additions and 29 deletions

View File

@@ -17,7 +17,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
$revision = id(new DifferentialRevisionQuery())
->withIDs(array($this->revisionID))
->setViewer($viewer)
->needReviewerStatus(true)
->needReviewers(true)
->needReviewerAuthority(true)
->executeOne();
if (!$revision) {
@@ -784,7 +784,7 @@ final class DifferentialRevisionViewController extends DifferentialController {
->setLimit(10)
->needFlags(true)
->needDrafts(true)
->needReviewerStatus(true);
->needReviewers(true);
foreach ($path_map as $path => $path_id) {
$query->withPath($repository->getID(), $path_id);