Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/search/DifferentialSearchIndexer.php
Show All 38 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
} | } | ||||
$doc->addRelationship( | $doc->addRelationship( | ||||
PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR, | PhabricatorSearchRelationship::RELATIONSHIP_AUTHOR, | ||||
$rev->getAuthorPHID(), | $rev->getAuthorPHID(), | ||||
PhabricatorPeoplePHIDTypeUser::TYPECONST, | PhabricatorPeoplePHIDTypeUser::TYPECONST, | ||||
$rev->getDateCreated()); | $rev->getDateCreated()); | ||||
if ($rev->getStatus() != ArcanistDifferentialRevisionStatus::CLOSED && | if (!$rev->isClosed()) { | ||||
$rev->getStatus() != ArcanistDifferentialRevisionStatus::ABANDONED) { | |||||
$doc->addRelationship( | $doc->addRelationship( | ||||
PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | ||||
$rev->getPHID(), | $rev->getPHID(), | ||||
DifferentialPHIDTypeRevision::TYPECONST, | DifferentialPHIDTypeRevision::TYPECONST, | ||||
time()); | time()); | ||||
} | } | ||||
$comments = id(new DifferentialCommentQuery()) | $comments = id(new DifferentialCommentQuery()) | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |