1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Index inline comments on commits

Summary: Fixes T3044. We currently don't add these to the index.

Test Plan: Made a unique inline comment on a commit, then searched for it.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T3044

Differential Revision: https://secure.phabricator.com/D9170
This commit is contained in:
epriestley 2014-05-17 15:31:53 -07:00
parent 28c198d902
commit 4aea31023d

View file

@ -77,6 +77,17 @@ final class PhabricatorRepositoryCommitSearchIndexer
}
}
$inlines = id(new PhabricatorAuditInlineComment())->loadAllWhere(
'commitPHID = %s AND (auditCommentID IS NOT NULL)',
$commit->getPHID());
foreach ($inlines as $inline) {
if (strlen($inline->getContent())) {
$doc->addField(
PhabricatorSearchField::FIELD_COMMENT,
$inline->getContent());
}
}
return $doc;
}
}