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

@@ -1765,7 +1765,7 @@ final class DiffusionBrowseController extends DiffusionController {
->withUpdatedEpochBetween($recent, null)
->setOrder(DifferentialRevisionQuery::ORDER_MODIFIED)
->setLimit(10)
->needReviewerStatus(true)
->needReviewers(true)
->needFlags(true)
->needDrafts(true)
->execute();

View File

@@ -190,7 +190,7 @@ final class HeraldCommitAdapter
$revision = id(new DifferentialRevisionQuery())
->withIDs(array($revision_id))
->setViewer(PhabricatorUser::getOmnipotentUser())
->needReviewerStatus(true)
->needReviewers(true)
->executeOne();
if ($revision) {
$this->affectedRevision = $revision;

View File

@@ -190,7 +190,7 @@ final class HeraldPreCommitContentAdapter extends HeraldPreCommitAdapter {
$this->revision = id(new DifferentialRevisionQuery())
->setViewer(PhabricatorUser::getOmnipotentUser())
->withIDs(array($revision_id))
->needReviewerStatus(true)
->needReviewers(true)
->executeOne();
}
}