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

Allow "phriction.document.search" to query by path

Summary: Ref T13077. Adds a "paths" constraint to the API query.

Test Plan: Used paths constraint to fetch documents.

Maniphest Tasks: T13077

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

+8
+8
src/applications/phriction/query/PhrictionDocumentSearchEngine.php
··· 23 23 $query->withStatuses($map['statuses']); 24 24 } 25 25 26 + if ($map['paths']) { 27 + $query->withSlugs($map['paths']); 28 + } 29 + 26 30 return $query; 27 31 } 28 32 ··· 32 36 ->setKey('statuses') 33 37 ->setLabel(pht('Status')) 34 38 ->setOptions(PhrictionDocumentStatus::getStatusMap()), 39 + id(new PhabricatorSearchStringListField()) 40 + ->setKey('paths') 41 + ->setIsHidden(true) 42 + ->setLabel(pht('Paths')), 35 43 ); 36 44 } 37 45