@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Mark diviner atoms as closed in search index

Summary: Ref T4558. If a Diviner atom is a ghost (i.e. the underlying source code has been removed), mark it as closed in the search index.

Test Plan: Searched for a ghost atom in global searcn and saw the results show "Closed".

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T4558

Differential Revision: https://secure.phabricator.com/D13297

+9 -1
+9 -1
src/applications/diviner/search/DivinerAtomSearchIndexer.php
··· 27 27 PhabricatorSearchRelationship::RELATIONSHIP_BOOK, 28 28 $atom->getBookPHID(), 29 29 DivinerBookPHIDType::TYPECONST, 30 - $book->getDateCreated()); 30 + PhabricatorTime::getNow()); 31 + 32 + $doc->addRelationship( 33 + $atom->getGraphHash() 34 + ? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED 35 + : PhabricatorSearchRelationship::RELATIONSHIP_OPEN, 36 + $atom->getBookPHID(), 37 + DivinerBookPHIDType::TYPECONST, 38 + PhabricatorTime::getNow()); 31 39 32 40 return $doc; 33 41 }