Differential D18339 Diff 44158 src/applications/differential/query/DifferentialRevisionResultBucket.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialRevisionResultBucket.php
| Show All 9 Lines | return id(new PhutilClassMapQuery()) | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| protected function getRevisionsUnderReview(array $objects, array $phids) { | protected function getRevisionsUnderReview(array $objects, array $phids) { | ||||
| $results = array(); | $results = array(); | ||||
| $objects = $this->getRevisionsNotAuthored($objects, $phids); | $objects = $this->getRevisionsNotAuthored($objects, $phids); | ||||
| $status_review = ArcanistDifferentialRevisionStatus::NEEDS_REVIEW; | |||||
| foreach ($objects as $key => $object) { | foreach ($objects as $key => $object) { | ||||
| if ($object->getStatus() != $status_review) { | if (!$object->isNeedsReview()) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| $results[$key] = $object; | $results[$key] = $object; | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines | |||||