mediawiki-extensions-Echo/includes
Michael Holloway ce7a46f7ed Add push notifier
Provides a basic push notifier implementation. Since the push service is
not yet in place, all it does for now is log debug output when a
notification is to be sent.

To register the push notifier, add the following configuration to
LocalSettings.php:

 $wgEchoNotifiers['push'] = [ 'EchoPush\\PushNotifier', 'notifyWithPush' ];
 $wgDefaultNotifyTypeAvailability['push'] = true;
 $wgNotifyTypeAvailabilityByCategory['system']['push'] = false;
 $wgNotifyTypeAvailabilityByCategory['system-noemail']['push'] = false;

We'll register the notifier in configuration for now, rather than
hard-coding the default in extension.json, in order to have control over
when and where it rolls out (beta vs. prod, as well as which wikis).

Since the push notifier implementation depends on jobs being processed
by the job queue, I also recommend adding the following configuration
setting to ensure that all pending jobs are processed at the end of each
web request:

 // ensure all pending jobs are processed when a web request completes
 $wgJobRunRate = PHP_INT_MAX;

Bug: T252899
Change-Id: Ie7f222443045d30620ff297b006104ef18a074a8
2020-06-02 13:40:04 -04:00
..
api Add push subscription management 2020-06-02 13:40:00 -04:00
cache build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
controller Add dynamic secondary action to mute/unmute page-linked notifications 2020-05-27 15:20:08 +02:00
exception
formatters Add dynamic secondary action to mute/unmute page-linked notifications 2020-05-27 15:20:08 +02:00
gateway Remove global usage in UserNotificationGateway 2019-08-30 22:58:41 +02:00
iterator build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
jobs Remove duplicate private property from NotificationDeleteJob 2019-10-31 18:18:08 +00:00
mapper build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
model Use new TalkPageNotificationManager 2020-05-15 12:58:14 -04:00
ooui build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 05:09:44 +00:00
Push Add push notifier 2020-06-02 13:40:04 -04:00
special Use WebRequest::getInt for limit parameter 2019-12-13 22:29:07 +01:00
AttributeManager.php Make use of the PHP 7 ?? operator where it makes sense 2019-05-09 15:57:16 +00:00
Bundleable.php Add strict "array" type hints to code expecting arrays 2019-10-24 15:18:58 +00:00
Bundler.php Add strict "array" type hints to code expecting arrays 2019-10-24 15:18:58 +00:00
DataOutputFormatter.php build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
DeferredMarkAsDeletedUpdate.php Merge "Make "@… array" type hints more specific" 2018-08-16 00:57:12 +00:00
DiscussionParser.php Don't put a whole User object in extra[mentioned-users] 2020-05-05 14:41:49 +10:00
EchoArrayList.php
EchoCachedList.php Convert caching to WANObjectCache 2019-02-28 21:56:38 -08:00
EchoContainmentList.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoContainmentSet.php Add page linked event title muted list 2020-05-06 12:38:55 +02:00
EchoDbFactory.php Add strict "array" type hints to code expecting arrays 2019-10-24 15:18:58 +00:00
EchoDiffGroup.php Make "@… array" type hints more specific 2018-08-13 09:27:37 +02:00
EchoDiffParser.php build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
EchoHooks.php Add push subscription management 2020-06-02 13:40:00 -04:00
EchoOnWikiList.php build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
EchoServices.php Add push notifier 2020-06-02 13:40:04 -04:00
EchoSummaryParser.php Replace two regular expressions with cheap string manipulations 2018-10-11 10:59:04 +02:00
EmailBatch.php build: Updating mediawiki/mediawiki-phan-config to 0.9.0 2019-12-29 11:59:32 +00:00
EmailFormat.php
EmailFrequency.php
EventLogging.php Code improvements for includes/ **only** directory 2019-03-05 18:58:52 +01:00
ForeignNotifications.php Use php null coalesce operator ?? 2019-03-12 21:04:00 +01:00
ForeignWikiRequest.php Use HttpRequestFactory::createMultiClient() 2020-05-21 14:23:28 +10:00
Notifier.php build: Updating mediawiki/mediawiki-phan-config to 0.8.0 2019-11-18 20:03:13 +01:00
NotifUser.php Use new TalkPageNotificationManager 2020-05-15 12:58:14 -04:00
ResourceLoaderEchoImageModule.php Remove non helpful (auto-generated) comments 2019-10-23 12:31:35 +02:00
schemaUpdate.php Enable MediaWiki.Usage.ForbiddenFunctions.isset and make pass 2020-02-09 11:58:49 +01:00
SeenTime.php SeenTime: Do not set the cache key to Unix epoch 2019-10-18 14:23:28 +02:00
UnreadWikis.php Fix IDatabase::upsert() call with bad unique key parameters 2020-02-19 13:20:40 -08:00
UserLocator.php Remove usage of deprecated Revision class in Echo 2019-05-08 19:50:58 +01:00