@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 edit methods for Almanac services and devices

Summary: See T12414. This just gets started; we still need edit endpoints for network interfaces and bindings.

Test Plan: Created some devices/services from the conduit UI.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

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

+42
+4
src/__phutil_library_map__.php
··· 9 9 phutil_register_library_map(array( 10 10 '__library_version__' => 2, 11 11 'class' => array( 12 + 'AlamancServiceEditConduitAPIMethod' => 'applications/almanac/conduit/AlamancServiceEditConduitAPIMethod.php', 12 13 'AlmanacAddress' => 'applications/almanac/util/AlmanacAddress.php', 13 14 'AlmanacBinding' => 'applications/almanac/storage/AlmanacBinding.php', 14 15 'AlmanacBindingDisableController' => 'applications/almanac/controller/AlmanacBindingDisableController.php', ··· 36 37 'AlmanacDAO' => 'applications/almanac/storage/AlmanacDAO.php', 37 38 'AlmanacDevice' => 'applications/almanac/storage/AlmanacDevice.php', 38 39 'AlmanacDeviceController' => 'applications/almanac/controller/AlmanacDeviceController.php', 40 + 'AlmanacDeviceEditConduitAPIMethod' => 'applications/almanac/conduit/AlmanacDeviceEditConduitAPIMethod.php', 39 41 'AlmanacDeviceEditController' => 'applications/almanac/controller/AlmanacDeviceEditController.php', 40 42 'AlmanacDeviceEditEngine' => 'applications/almanac/editor/AlmanacDeviceEditEngine.php', 41 43 'AlmanacDeviceEditor' => 'applications/almanac/editor/AlmanacDeviceEditor.php', ··· 4930 4932 'require_celerity_resource' => 'applications/celerity/api.php', 4931 4933 ), 4932 4934 'xmap' => array( 4935 + 'AlamancServiceEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod', 4933 4936 'AlmanacAddress' => 'Phobject', 4934 4937 'AlmanacBinding' => array( 4935 4938 'AlmanacDAO', ··· 4975 4978 'PhabricatorExtendedPolicyInterface', 4976 4979 ), 4977 4980 'AlmanacDeviceController' => 'AlmanacController', 4981 + 'AlmanacDeviceEditConduitAPIMethod' => 'PhabricatorEditEngineAPIMethod', 4978 4982 'AlmanacDeviceEditController' => 'AlmanacDeviceController', 4979 4983 'AlmanacDeviceEditEngine' => 'PhabricatorEditEngine', 4980 4984 'AlmanacDeviceEditor' => 'AlmanacEditor',
+19
src/applications/almanac/conduit/AlamancServiceEditConduitAPIMethod.php
··· 1 + <?php 2 + 3 + final class AlamancServiceEditConduitAPIMethod 4 + extends PhabricatorEditEngineAPIMethod { 5 + 6 + public function getAPIMethodName() { 7 + return 'almanac.service.edit'; 8 + } 9 + 10 + public function newEditEngine() { 11 + return new AlmanacServiceEditEngine(); 12 + } 13 + 14 + public function getMethodSummary() { 15 + return pht( 16 + 'Apply transactions to create a new service or edit an existing one.'); 17 + } 18 + 19 + }
+19
src/applications/almanac/conduit/AlmanacDeviceEditConduitAPIMethod.php
··· 1 + <?php 2 + 3 + final class AlmanacDeviceEditConduitAPIMethod 4 + extends PhabricatorEditEngineAPIMethod { 5 + 6 + public function getAPIMethodName() { 7 + return 'almanac.device.edit'; 8 + } 9 + 10 + public function newEditEngine() { 11 + return new AlmanacDeviceEditEngine(); 12 + } 13 + 14 + public function getMethodSummary() { 15 + return pht( 16 + 'Apply transactions to create a new device or edit an existing one.'); 17 + } 18 + 19 + }