@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move revisions without reviewers to author's queue

Summary:
If the revision doesn't have reviewers then it's really not waiting on someone else and the author must take an action.
An improvement would be to check if the reviewers are not disabled but that would require loading their handles.

Test Plan:
/
/differential/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin, s.o.butler

Differential Revision: https://secure.phabricator.com/D5046

vrana fbd41e42 d6432823

+4
+1
src/applications/differential/application/PhabricatorApplicationDifferential.php
··· 77 77 $revisions = id(new DifferentialRevisionQuery()) 78 78 ->withResponsibleUsers(array($user->getPHID())) 79 79 ->withStatus(DifferentialRevisionQuery::STATUS_OPEN) 80 + ->needRelationships(true) 80 81 ->execute(); 81 82 82 83 list($blocking, $active, $waiting) =
+3
src/applications/differential/query/DifferentialRevisionQuery.php
··· 903 903 foreach ($revisions as $revision) { 904 904 $needs_review = ($revision->getStatus() == $status_review); 905 905 $filter_is_author = in_array($revision->getAuthorPHID(), $user_phids); 906 + if (!$revision->getReviewers()) { 907 + $needs_review = false; 908 + } 906 909 907 910 // If exactly one of "needs review" and "the user is the author" is 908 911 // true, the user needs to act on it. Otherwise, they're waiting on