@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.

Add a `withoutIDs` method to `PhabricatorDaemonLogQuery`.

Summary: Add a method to `PhabricatorDaemonLogQuery` to exclude IDs from the results.

Test Plan: Thought long and hard.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

+13
+13
src/applications/daemon/query/PhabricatorDaemonLogQuery.php
··· 7 7 const STATUS_ALIVE = 'status-alive'; 8 8 9 9 private $ids; 10 + private $notIDs; 10 11 private $status = self::STATUS_ALL; 11 12 private $daemonClasses; 12 13 private $allowStatusWrites; ··· 21 22 22 23 public function withIDs(array $ids) { 23 24 $this->ids = $ids; 25 + return $this; 26 + } 27 + 28 + public function withoutIDs(array $ids) { 29 + $this->notIDs = $ids; 24 30 return $this; 25 31 } 26 32 ··· 117 123 $conn_r, 118 124 'id IN (%Ld)', 119 125 $this->ids); 126 + } 127 + 128 + if ($this->notIDs) { 129 + $where[] = qsprintf( 130 + $conn_r, 131 + 'id NOT IN (%Ld)', 132 + $this->notIDs); 120 133 } 121 134 122 135 if ($this->getStatusConstants()) {