Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15440879
D17425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17425.diff
View Options
diff --git a/src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php b/src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php
--- a/src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php
+++ b/src/applications/differential/query/DifferentialRevisionRequiredActionResultBucket.php
@@ -63,6 +63,11 @@
->setNoDataString(pht('No revisions are waiting on author action.'))
->setObjects($this->filterWaitingOnAuthors($phids));
+ $groups[] = $this->newGroup()
+ ->setName(pht('Waiting on Other Reviewers'))
+ ->setNoDataString(pht('No revisions are waiting for other reviewers.'))
+ ->setObjects($this->filterWaitingOnOtherReviewers($phids));
+
// Because you can apply these buckets to queries which include revisions
// that have been closed, add an "Other" bucket if we still have stuff
// that didn't get filtered into any of the previous buckets.
@@ -203,4 +208,25 @@
return $results;
}
+ private function filterWaitingOnOtherReviewers(array $phids) {
+ $statuses = array(
+ ArcanistDifferentialRevisionStatus::NEEDS_REVIEW,
+ );
+ $statuses = array_fuse($statuses);
+
+ $objects = $this->getRevisionsNotAuthored($this->objects, $phids);
+
+ $results = array();
+ foreach ($objects as $key => $object) {
+ if (!isset($statuses[$object->getStatus()])) {
+ continue;
+ }
+
+ $results[$key] = $object;
+ unset($this->objects[$key]);
+ }
+
+ return $results;
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 27, 3:12 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7703647
Default Alt Text
D17425.diff (1 KB)
Attached To
Mode
D17425: Put revisions waiting on other reviewers in their own bucket
Attached
Detach File
Event Timeline
Log In to Comment