Commit graph

1727 commits

Author SHA1 Message Date
Translation updater bot 386037e219 Localisation updates from https://translatewiki.net.
Change-Id: Ibf1b76f9c2c698ac123845fe8ede27e7e0e262be
2020-07-06 09:51:25 +02:00
Translation updater bot 63a7da4e14 Localisation updates from https://translatewiki.net.
Change-Id: I372f8339bd630aeb956e38d437fb37d9d2402659
2020-07-03 08:32:51 +02:00
Translation updater bot e080bbbfd3 Localisation updates from https://translatewiki.net.
Change-Id: I26b4ac0bfdf946b0fabb3ea9362c9430cbad4e16
2020-07-02 08:40:38 +02:00
Translation updater bot c0bbea4cd1 Localisation updates from https://translatewiki.net.
Change-Id: Ideb7c792f3e42645e346ad4fd5506054d4147ddd
2020-07-01 08:43:30 +02:00
Translation updater bot 3346b366e6 Localisation updates from https://translatewiki.net.
Change-Id: I069ddf07dfcc9b1ff1a6515aa2521cbce1e091cd
2020-06-29 16:25:53 +02:00
Translation updater bot 5c88677659 Localisation updates from https://translatewiki.net.
Change-Id: Ie00e8bab95e306e760f8e15db04cbbe876f76a6d
2020-06-26 09:19:49 +02:00
Translation updater bot 5586d94417 Localisation updates from https://translatewiki.net.
Change-Id: I2bfc6d9ea6ed201815f04eda8c972fbca209009b
2020-06-25 08:56:34 +02:00
jenkins-bot 17b57a6f37 Merge "Echo: Add gender support for Mute user label" 2020-06-25 04:32:47 +00:00
Michael Holloway 4180c0c1a0 Change push notification preference column label to "Apps"
Bug: T251462
Change-Id: Ibdec818df6c605d1bc2d2bcb8edb72b62aa35005
2020-06-24 17:31:17 -04:00
Translation updater bot 8c6c89b1ec Localisation updates from https://translatewiki.net.
Change-Id: Ie6d81d6eb63e5a8d25caa00b678a418f47f08c21
2020-06-24 08:29:11 +02:00
Translation updater bot 5db07fd935 Localisation updates from https://translatewiki.net.
Change-Id: I778229377e279cd1325e32b5702e63bc81f29897
2020-06-23 08:51:19 +02:00
Translation updater bot 1afbf883c6 Localisation updates from https://translatewiki.net.
Change-Id: Iaf31642383d8627c8184b076cc86738362e187c9
2020-06-22 08:43:21 +02:00
Translation updater bot af19022557 Localisation updates from https://translatewiki.net.
Change-Id: I9254bb2da01bc1fd51b85447944928cc67ddaa60
2020-06-19 08:39:46 +02:00
Ammar Abdulhamid d029f18570 Echo: Add gender support for Mute user label
Bug: T251687
Depends-On: Ie41331fe37ba08dba343f2b229d2374c0443a074
Change-Id: I563f3f3df84cc12a4256feb158f2e1ccf7c69aad
2020-06-18 21:46:03 +01:00
jenkins-bot b5f76bf65d Merge "Add ten millionth edit thank you notification, per demand on Facebook" 2020-06-18 10:39:34 +00:00
Translation updater bot 7eb55df5ed Localisation updates from https://translatewiki.net.
Change-Id: I8922e0b8678126e4443ab7e05321ed76c02ca74c
2020-06-18 08:37:11 +02:00
James D. Forrester a1fb5d5d75 Add ten millionth edit thank you notification, per demand on Facebook
Change-Id: I26a0dd0954f7f3f61014cde371fa0c46c4db78cb
2020-06-17 19:39:39 +01:00
Translation updater bot 06b740c0f0 Localisation updates from https://translatewiki.net.
Change-Id: I601880ca59d1ed4fcd48c0634963d42c0db127ac
2020-06-17 08:47:56 +02:00
Translation updater bot 51baf6cc43 Localisation updates from https://translatewiki.net.
Change-Id: Id2177aa1dd1af547045e25e3754909031fc3d5cd
2020-06-15 08:39:22 +02:00
Translation updater bot 6bd34b6765 Localisation updates from https://translatewiki.net.
Change-Id: If23897f5a90e29778e01f7a03f6300b4f0ba13de
2020-06-12 08:37:43 +02:00
Translation updater bot 3d9073cf6e Localisation updates from https://translatewiki.net.
Change-Id: Ib5b58fd9c7a9507f9f1f03aab2a9c67cc51d5f17
2020-06-10 08:28:37 +02:00
Translation updater bot a145bd0cbe Localisation updates from https://translatewiki.net.
Change-Id: Iacfd69b430bd6941c59611ff085b4cfb9e87273c
2020-06-08 08:50:04 +02:00
Translation updater bot 4fe2dab5dd Localisation updates from https://translatewiki.net.
Change-Id: Ia4165ec17ca139170cccb50b2069b217f671d1ce
2020-06-05 08:52:59 +02:00
Translation updater bot 42bd8cf10b Localisation updates from https://translatewiki.net.
Change-Id: I252f3b97b45b3a60d3c7b3d454dd1bcedf3346da
2020-06-04 08:23:42 +02:00
Translation updater bot 2049b0a225 Localisation updates from https://translatewiki.net.
Change-Id: I712d7d95cee586f240110ca2584a098733973ed9
2020-06-03 08:30:00 +02:00
jenkins-bot a9391e1035 Merge "Add push notifier" 2020-06-02 18:21:46 +00:00
jenkins-bot de09ddd4d9 Merge "Add push subscription management" 2020-06-02 18:21:42 +00:00
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
Michael Holloway a3674974f1 Add push subscription management
Adds DB tables for storing push subscriptions, some DB interaction code
for retrieving them within MediaWiki, and a set of API modules for
managing them from the outside world.

When testing this patch, be sure to run maintenance/update.php to create
the new tables, and set $wgEchoEnablePush = true in LocalSettings.php
to enable the API new API module.

N.B. The current DB schema is centered on app push subscriptions. Web
push subscriptions require slightly different handling, since they are
provided by browsers as a JSON blob rather than a token string. How to
handle web push subscriptions is a question we can defer until the time
comes to add web push support.

Subscription data is stored in the echo_push_subscription table, with
provider names normalized into the echo_push_provider table. We expect to
be looking up subscriptions by central user ID, so that column is indexed.
The subscription data also includes a column to store SHA256 digests of
the subscriber tokens. This is for use as a unique key constraint, since
we expect every push token to be univerally unique, and the token values
themselves may be too large to reasonably index in MySQL.

Bug: T252899
Change-Id: I3928761b3fba12e54ff4850e9a05c68ec7772f62
2020-06-02 13:40:00 -04:00
Translation updater bot 7430467058 Localisation updates from https://translatewiki.net.
Change-Id: I548129adbc4fa3dd8ce21bb31ae7b5778c4f3ab6
2020-06-02 08:26:35 +02:00
Translation updater bot dc948eaa0f Localisation updates from https://translatewiki.net.
Change-Id: Ib79f7d3cbb3d18984e6826e47ccf3783d7ea7556
2020-06-01 09:57:06 +02:00
Translation updater bot c56f992a72 Localisation updates from https://translatewiki.net.
Change-Id: I277f4e3f21f7257de5a6a011bb304c7b769ec098
2020-05-29 08:32:18 +02:00
Translation updater bot 9e48c785b7 Localisation updates from https://translatewiki.net.
Change-Id: I00bb33e67e6b791909b6388ce41c45cc0b88c076
2020-05-28 08:39:13 +02:00
jenkins-bot 0b4f4d9659 Merge "Add dynamic secondary action to mute/unmute page-linked notifications" 2020-05-27 14:01:15 +00:00
Roan Kattouw 28f432b150
Add dynamic secondary action to mute/unmute page-linked notifications
Also adds an API module for muting and unmuting pages (and users).

Bug: T46787
Bug: T115264
Change-Id: Icf4e4bfa9fd7fa27b4c40892e3d5ce000eb22d5a
2020-05-27 15:20:08 +02:00
Translation updater bot 31b4c9bdfa Localisation updates from https://translatewiki.net.
Change-Id: Ib22b1736cd053a5b004abc72c1958e341909fec3
2020-05-27 08:48:34 +02:00
Translation updater bot fb34dd6b31 Localisation updates from https://translatewiki.net.
Change-Id: I421383eceef6834453238f109dc2476a18c468ba
2020-05-26 08:35:48 +02:00
Kosta Harlan 5e9eac03d0 Change pref header to specify it's about page link notifications
If/when we add other notification types, we could switch this string back to
"Muted pages" and nest other notification types underneath, or we could use a
different UI pattern for exposing those preferences.

Bug: T46787
Change-Id: I66cb2795a17994197b8610d04691dfca55ebc588
2020-05-25 19:15:39 +02:00
Translation updater bot ab437dbdec Localisation updates from https://translatewiki.net.
Change-Id: Id84d5bf2b2aafe58340048a308b3663acb6fa651
2020-05-25 08:39:35 +02:00
Translation updater bot 190d53ba3f Localisation updates from https://translatewiki.net.
Change-Id: I87e8061c879893dd1e7e93c3aed3dd4176cf6993
2020-05-22 08:34:59 +02:00
Translation updater bot 8e4dcdcf8f Localisation updates from https://translatewiki.net.
Change-Id: Icec468b13b588561ae87737bb6acad0bf4530bc8
2020-05-21 08:19:19 +02:00
Translation updater bot 60939778b8 Localisation updates from https://translatewiki.net.
Change-Id: If1a2dc2877c38e0fac149be2a83d9b9585f9692d
2020-05-20 08:34:56 +02:00
jenkins-bot f4cbf7bf5b Merge "Add aria-label to SpecialHelpMenuWidget" 2020-05-19 12:38:38 +00:00
Translation updater bot 48932aed89 Localisation updates from https://translatewiki.net.
Change-Id: Icc6d3805e156e62b26de850c84930e3ceed302d6
2020-05-19 08:24:21 +02:00
Volker E a569321595 Add aria-label to SpecialHelpMenuWidget
Bug: T244543
Change-Id: I04c2c47c5d20cf69f9f0602a2e535c05b01f5f3c
2020-05-18 12:35:43 -07:00
Translation updater bot 7420a54684 Localisation updates from https://translatewiki.net.
Change-Id: I3a49f590312745de109ffc790d35190f5d393681
2020-05-18 08:29:56 +02:00
Translation updater bot f54bfb63d3 Localisation updates from https://translatewiki.net.
Change-Id: I3765e509670f94e83d3cbca4fb617761201d2e16
2020-05-15 08:53:12 +02:00
Translation updater bot c044585ec8 Localisation updates from https://translatewiki.net.
Change-Id: I7fcd0b37e78aeeaa2e0fe092f70a521fb4591b6b
2020-05-14 08:32:13 +02:00
Translation updater bot 1b229d84f8 Localisation updates from https://translatewiki.net.
Change-Id: I3f3273f4afa02d9204e441afa28daf0385abdd8f
2020-05-13 08:42:29 +02:00
jenkins-bot 304f82c314 Merge "Add page linked event title muted list" 2020-05-12 21:08:47 +00:00