From b787d3ef0df704c6c1a8d452309e2c19f0cd1880 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 2 Aug 2014 00:06:35 -0700 Subject: [PATCH] Use standard infrastructure for Audit search indexing Summary: Ref T4896. Test Plan: Made an unusual comment, then found it by searching. Reviewers: btrahan, joshuaspence Reviewed By: btrahan, joshuaspence Subscribers: epriestley Maniphest Tasks: T4896 Differential Revision: https://secure.phabricator.com/D10110 --- .../audit/editor/PhabricatorAuditCommentEditor.php | 3 --- src/applications/audit/editor/PhabricatorAuditEditor.php | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/applications/audit/editor/PhabricatorAuditCommentEditor.php b/src/applications/audit/editor/PhabricatorAuditCommentEditor.php index 356663d592..671497a10e 100644 --- a/src/applications/audit/editor/PhabricatorAuditCommentEditor.php +++ b/src/applications/audit/editor/PhabricatorAuditCommentEditor.php @@ -263,9 +263,6 @@ final class PhabricatorAuditCommentEditor extends PhabricatorEditor { $this->publishFeedStory($comment, $feed_phids); } - id(new PhabricatorSearchIndexer()) - ->queueDocumentForIndexing($commit->getPHID()); - if (!$this->noEmail) { $this->sendMail( $comments, diff --git a/src/applications/audit/editor/PhabricatorAuditEditor.php b/src/applications/audit/editor/PhabricatorAuditEditor.php index 2e4a29e9b8..b16864bad2 100644 --- a/src/applications/audit/editor/PhabricatorAuditEditor.php +++ b/src/applications/audit/editor/PhabricatorAuditEditor.php @@ -111,4 +111,8 @@ final class PhabricatorAuditEditor return array_values(array_merge($head, $tail)); } + protected function supportsSearch() { + return true; + } + }