Differential D15950 Diff 38411 src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php
<?php | <?php | ||||
final class DifferentialRevisionRequiredActionResultBucket | final class DifferentialRevisionRequiredActionResultBucket | ||||
extends DifferentialRevisionResultBucket { | extends DifferentialRevisionResultBucket { | ||||
const BUCKETKEY = 'action'; | const BUCKETKEY = 'action'; | ||||
const KEY_MUSTREVIEW = 'must-review'; | |||||
const KEY_SHOULDREVIEW = 'should-review'; | |||||
private $objects; | private $objects; | ||||
public function getResultBucketName() { | public function getResultBucketName() { | ||||
return pht('Bucket by Required Action'); | return pht('Bucket by Required Action'); | ||||
} | } | ||||
protected function buildResultGroups( | protected function buildResultGroups( | ||||
PhabricatorSavedQuery $query, | PhabricatorSavedQuery $query, | ||||
Show All 9 Lines | if (!$phids) { | ||||
'specifying "Responsible Users".')); | 'specifying "Responsible Users".')); | ||||
} | } | ||||
$phids = array_fuse($phids); | $phids = array_fuse($phids); | ||||
$groups = array(); | $groups = array(); | ||||
$groups[] = $this->newGroup() | $groups[] = $this->newGroup() | ||||
->setName(pht('Must Review')) | ->setName(pht('Must Review')) | ||||
->setKey(self::KEY_MUSTREVIEW) | |||||
->setNoDataString(pht('No revisions are blocked on your review.')) | ->setNoDataString(pht('No revisions are blocked on your review.')) | ||||
->setObjects($this->filterMustReview($phids)); | ->setObjects($this->filterMustReview($phids)); | ||||
$groups[] = $this->newGroup() | $groups[] = $this->newGroup() | ||||
->setName(pht('Ready to Review')) | ->setName(pht('Ready to Review')) | ||||
->setKey(self::KEY_SHOULDREVIEW) | |||||
->setNoDataString(pht('No revisions are waiting on you to review them.')) | ->setNoDataString(pht('No revisions are waiting on you to review them.')) | ||||
->setObjects($this->filterShouldReview($phids)); | ->setObjects($this->filterShouldReview($phids)); | ||||
$groups[] = $this->newGroup() | $groups[] = $this->newGroup() | ||||
->setName(pht('Ready to Land')) | ->setName(pht('Ready to Land')) | ||||
->setNoDataString(pht('No revisions are ready to land.')) | ->setNoDataString(pht('No revisions are ready to land.')) | ||||
->setObjects($this->filterShouldLand($phids)); | ->setObjects($this->filterShouldLand($phids)); | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |