Go to file
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
db_patches Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
i18n Localisation updates from https://translatewiki.net. 2016-04-14 22:34:11 +02:00
images Crush all SVGs with svgo 2016-01-15 17:05:17 -08:00
includes BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
maintenance Support generating sample notifications by types 2016-03-02 15:04:56 -05:00
modules Also show the survey tooltip on click 2016-04-08 17:13:28 -07:00
scripts Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
tests BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
.csslintrc Add Grunt infrastructure for CI 2015-05-01 20:35:23 -07:00
.gitignore Run phpcs through "composer test", disabling failing rules 2015-10-29 12:52:32 +01:00
.gitreview Add .gitreview file 2012-04-28 01:26:21 +10:00
.jscsrc jscs: Enable checkRedundantParams and make pass 2016-03-31 07:12:46 +00:00
.jshintignore Recurse into sub folders for jshint and jscs 2015-11-09 12:52:42 +00:00
.jshintrc Update formatting 2015-10-03 23:28:54 -04:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.rubocop.yml Fixed Metrics/LineLength RuboCop offense 2015-09-29 14:59:05 +02:00
autoload.php Merge "Run scripts/gen-autoload.php" 2016-02-13 07:25:53 +00:00
composer.json Wrap CallbackFilterIterator in a condition check 2016-01-26 14:57:18 -07:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add Czech alias of Special:Notifications 2015-12-07 17:21:16 +01:00
Echo.php BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
echo.sql Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
Gemfile Update mediawiki_selenium Ruby gem to version 1.6.5 2016-02-03 18:03:20 +01:00
Gemfile.lock Update mediawiki_selenium Ruby gem to version 1.6.5 2016-02-03 18:03:20 +01:00
Gruntfile.js build: Remove grunt-contrib-csslint 2016-01-18 19:51:04 -08:00
Hooks.php BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
Makefile Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
package.json build: Bump npm devDependencies to latest 2016-03-24 00:58:54 +00:00
phpcs.xml build: Enable phpcs rule 'MediaWiki.VariableAnalysis.UnusedGlobalVariables' and make pass 2015-10-29 17:25:51 +00:00
Rakefile Added Rakefile 2015-11-10 10:25:12 +00:00
RELEASE_NOTES BREAKING CHANGE: Change $wgEchoDefaultNotificationTypes to be logical 2016-04-22 19:08:12 -07:00
Resources.php Stop counting notifications objects on the client 2016-03-25 15:31:00 -04:00