Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/search/ManiphestSearchIndexer.php
Show All 28 Lines | protected function buildAbstractDocumentByPHID($phid) { | ||||
$doc->addRelationship( | $doc->addRelationship( | ||||
$task->isClosed() | $task->isClosed() | ||||
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED | ||||
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, | ||||
$task->getPHID(), | $task->getPHID(), | ||||
ManiphestTaskPHIDType::TYPECONST, | ManiphestTaskPHIDType::TYPECONST, | ||||
time()); | time()); | ||||
$this->indexTransactions( | |||||
$doc, | |||||
new ManiphestTransactionQuery(), | |||||
array($phid)); | |||||
$owner = $task->getOwnerPHID(); | $owner = $task->getOwnerPHID(); | ||||
if ($owner) { | if ($owner) { | ||||
$doc->addRelationship( | $doc->addRelationship( | ||||
PhabricatorSearchRelationship::RELATIONSHIP_OWNER, | PhabricatorSearchRelationship::RELATIONSHIP_OWNER, | ||||
$owner, | $owner, | ||||
PhabricatorPeopleUserPHIDType::TYPECONST, | PhabricatorPeopleUserPHIDType::TYPECONST, | ||||
time()); | time()); | ||||
} else { | } else { | ||||
Show All 11 Lines |