Page MenuHomePhabricator

D9606.diff
No OneTemporary

D9606.diff

diff --git a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php
--- a/src/applications/daemon/query/PhabricatorDaemonLogQuery.php
+++ b/src/applications/daemon/query/PhabricatorDaemonLogQuery.php
@@ -7,6 +7,7 @@
const STATUS_ALIVE = 'status-alive';
private $ids;
+ private $notIDs;
private $status = self::STATUS_ALL;
private $daemonClasses;
private $allowStatusWrites;
@@ -24,6 +25,11 @@
return $this;
}
+ public function withoutIDs(array $ids) {
+ $this->notIDs = $ids;
+ return $this;
+ }
+
public function withStatus($status) {
$this->status = $status;
return $this;
@@ -119,6 +125,13 @@
$this->ids);
}
+ if ($this->notIDs) {
+ $where[] = qsprintf(
+ $conn_r,
+ 'id NOT IN (%Ld)',
+ $this->notIDs);
+ }
+
if ($this->getStatusConstants()) {
$where[] = qsprintf(
$conn_r,

File Metadata

Mime Type
text/plain
Expires
Wed, Oct 30, 2:10 PM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712863
Default Alt Text
D9606.diff (964 B)

Event Timeline