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

Remove obsolete Badges edge types

Summary: Ref T12270. These no longer have any callsites.

Test Plan: Used `grep` to search for each edge class constant, found no hits.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12270

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

-210
-4
src/__phutil_library_map__.php
··· 2012 2012 'PhabricatorAuthValidateController' => 'applications/auth/controller/PhabricatorAuthValidateController.php', 2013 2013 'PhabricatorAuthenticationConfigOptions' => 'applications/config/option/PhabricatorAuthenticationConfigOptions.php', 2014 2014 'PhabricatorAutoEventListener' => 'infrastructure/events/PhabricatorAutoEventListener.php', 2015 - 'PhabricatorBadgeHasRecipientEdgeType' => 'applications/badges/edge/PhabricatorBadgeHasRecipientEdgeType.php', 2016 2015 'PhabricatorBadgesApplication' => 'applications/badges/application/PhabricatorBadgesApplication.php', 2017 2016 'PhabricatorBadgesArchiveController' => 'applications/badges/controller/PhabricatorBadgesArchiveController.php', 2018 2017 'PhabricatorBadgesAward' => 'applications/badges/storage/PhabricatorBadgesAward.php', ··· 3623 3622 'PhabricatorQueryOrderVector' => 'infrastructure/query/order/PhabricatorQueryOrderVector.php', 3624 3623 'PhabricatorRateLimitRequestExceptionHandler' => 'aphront/handler/PhabricatorRateLimitRequestExceptionHandler.php', 3625 3624 'PhabricatorRecaptchaConfigOptions' => 'applications/config/option/PhabricatorRecaptchaConfigOptions.php', 3626 - 'PhabricatorRecipientHasBadgeEdgeType' => 'applications/badges/edge/PhabricatorRecipientHasBadgeEdgeType.php', 3627 3625 'PhabricatorRedirectController' => 'applications/base/controller/PhabricatorRedirectController.php', 3628 3626 'PhabricatorRefreshCSRFController' => 'applications/auth/controller/PhabricatorRefreshCSRFController.php', 3629 3627 'PhabricatorRegistrationProfile' => 'applications/people/storage/PhabricatorRegistrationProfile.php', ··· 6998 6996 'PhabricatorAuthValidateController' => 'PhabricatorAuthController', 6999 6997 'PhabricatorAuthenticationConfigOptions' => 'PhabricatorApplicationConfigOptions', 7000 6998 'PhabricatorAutoEventListener' => 'PhabricatorEventListener', 7001 - 'PhabricatorBadgeHasRecipientEdgeType' => 'PhabricatorEdgeType', 7002 6999 'PhabricatorBadgesApplication' => 'PhabricatorApplication', 7003 7000 'PhabricatorBadgesArchiveController' => 'PhabricatorBadgesController', 7004 7001 'PhabricatorBadgesAward' => array( ··· 8878 8875 ), 8879 8876 'PhabricatorRateLimitRequestExceptionHandler' => 'PhabricatorRequestExceptionHandler', 8880 8877 'PhabricatorRecaptchaConfigOptions' => 'PhabricatorApplicationConfigOptions', 8881 - 'PhabricatorRecipientHasBadgeEdgeType' => 'PhabricatorEdgeType', 8882 8878 'PhabricatorRedirectController' => 'PhabricatorController', 8883 8879 'PhabricatorRefreshCSRFController' => 'PhabricatorAuthController', 8884 8880 'PhabricatorRegistrationProfile' => 'Phobject',
-103
src/applications/badges/edge/PhabricatorBadgeHasRecipientEdgeType.php
··· 1 - <?php 2 - 3 - final class PhabricatorBadgeHasRecipientEdgeType 4 - extends PhabricatorEdgeType { 5 - 6 - const EDGECONST = 59; 7 - 8 - public function getInverseEdgeConstant() { 9 - return PhabricatorRecipientHasBadgeEdgeType::EDGECONST; 10 - } 11 - 12 - public function shouldWriteInverseTransactions() { 13 - return true; 14 - } 15 - 16 - public function getTransactionAddString( 17 - $actor, 18 - $add_count, 19 - $add_edges) { 20 - 21 - return pht( 22 - '%s awarded %s recipients(s): %s.', 23 - $actor, 24 - $add_count, 25 - $add_edges); 26 - } 27 - 28 - public function getTransactionRemoveString( 29 - $actor, 30 - $rem_count, 31 - $rem_edges) { 32 - 33 - return pht( 34 - '%s revoked %s recipients(s): %s.', 35 - $actor, 36 - $rem_count, 37 - $rem_edges); 38 - } 39 - 40 - public function getTransactionEditString( 41 - $actor, 42 - $total_count, 43 - $add_count, 44 - $add_edges, 45 - $rem_count, 46 - $rem_edges) { 47 - 48 - return pht( 49 - '%s edited recipient(s), awarded %s: %s; revoked %s: %s.', 50 - $actor, 51 - $add_count, 52 - $add_edges, 53 - $rem_count, 54 - $rem_edges); 55 - } 56 - 57 - public function getFeedAddString( 58 - $actor, 59 - $object, 60 - $add_count, 61 - $add_edges) { 62 - 63 - return pht( 64 - '%s awarded %s recipient(s) for %s: %s.', 65 - $actor, 66 - $add_count, 67 - $object, 68 - $add_edges); 69 - } 70 - 71 - public function getFeedRemoveString( 72 - $actor, 73 - $object, 74 - $rem_count, 75 - $rem_edges) { 76 - 77 - return pht( 78 - '%s revoked %s recipient(s) for %s: %s.', 79 - $actor, 80 - $rem_count, 81 - $object, 82 - $rem_edges); 83 - } 84 - 85 - public function getFeedEditString( 86 - $actor, 87 - $object, 88 - $total_count, 89 - $add_count, 90 - $add_edges, 91 - $rem_count, 92 - $rem_edges) { 93 - 94 - return pht( 95 - '%s edited recipient(s) for %s, awarded %s: %s; revoked %s: %s.', 96 - $actor, 97 - $object, 98 - $add_count, 99 - $add_edges, 100 - $rem_count, 101 - $rem_edges); 102 - } 103 - }
-103
src/applications/badges/edge/PhabricatorRecipientHasBadgeEdgeType.php
··· 1 - <?php 2 - 3 - final class PhabricatorRecipientHasBadgeEdgeType 4 - extends PhabricatorEdgeType { 5 - 6 - const EDGECONST = 58; 7 - 8 - public function getInverseEdgeConstant() { 9 - return PhabricatorBadgeHasRecipientEdgeType::EDGECONST; 10 - } 11 - 12 - public function shouldWriteInverseTransactions() { 13 - return true; 14 - } 15 - 16 - public function getTransactionAddString( 17 - $actor, 18 - $add_count, 19 - $add_edges) { 20 - 21 - return pht( 22 - '%s added %s badge(s): %s.', 23 - $actor, 24 - $add_count, 25 - $add_edges); 26 - } 27 - 28 - public function getTransactionRemoveString( 29 - $actor, 30 - $rem_count, 31 - $rem_edges) { 32 - 33 - return pht( 34 - '%s revoked %s badge(s): %s.', 35 - $actor, 36 - $rem_count, 37 - $rem_edges); 38 - } 39 - 40 - public function getTransactionEditString( 41 - $actor, 42 - $total_count, 43 - $add_count, 44 - $add_edges, 45 - $rem_count, 46 - $rem_edges) { 47 - 48 - return pht( 49 - '%s edited badge(s), added %s: %s; revoked %s: %s.', 50 - $actor, 51 - $add_count, 52 - $add_edges, 53 - $rem_count, 54 - $rem_edges); 55 - } 56 - 57 - public function getFeedAddString( 58 - $actor, 59 - $object, 60 - $add_count, 61 - $add_edges) { 62 - 63 - return pht( 64 - '%s added %s badge(s) for %s: %s.', 65 - $actor, 66 - $add_count, 67 - $object, 68 - $add_edges); 69 - } 70 - 71 - public function getFeedRemoveString( 72 - $actor, 73 - $object, 74 - $rem_count, 75 - $rem_edges) { 76 - 77 - return pht( 78 - '%s revoked %s badge(s) for %s: %s.', 79 - $actor, 80 - $rem_count, 81 - $object, 82 - $rem_edges); 83 - } 84 - 85 - public function getFeedEditString( 86 - $actor, 87 - $object, 88 - $total_count, 89 - $add_count, 90 - $add_edges, 91 - $rem_count, 92 - $rem_edges) { 93 - 94 - return pht( 95 - '%s edited badge(s) for %s, added %s: %s; revoked %s: %s.', 96 - $actor, 97 - $object, 98 - $add_count, 99 - $add_edges, 100 - $rem_count, 101 - $rem_edges); 102 - } 103 - }