mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01: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:
parent
28c198d902
commit
4aea31023d
1 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue