Commit graph

1806 commits

Author SHA1 Message Date
Translation updater bot 7afe18f996 Localisation updates from https://translatewiki.net.
Change-Id: Ic394b009fe89406ed3d18bf7f705f9d7635f846d
2020-08-14 08:37:46 +02:00
Michael Holloway 15d48278be Create and enforce a config setting for max subscriptions per user
Creates a EchoPushMaxSubscriptionsPerUser config setting (default: 0)
that controls the maximum number of subscriptions a user may associate
with the user's central user ID.

The setting is enforced in EchoPush\SubscriptionManager::create().

To allow creating push subscriptions for development, set
$wgEchoPushMaxSubscriptionsPerUser to a positive integer value in
LocalSettings.php:

 $wgEchoPushMaxSubscriptionsPerUser = 10;

Bug: T259150
Change-Id: Ib97b6b6cbb8161dd75dad92c54b4fe4fff80c421
2020-08-12 17:58:11 -04:00
Translation updater bot 45700120f5 Localisation updates from https://translatewiki.net.
Change-Id: Ice4480441c501b0647881c495f0245265730c104
2020-08-12 08:19:13 +02:00
Translation updater bot 2f4e636ff1 Localisation updates from https://translatewiki.net.
Change-Id: I6a9efda643ebb7d870a3d5e0d19bfdafd87c84e0
2020-08-11 08:20:50 +02:00
Translation updater bot b2e643a47f Localisation updates from https://translatewiki.net.
Change-Id: I3d31aea0511741e8fd4f1f61941a07f3a279c1b2
2020-08-10 09:00:52 +02:00
Translation updater bot 2919e371c7 Localisation updates from https://translatewiki.net.
Change-Id: Ic83bb9382e52c62e29e16e9584dab97dd0951143
2020-08-07 08:22:55 +02:00
Translation updater bot 173311d796 Localisation updates from https://translatewiki.net.
Change-Id: I54e81da8933aca75738e82960f1a7ff71b19c018
2020-08-06 08:27:41 +02:00
Translation updater bot 9527958227 Localisation updates from https://translatewiki.net.
Change-Id: Iaef8f9b66a0bba52dd233b17aab38f847361b904
2020-08-05 08:22:27 +02:00
Translation updater bot 060ab77258 Localisation updates from https://translatewiki.net.
Change-Id: If9aeb60ba8c0525b3d03e0d074b84f3879cbfe10
2020-08-04 08:32:17 +02:00
Translation updater bot fd6ad873f9 Localisation updates from https://translatewiki.net.
Change-Id: I20be6d8ce6f55d6f3b7d5f4661681b59fd8c774e
2020-08-03 08:32:00 +02:00
Translation updater bot de284c56fc Localisation updates from https://translatewiki.net.
Change-Id: I63373bd4f25ab3498aebfbdf6b24e90b442448cb
2020-07-31 08:45:49 +02:00
Translation updater bot db8b71f67f Localisation updates from https://translatewiki.net.
Change-Id: I4f3c3daeccd86e0416acf45689ce33c5b61835fa
2020-07-30 08:35:21 +02:00
Translation updater bot fa29360bfc Localisation updates from https://translatewiki.net.
Change-Id: I1ed75d8686121fa2bfa324504deca68bf649f448
2020-07-29 08:35:23 +02:00
Translation updater bot 7c9c39d6b8 Localisation updates from https://translatewiki.net.
Change-Id: I4f2145777a1bff4720592b0931408f10b50c9838
2020-07-28 08:24:32 +02:00
Translation updater bot 1d0001c602 Localisation updates from https://translatewiki.net.
Change-Id: I11fcd308eb88f1b80a7d4b2fea4b19d749db6678
2020-07-27 08:37:15 +02:00
Translation updater bot 471aa89b74 Localisation updates from https://translatewiki.net.
Change-Id: I2f310c588f25ef24a52033f3230539bcbcc4d7c5
2020-07-23 08:27:46 +02:00
Translation updater bot 72519a3da5 Localisation updates from https://translatewiki.net.
Change-Id: I398842408dd32ee483d3f5d2f8468b777401810e
2020-07-22 08:26:22 +02:00
Translation updater bot a312b09731 Localisation updates from https://translatewiki.net.
Change-Id: I98a249f45de65ed737042d315c17805254c36e37
2020-07-21 09:11:19 +02:00
Translation updater bot af49551393 Localisation updates from https://translatewiki.net.
Change-Id: I8a592dde3857d724b007d46f1af96a67dc5140fe
2020-07-20 09:00:59 +02:00
Base ec8d947669 Fixing typo in apihelp-echopushsubscriptions+delete-example:
Unegister → Unregister

Please mark it as not requiring translations update.

Change-Id: Ib096a89818f3e0f7b76a8a884e0b35ecceb3d353
2020-07-17 19:59:00 +00:00
Translation updater bot ec03128c78 Localisation updates from https://translatewiki.net.
Change-Id: I32fb84d5070a74f738ac030339e3cf15b6babbbb
2020-07-17 08:28:35 +02:00
Translation updater bot 6501650155 Localisation updates from https://translatewiki.net.
Change-Id: I63228d13c53515d3359b0ed5fcba23c2a6d4cb50
2020-07-16 08:21:04 +02:00
Translation updater bot cab0559595 Localisation updates from https://translatewiki.net.
Change-Id: Id674903a152dbf812645e5450199026b27aa194e
2020-07-15 09:04:00 +02:00
Nikerabbit 84f473fe27 Revert "Localisation updates from https://translatewiki.net."
This reverts commit 42351da940.

Reason for revert: Broken export

Change-Id: I5fa3837b1134d5ac6bdd10df817267f3f3899b3b
2020-07-13 11:43:50 +00:00
Translation updater bot 42351da940 Localisation updates from https://translatewiki.net.
Change-Id: I9b31d3bec7971006e7eda215b8830548c272e1be
2020-07-13 08:42:14 +02:00
Translation updater bot 281b03814d Localisation updates from https://translatewiki.net.
Change-Id: I066eac810dd95e42113adbb5c26439f0b4d36367
2020-07-10 08:25:39 +02:00
Translation updater bot f2ae65866f Localisation updates from https://translatewiki.net.
Change-Id: Ia1ce1cae1595b86287e0bc0455303272c3059926
2020-07-09 08:24:52 +02:00
Translation updater bot 4cc13c88d8 Localisation updates from https://translatewiki.net.
Change-Id: Iad3938ac3c6dc61b4acb320fbc93ada15b0e684c
2020-07-08 09:10:39 +02:00
Translation updater bot 26846259cc Localisation updates from https://translatewiki.net.
Change-Id: I82f14bd1b7cced0f60f2525fae77ddc1e22de7a3
2020-07-07 09:31:04 +02:00
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
Translation updater bot f9fa360cf9 Localisation updates from https://translatewiki.net.
Change-Id: I7a05b2a29d415f0f2fa63083653560aab571b3ba
2020-05-12 08:21:00 +02:00
Translation updater bot c8530e2f25 Localisation updates from https://translatewiki.net.
Change-Id: Ie03991b5d01c22731da5966bc16c668889f8f056
2020-05-11 08:37:13 +02:00
Translation updater bot 2f0c79bc5a Localisation updates from https://translatewiki.net.
Change-Id: I0867f27bdec32abc7ccf7a869604f06d00e2a23d
2020-05-08 09:28:17 +02:00
Translation updater bot 8d0f6cf980 Localisation updates from https://translatewiki.net.
Change-Id: I2977638b9c1fe2d79ce8f229c38f6e1653c40c40
2020-05-07 08:34:17 +02:00
Kosta Harlan 1560528dc7 Add page linked event title muted list
* Add a section on the preference form to allow users to mute articles
  from generating "page linked" notices
* The preference will save the article title as an article ID

Depends-On: Ia0ddf78646ec4c8ae0b84b6d5b46ef5e51c8e8c1
Bug: T46787
Change-Id: I67f751eae5fdc5bccff7fe3047227d432c1cb8d5
2020-05-06 12:38:55 +02:00
Translation updater bot f355f05aff Localisation updates from https://translatewiki.net.
Change-Id: I169a6cf3b6cb9efa554ac7c2bb98bc316398bc3e
2020-05-05 08:30:19 +02:00
Translation updater bot 4b6c8fe025 Localisation updates from https://translatewiki.net.
Change-Id: I95a52d5d12c8bbf54c921c7f6eca2f15db48f4db
2020-05-01 10:00:41 +02:00
Translation updater bot 304e0273a4 Localisation updates from https://translatewiki.net.
Change-Id: I7d9d9714cbeb5be3f3b5c14898031c68e87b0fc8
2020-04-30 08:37:46 +02:00
Translation updater bot 13a0622468 Localisation updates from https://translatewiki.net.
Change-Id: I975609883f2bcd9877ea25d63ffbf902b5d092cd
2020-04-29 08:35:47 +02:00
Translation updater bot 617da122e0 Localisation updates from https://translatewiki.net.
Change-Id: I70f89679970ec06b2e7aafaf4febe1a416fae4ed
2020-04-28 08:31:58 +02:00
Translation updater bot 4a1f9b5ff0 Localisation updates from https://translatewiki.net.
Change-Id: I743e3c88d9b70fb53a058051a771a89f5304f6a3
2020-04-27 09:02:45 +02:00
Translation updater bot 39d7aa6b1c Localisation updates from https://translatewiki.net.
Change-Id: I9b560ff837b5ac7fa6453b246023972b1949c553
2020-04-24 08:22:23 +02:00
Translation updater bot c2c9846c33 Localisation updates from https://translatewiki.net.
Change-Id: I810646b307d3d80f3402ceb2a59df884b0b1156d
2020-04-23 08:42:57 +02:00
Translation updater bot 7ca12c2dcb Localisation updates from https://translatewiki.net.
Change-Id: If1792b34ddffb1982c31ac0841322e499ac1bcaa
2020-04-22 08:56:04 +02:00
Translation updater bot e8065dc6fe Localisation updates from https://translatewiki.net.
Change-Id: If6ccd5cc8669b06196c21839c67f7427ca44011c
2020-04-20 08:41:20 +02:00
Translation updater bot dbd753a0a9 Localisation updates from https://translatewiki.net.
Change-Id: Iabbfa195725125592c53b0c9c4ea6766588a6168
2020-04-17 09:06:38 +02:00
Translation updater bot 0ff96d0b1e Localisation updates from https://translatewiki.net.
Change-Id: Ie6ba7a275befe2883a5141611617b5cb9f36d4d5
2020-04-15 08:23:44 +02:00
Translation updater bot f7497d1da0 Localisation updates from https://translatewiki.net.
Change-Id: Ibae2054e0eee23b012789eaf7e2607587a52e892
2020-04-14 08:23:36 +02:00
Translation updater bot c0cbcdd24f Localisation updates from https://translatewiki.net.
Change-Id: If02584e66e06a207a0d8719383e89747641ef2a2
2020-04-13 09:00:20 +02:00
Translation updater bot 0dbfedbcc9 Localisation updates from https://translatewiki.net.
Change-Id: I25be16c5cb699b04c53bdbb3c688b38fc1fff3fd
2020-04-10 09:51:21 +02:00
Translation updater bot bb47d976ed Localisation updates from https://translatewiki.net.
Change-Id: I10b912d8b143409270cb57c6f6b55c6a0d1c97c8
2020-04-07 08:39:52 +02:00