Go to file
Matthias Mullie cc11b3c81a Allow certain users to be excluded
Right now, if certain users should be excluded, that would have
to be part of the user-locators already. This is annoying because
it's hard to write "generic" user locators when you want to exclude
just a couple of people in certain cases.
In Flow, for example, we have user-locators for users watching a
board or topic. We don't want to send the notification to people
that have also been mentioned in that post (they'll get a separate
notification). We could build that exception into those
user-locators, but then we couldn't re-use them in other places...
This basically means we couldn't use EchoUserLocator::locateUsersWatchingTitle,
we would have to roll our own that also excludes mentioned users.

Instead, this lets you add 'user-filters' (that functionality
actually exists already, but is not currently exposed), which
lists users to not send the notification to, even though they could
be in a user-locator.

Bug: T125428
Change-Id: Ifa0e2d3283f57624af4c5ec264f9f66223508e83
2016-02-04 11:20:59 +01:00
db_patches Track what wikis a user has unread notifications on 2015-11-20 15:54:11 -08:00
i18n Merge "Bring back user-rights lego messages" 2016-02-03 22:13:33 +00:00
images Crush all SVGs with svgo 2016-01-15 17:05:17 -08:00
includes Allow certain users to be excluded 2016-02-04 11:20:59 +01:00
maintenance Generate sample notifications 2016-01-28 10:45:57 -05:00
modules Truncate usernames, titles and excerpts in notifications 2016-01-29 07:04:23 -05:00
scripts build: Enable phpcs rule 'MediaWiki.NamingConventions.PrefixedGlobalFunctions.wfPrefix' and make pass 2015-10-29 13:06:44 +01:00
tests Allow certain users to be excluded 2016-02-04 11:20:59 +01: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 Actually pass jscs 2015-05-04 19:28:01 +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 "Cross-wiki notifications integration" 2016-01-15 01:15:42 +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 Allow certain users to be excluded 2016-02-04 11:20:59 +01: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 Merge "Display revert edit summary in revert notification body" 2016-01-18 19:46:49 +00:00
Makefile Hygiene: Dont run jshint against .less files 2014-09-05 16:45:34 -07:00
package.json build: Remove grunt-contrib-csslint 2016-01-18 19:51:04 -08: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 Allow multiple target pages per event 2015-03-31 07:56:52 +00:00
Resources.php Rephrase mention notifications 2016-01-29 07:04:23 -05:00