@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.

at recaptime-dev/main 30 lines 704 B view raw
1<?php 2 3final class PhabricatorProjectsAncestorsSearchEngineAttachment 4 extends PhabricatorSearchEngineAttachment { 5 6 public function getAttachmentName() { 7 return pht('Project Ancestors'); 8 } 9 10 public function getAttachmentDescription() { 11 return pht('Get the full ancestor list for each project.'); 12 } 13 14 public function getAttachmentForObject($object, $data, $spec) { 15 $ancestors = $object->getAncestorProjects(); 16 17 // Order ancestors by depth, ascending. 18 $ancestors = array_reverse($ancestors); 19 20 $results = array(); 21 foreach ($ancestors as $ancestor) { 22 $results[] = $ancestor->getRefForConduit(); 23 } 24 25 return array( 26 'ancestors' => $results, 27 ); 28 } 29 30}