@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 an Almanac service type for Drydock to lease against

Summary: Ref T9253. See D13843 for some discussion. This is very bare-bones for now since I believe that almost all interesting configuration (e.g., credentials) should live in Drydock, although I imagine it getting some configuration eventually.

Test Plan: Used {nav Almanac > Services > Create Service} to create a new service of this type.

Reviewers: hach-que, chad

Reviewed By: hach-que, chad

Maniphest Tasks: T9253

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

+20
+2
src/__phutil_library_map__.php
··· 44 44 'AlmanacDeviceTransaction' => 'applications/almanac/storage/AlmanacDeviceTransaction.php', 45 45 'AlmanacDeviceTransactionQuery' => 'applications/almanac/query/AlmanacDeviceTransactionQuery.php', 46 46 'AlmanacDeviceViewController' => 'applications/almanac/controller/AlmanacDeviceViewController.php', 47 + 'AlmanacDrydockPoolServiceType' => 'applications/almanac/servicetype/AlmanacDrydockPoolServiceType.php', 47 48 'AlmanacInterface' => 'applications/almanac/storage/AlmanacInterface.php', 48 49 'AlmanacInterfaceDatasource' => 'applications/almanac/typeahead/AlmanacInterfaceDatasource.php', 49 50 'AlmanacInterfaceEditController' => 'applications/almanac/controller/AlmanacInterfaceEditController.php', ··· 3666 3667 'AlmanacDeviceTransaction' => 'PhabricatorApplicationTransaction', 3667 3668 'AlmanacDeviceTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 3668 3669 'AlmanacDeviceViewController' => 'AlmanacDeviceController', 3670 + 'AlmanacDrydockPoolServiceType' => 'AlmanacServiceType', 3669 3671 'AlmanacInterface' => array( 3670 3672 'AlmanacDAO', 3671 3673 'PhabricatorPolicyInterface',
+18
src/applications/almanac/servicetype/AlmanacDrydockPoolServiceType.php
··· 1 + <?php 2 + 3 + final class AlmanacDrydockPoolServiceType extends AlmanacServiceType { 4 + 5 + public function getServiceTypeShortName() { 6 + return pht('Drydock Pool'); 7 + } 8 + 9 + public function getServiceTypeName() { 10 + return pht('Drydock: Resource Pool'); 11 + } 12 + 13 + public function getServiceTypeDescription() { 14 + return pht( 15 + 'Defines a pool of hosts which Drydock can allocate.'); 16 + } 17 + 18 + }