@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 Conduit edit endpoint for Macro

Summary: Opens up the edit endpoint for Macros

Test Plan: Review /conduit/method/macro.edit/

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+22 -1
+2
src/__phutil_library_map__.php
··· 1451 1451 'LiskRawMigrationIterator' => 'infrastructure/storage/lisk/LiskRawMigrationIterator.php', 1452 1452 'MacroConduitAPIMethod' => 'applications/macro/conduit/MacroConduitAPIMethod.php', 1453 1453 'MacroCreateMemeConduitAPIMethod' => 'applications/macro/conduit/MacroCreateMemeConduitAPIMethod.php', 1454 + 'MacroEditConduitAPIMethod' => 'applications/macro/conduit/MacroEditConduitAPIMethod.php', 1454 1455 'MacroEmojiExample' => 'applications/uiexample/examples/MacroEmojiExample.php', 1455 1456 'MacroQueryConduitAPIMethod' => 'applications/macro/conduit/MacroQueryConduitAPIMethod.php', 1456 1457 'ManiphestAssignEmailCommand' => 'applications/maniphest/command/ManiphestAssignEmailCommand.php', ··· 6479 6480 'LiskRawMigrationIterator' => 'PhutilBufferedIterator', 6480 6481 'MacroConduitAPIMethod' => 'ConduitAPIMethod', 6481 6482 'MacroCreateMemeConduitAPIMethod' => 'MacroConduitAPIMethod', 6483 + 'MacroEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod', 6482 6484 'MacroEmojiExample' => 'PhabricatorUIExample', 6483 6485 'MacroQueryConduitAPIMethod' => 'MacroConduitAPIMethod', 6484 6486 'ManiphestAssignEmailCommand' => 'ManiphestEmailCommand',
+19
src/applications/macro/conduit/MacroEditConduitAPIMethod.php
··· 1 + <?php 2 + 3 + final class MacroEditConduitAPIMethod 4 + extends PhabricatorEditEngineAPIMethod { 5 + 6 + public function getAPIMethodName() { 7 + return 'macro.edit'; 8 + } 9 + 10 + public function newEditEngine() { 11 + return new PhabricatorMacroEditEngine(); 12 + } 13 + 14 + public function getMethodSummary() { 15 + return pht( 16 + 'Apply transactions to create a new macro or edit an existing one.'); 17 + } 18 + 19 + }
+1 -1
src/applications/macro/editor/PhabricatorMacroEditEngine.php
··· 87 87 ->setKey('name') 88 88 ->setLabel(pht('Name')) 89 89 ->setDescription(pht('Macro name.')) 90 - ->setConduitDescription(pht('Rename the macro.')) 90 + ->setConduitDescription(pht('Name of the macro.')) 91 91 ->setConduitTypeDescription(pht('New macro name.')) 92 92 ->setTransactionType(PhabricatorMacroNameTransaction::TRANSACTIONTYPE) 93 93 ->setIsRequired(true)