mediawiki-extensions-Echo/tests/phpunit
Matthew Flaschen 5ecc6aa7c8 BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical
Merge and deploy at the *same time* as:
* BounceHandler - I3c669945080d8e1f67880bd8a31af7f88a70904d
* mediawiki-config - I13817c139967ed9e230cfb0c87c5de66da793c96

Despite claiming to be about categories, $wgEchoDefaultNotificationTypes
was actually configuring both categories and types (which go inside
categories).

For example, 'thank-you-edit' is a type, but 'emailuser' is both
a category and a type (when used as a category, this has special
effects at Special:Preferences).

Since types and categories can and sometimes do have the same names,
this leaves no way to properly and clearly configure them.  It also
makes it difficult to document what is going on (as required by
T132127).

Split into three variables:

$wgDefaultNotifyTypeAvailability - Applies unless overriden

$wgNotifyTypeAvailabilityByCategory - By category; this can be and is
displayed at Special:Preferences

$wgNotifyTypeAvailabilityByNotificationType - By type; this cannot
be displayed at Special:Preferences. To avoid confusing the user,
we introduce a restriction (which was previously followed in practice,
AFAICT) that types can only be overridden if the category is not
displayed in preferences.

Otherwise, it can look to the user like a category is on/off, but the
types within might have the opposite state.

Due to this configuration change, this is a breaking change, and needs
coordinated deployments.

This also lays the groundwork for T132127

Also change terminology to consistently use "notify type" for web/email.

It was mixing between that and output format (which unfortunately
sounds like the API format, e.g. 'model').

Bug: T132820
Bug: T132127
Change-Id: I09f39f5fc5f13f3253af9f7819bca81f1601da93
2016-04-22 19:08:12 -07:00
..
api Hygiene: Echo/tests/phpunit/ directory structure should mimic Echo/ 2014-08-21 22:58:27 +00:00
cache Migrate LocalCache from MapCacheLRU to HashBagOStuff 2015-11-03 06:49:50 +00:00
controller BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
formatters Get rid of old flyout formatter code 2016-02-05 06:56:15 +00:00
gateway Let EchoUserNotificationGateway return a different notification count 2016-03-22 14:22:15 +01:00
iterator Update formatting 2015-10-03 23:28:54 -04:00
maintenance build: Enable phpcs rule 'MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment' and make pass 2015-10-29 13:06:14 +01:00
mapper Also support continuation requests for $unreadFirst 2015-12-10 17:33:32 +01:00
model Update formatting 2015-10-03 23:28:54 -04:00
revision_txt Add test case to demonstrate T68512 is fixed 2015-07-06 17:31:08 -07:00
AttributeManagerTest.php BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
ContainmentSetTest.php Update formatting 2015-10-03 23:28:54 -04:00
DiffParserTest.php build: Enable phpcs rule 'PSR2.Methods.MethodDeclaration.StaticBeforeVisibility' and make pass 2015-10-29 13:06:43 +01:00
DiscussionParserTest.php Recreate test users for every test 2016-04-12 11:42:22 -04:00
EchoDbFactoryTest.php Update formatting 2015-10-03 23:28:54 -04:00
EmailFormatterTest.php Fix visibility of setUp methods in tests 2015-12-14 11:02:34 +01:00
NotifUserTest.php Make plural support for large values (100 or more) explicit in l10n 2016-03-16 18:43:16 -04:00
TalkPageFunctionalTest.php Fix visibility of setUp methods in tests 2015-12-14 11:02:34 +01:00
UserLocatorTest.php Update formatting 2015-10-03 23:28:54 -04:00