Add a "ClusterDatabase" Almanac service type
Summary: Ref T5833. This doesn't do anything yet, but will allow new instances to automaticaly bind to an open database without anything too hacky.
Test Plan:
Created a service of this type.
{F267059}
Reviewers: btrahan
Reviewed By: btrahan
Subscribers: epriestley
Maniphest Tasks: T5833
Differential Revision: https://secure.phabricator.com/D11372
			
			
This commit is contained in:
		| @@ -19,6 +19,7 @@ phutil_register_library_map(array( | |||||||
|     'AlmanacBindingTransaction' => 'applications/almanac/storage/AlmanacBindingTransaction.php', |     'AlmanacBindingTransaction' => 'applications/almanac/storage/AlmanacBindingTransaction.php', | ||||||
|     'AlmanacBindingTransactionQuery' => 'applications/almanac/query/AlmanacBindingTransactionQuery.php', |     'AlmanacBindingTransactionQuery' => 'applications/almanac/query/AlmanacBindingTransactionQuery.php', | ||||||
|     'AlmanacBindingViewController' => 'applications/almanac/controller/AlmanacBindingViewController.php', |     'AlmanacBindingViewController' => 'applications/almanac/controller/AlmanacBindingViewController.php', | ||||||
|  |     'AlmanacClusterDatabaseServiceType' => 'applications/almanac/servicetype/AlmanacClusterDatabaseServiceType.php', | ||||||
|     'AlmanacClusterRepositoryServiceType' => 'applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php', |     'AlmanacClusterRepositoryServiceType' => 'applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php', | ||||||
|     'AlmanacClusterServiceType' => 'applications/almanac/servicetype/AlmanacClusterServiceType.php', |     'AlmanacClusterServiceType' => 'applications/almanac/servicetype/AlmanacClusterServiceType.php', | ||||||
|     'AlmanacConduitAPIMethod' => 'applications/almanac/conduit/AlmanacConduitAPIMethod.php', |     'AlmanacConduitAPIMethod' => 'applications/almanac/conduit/AlmanacConduitAPIMethod.php', | ||||||
| @@ -3070,6 +3071,7 @@ phutil_register_library_map(array( | |||||||
|     'AlmanacBindingTransaction' => 'PhabricatorApplicationTransaction', |     'AlmanacBindingTransaction' => 'PhabricatorApplicationTransaction', | ||||||
|     'AlmanacBindingTransactionQuery' => 'PhabricatorApplicationTransactionQuery', |     'AlmanacBindingTransactionQuery' => 'PhabricatorApplicationTransactionQuery', | ||||||
|     'AlmanacBindingViewController' => 'AlmanacServiceController', |     'AlmanacBindingViewController' => 'AlmanacServiceController', | ||||||
|  |     'AlmanacClusterDatabaseServiceType' => 'AlmanacClusterServiceType', | ||||||
|     'AlmanacClusterRepositoryServiceType' => 'AlmanacClusterServiceType', |     'AlmanacClusterRepositoryServiceType' => 'AlmanacClusterServiceType', | ||||||
|     'AlmanacClusterServiceType' => 'AlmanacServiceType', |     'AlmanacClusterServiceType' => 'AlmanacServiceType', | ||||||
|     'AlmanacConduitAPIMethod' => 'ConduitAPIMethod', |     'AlmanacConduitAPIMethod' => 'ConduitAPIMethod', | ||||||
|   | |||||||
| @@ -0,0 +1,23 @@ | |||||||
|  | <?php | ||||||
|  |  | ||||||
|  | final class AlmanacClusterDatabaseServiceType | ||||||
|  |   extends AlmanacClusterServiceType { | ||||||
|  |  | ||||||
|  |   public function getServiceTypeShortName() { | ||||||
|  |     return pht('Cluster Database'); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   public function getServiceTypeName() { | ||||||
|  |     return pht('Phabricator Cluster: Database'); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   public function getServiceTypeDescription() { | ||||||
|  |     return pht( | ||||||
|  |       'Defines a database service for use in a Phabricator cluster.'); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  |   public function getFieldSpecifications() { | ||||||
|  |     return array(); | ||||||
|  |   } | ||||||
|  |  | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user
	 epriestley
					epriestley