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

Add maniphest.priority.search method

Summary: Start on plan outlined in T12124. Adds a new Conduit method for querying information about task priorities.

Test Plan: Ran locally; observed expected output: {F4979109}

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley

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

+47 -1
+2
src/__phutil_library_map__.php
··· 1494 1494 'ManiphestPointsConfigOptionType' => 'applications/maniphest/config/ManiphestPointsConfigOptionType.php', 1495 1495 'ManiphestPriorityConfigOptionType' => 'applications/maniphest/config/ManiphestPriorityConfigOptionType.php', 1496 1496 'ManiphestPriorityEmailCommand' => 'applications/maniphest/command/ManiphestPriorityEmailCommand.php', 1497 + 'ManiphestPrioritySearchConduitAPIMethod' => 'applications/maniphest/conduit/ManiphestPrioritySearchConduitAPIMethod.php', 1497 1498 'ManiphestProjectNameFulltextEngineExtension' => 'applications/maniphest/engineextension/ManiphestProjectNameFulltextEngineExtension.php', 1498 1499 'ManiphestQueryConduitAPIMethod' => 'applications/maniphest/conduit/ManiphestQueryConduitAPIMethod.php', 1499 1500 'ManiphestQueryStatusesConduitAPIMethod' => 'applications/maniphest/conduit/ManiphestQueryStatusesConduitAPIMethod.php', ··· 6593 6594 'ManiphestPointsConfigOptionType' => 'PhabricatorConfigJSONOptionType', 6594 6595 'ManiphestPriorityConfigOptionType' => 'PhabricatorConfigJSONOptionType', 6595 6596 'ManiphestPriorityEmailCommand' => 'ManiphestEmailCommand', 6597 + 'ManiphestPrioritySearchConduitAPIMethod' => 'ManiphestConduitAPIMethod', 6596 6598 'ManiphestProjectNameFulltextEngineExtension' => 'PhabricatorFulltextEngineExtension', 6597 6599 'ManiphestQueryConduitAPIMethod' => 'ManiphestConduitAPIMethod', 6598 6600 'ManiphestQueryStatusesConduitAPIMethod' => 'ManiphestConduitAPIMethod',
+44
src/applications/maniphest/conduit/ManiphestPrioritySearchConduitAPIMethod.php
··· 1 + <?php 2 + 3 + final class ManiphestPrioritySearchConduitAPIMethod 4 + extends ManiphestConduitAPIMethod { 5 + 6 + public function getAPIMethodName() { 7 + return 'maniphest.priority.search'; 8 + } 9 + 10 + public function getMethodSummary() { 11 + return pht('Read information about task priorities.'); 12 + } 13 + 14 + public function getMethodDescription() { 15 + return pht( 16 + 'Returns information about the possible priorities for Maniphest '. 17 + 'tasks.'); 18 + } 19 + 20 + protected function defineParamTypes() { 21 + return array(); 22 + } 23 + 24 + protected function defineReturnType() { 25 + return 'map<string, wild>'; 26 + } 27 + 28 + public function getRequiredScope() { 29 + return self::SCOPE_ALWAYS; 30 + } 31 + 32 + protected function execute(ConduitAPIRequest $request) { 33 + $config = ManiphestTaskPriority::getConfig(); 34 + 35 + $results = array(); 36 + foreach ($config as $code => $priority) { 37 + $priority['value'] = $code; 38 + $results[] = $priority; 39 + } 40 + 41 + return array('data' => $results); 42 + } 43 + 44 + }
+1 -1
src/applications/maniphest/constants/ManiphestTaskPriority.php
··· 110 110 return idx($config, 'disabled', false); 111 111 } 112 112 113 - private static function getConfig() { 113 + public static function getConfig() { 114 114 $config = PhabricatorEnv::getEnvConfig('maniphest.priorities'); 115 115 krsort($config); 116 116 return $config;