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

+25
+2
src/__phutil_library_map__.php
··· 19 19 'AlmanacBindingTransaction' => 'applications/almanac/storage/AlmanacBindingTransaction.php', 20 20 'AlmanacBindingTransactionQuery' => 'applications/almanac/query/AlmanacBindingTransactionQuery.php', 21 21 'AlmanacBindingViewController' => 'applications/almanac/controller/AlmanacBindingViewController.php', 22 + 'AlmanacClusterDatabaseServiceType' => 'applications/almanac/servicetype/AlmanacClusterDatabaseServiceType.php', 22 23 'AlmanacClusterRepositoryServiceType' => 'applications/almanac/servicetype/AlmanacClusterRepositoryServiceType.php', 23 24 'AlmanacClusterServiceType' => 'applications/almanac/servicetype/AlmanacClusterServiceType.php', 24 25 'AlmanacConduitAPIMethod' => 'applications/almanac/conduit/AlmanacConduitAPIMethod.php', ··· 3070 3071 'AlmanacBindingTransaction' => 'PhabricatorApplicationTransaction', 3071 3072 'AlmanacBindingTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 3072 3073 'AlmanacBindingViewController' => 'AlmanacServiceController', 3074 + 'AlmanacClusterDatabaseServiceType' => 'AlmanacClusterServiceType', 3073 3075 'AlmanacClusterRepositoryServiceType' => 'AlmanacClusterServiceType', 3074 3076 'AlmanacClusterServiceType' => 'AlmanacServiceType', 3075 3077 'AlmanacConduitAPIMethod' => 'ConduitAPIMethod',
+23
src/applications/almanac/servicetype/AlmanacClusterDatabaseServiceType.php
··· 1 + <?php 2 + 3 + final class AlmanacClusterDatabaseServiceType 4 + extends AlmanacClusterServiceType { 5 + 6 + public function getServiceTypeShortName() { 7 + return pht('Cluster Database'); 8 + } 9 + 10 + public function getServiceTypeName() { 11 + return pht('Phabricator Cluster: Database'); 12 + } 13 + 14 + public function getServiceTypeDescription() { 15 + return pht( 16 + 'Defines a database service for use in a Phabricator cluster.'); 17 + } 18 + 19 + public function getFieldSpecifications() { 20 + return array(); 21 + } 22 + 23 + }