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

Port Maniphest options.

Test Plan: Viewed the new options.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2255

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

authored by

Ricky Elrod and committed by
epriestley
30345cfb 63863dad

+53
+2
src/__phutil_library_map__.php
··· 927 927 'PhabricatorMainMenuIconView' => 'view/page/menu/PhabricatorMainMenuIconView.php', 928 928 'PhabricatorMainMenuSearchView' => 'view/page/menu/PhabricatorMainMenuSearchView.php', 929 929 'PhabricatorMainMenuView' => 'view/page/menu/PhabricatorMainMenuView.php', 930 + 'PhabricatorManiphestConfigOptions' => 'applications/maniphest/config/PhabricatorManiphestConfigOptions.php', 930 931 'PhabricatorMarkupCache' => 'applications/cache/storage/PhabricatorMarkupCache.php', 931 932 'PhabricatorMarkupEngine' => 'infrastructure/markup/PhabricatorMarkupEngine.php', 932 933 'PhabricatorMarkupInterface' => 'infrastructure/markup/PhabricatorMarkupInterface.php', ··· 2274 2275 'PhabricatorMainMenuIconView' => 'AphrontView', 2275 2276 'PhabricatorMainMenuSearchView' => 'AphrontView', 2276 2277 'PhabricatorMainMenuView' => 'AphrontView', 2278 + 'PhabricatorManiphestConfigOptions' => 'PhabricatorApplicationConfigOptions', 2277 2279 'PhabricatorMarkupCache' => 'PhabricatorCacheDAO', 2278 2280 'PhabricatorMenuItemView' => 'AphrontView', 2279 2281 'PhabricatorMenuView' => 'AphrontView',
+51
src/applications/maniphest/config/PhabricatorManiphestConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorManiphestConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("Maniphest"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Configure Maniphest."); 12 + } 13 + 14 + public function getOptions() { 15 + return array( 16 + $this->newOption('maniphest.enabled', 'bool', true) 17 + ->setDescription(pht("Enable Maniphest")), 18 + $this->newOption('maniphest.custom-fields', 'wild', array()) 19 + ->setSummary(pht("Custom Maniphest fields.")) 20 + ->setDescription( 21 + pht( 22 + "Array of custom fields for Maniphest tasks. For details on ". 23 + "adding custom fields to Maniphest, see 'Maniphest User Guide: ". 24 + "Adding Custom Fields'.")) 25 + ->addExample( 26 + '{"mycompany:estimated-hours": {"label": "Estimated Hours", '. 27 + '"type": "int", "caption": "Estimated number of hours this will '. 28 + 'take.", "required": false}}', 29 + pht('Valid Setting')), 30 + $this->newOption( 31 + 'maniphest.custom-task-extensions-class', 32 + 'class', 33 + 'ManiphestDefaultTaskExtensions') 34 + ->setBaseClass('ManiphestTaskExtensions') 35 + ->setSummary(pht("Class which drives custom field construction.")) 36 + ->setDescription( 37 + pht( 38 + "Class which drives custom field construction. See 'Maniphest ". 39 + "User Guide: Adding Custom Fields' in the documentation for more ". 40 + "information.")), 41 + $this->newOption('maniphest.default-priority', 'int', 90) 42 + ->setSummary(pht("Default task priority for create flows.")) 43 + ->setDescription( 44 + pht( 45 + "What should the default task priority be in create flows? See ". 46 + "the constants in @{class:ManiphestTaskPriority} for valid ". 47 + "values. Defaults to 'needs triage'.")), 48 + ); 49 + } 50 + 51 + }