From c50811137d694adc8896fbc86c1ca495c3dce377 Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Fri, 8 Jul 2016 00:16:51 +0000 Subject: [PATCH] Only show future triggers in Upcoming Triggers panel Test Plan: Have one-off triggers, look in daemon console, don't see expired ones. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D16250 --- .../daemon/controller/PhabricatorDaemonConsoleController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php index 7f7b323956..a70cde04c4 100644 --- a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php +++ b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php @@ -190,6 +190,7 @@ final class PhabricatorDaemonConsoleController $triggers = id(new PhabricatorWorkerTriggerQuery()) ->setViewer($viewer) ->setOrder(PhabricatorWorkerTriggerQuery::ORDER_EXECUTION) + ->withNextEventBetween(0, null) ->needEvents(true) ->setLimit(10) ->execute();