From e059997e536d36da46c89c26a96a5100af42b0ea Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 9 May 2019 09:19:23 -0700 Subject: [PATCH] Expose subscribers transaction data via Conduit "transaction.search" Summary: Depends on D20507. See PHI1232. Previously, see T13255 and D20209. Since nothing seems to have exploded after "projects" was exposed, give "subscribers" the same treatment. Test Plan: Added, removed, and modified subscribers. Queried transactions with "transaction.search", saw sensible "type" and data. Reviewers: amckinley Reviewed By: amckinley Differential Revision: https://secure.phabricator.com/D20508 --- .../conduit/TransactionSearchConduitAPIMethod.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php b/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php index 4ab5de519e..8892933903 100644 --- a/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php +++ b/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php @@ -253,6 +253,10 @@ EOREMARKUP break; } break; + case PhabricatorTransactions::TYPE_SUBSCRIBERS: + $type = 'subscribers'; + $fields = $this->newEdgeTransactionFields($xaction); + break; } }