Commit graph

201 commits

Author SHA1 Message Date
jenkins-bot 763e7ab1bb Merge "Create push subscription manager group/right to clean up dead subs" 2020-08-24 10:23:31 +00:00
Translation updater bot b938b53d97 Localisation updates from https://translatewiki.net.
Change-Id: I573a44734e9a288d0339efed53be8c4d91fc033a
2020-08-24 11:57:55 +02:00
Translation updater bot 007ada3a22 Localisation updates from https://translatewiki.net.
Change-Id: I4a7b14c3bbd33487f5e596502bf29c50286486d5
2020-08-21 08:40:48 +02:00
Michael Holloway 3513c642dd Create push subscription manager group/right to clean up dead subs
Creates a new push-subscription-manager group and an associated
right, manage-all-push-subscriptions. The purpose of this is to
allow privileged accounts to purge expired subscriptions from the
database on behalf of other users. A user with this right will be
permitted to delete any subscription from the DB based on the token
alone. For all other users, deletion requests will be limited to
those associated with the requesting user's central ID.

This right will be granted to a bot account on Metawiki associated
with the Wikimedia push notifications service, and the push
notifications service account will make push subscription delete
requests to the API for subscriptions for which vendor APIs return bad
subscription responses.

Additionally, the providertoken parameter to ApiPushSubscriptionDelete
is updated to allow multiple providertoken values.

Bug: T259148
Change-Id: Ia6c17588ee94e6be74e5e3a75eb33e38f172fc93
2020-08-20 17:08:48 -04:00
Translation updater bot d0493529af Localisation updates from https://translatewiki.net.
Change-Id: I2f5aebb831bfd0a32ce9b23c4ed5c2db4eb8f60a
2020-08-20 08:26:50 +02:00
Translation updater bot ea297783af Localisation updates from https://translatewiki.net.
Change-Id: I5b74f46671a63f7d05cf6a27ee0518b24030bbd3
2020-08-19 08:38:29 +02:00
Mateus Santos c188dac23f push: send apns topic when present
1) send apns topic when present in subscription metadata
2) check if subscription metadata is a valid JSON string
3) make epp_id column at echo_push_provider table auto_increment,
otherwise it will fail when trying to add a second row in the table

Bug: T259394
Change-Id: I785435e9f2d4ba9c14977d431d271f0fa2d0c795
2020-08-18 13:21:20 +00:00
Translation updater bot b7467e2f2b Localisation updates from https://translatewiki.net.
Change-Id: If771383b0b4663ecedb753ec9f7761edc2b35e23
2020-08-17 08:42:27 +02:00
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 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 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 4cc13c88d8 Localisation updates from https://translatewiki.net.
Change-Id: Iad3938ac3c6dc61b4acb320fbc93ada15b0e684c
2020-07-08 09:10:39 +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 1afbf883c6 Localisation updates from https://translatewiki.net.
Change-Id: Iaf31642383d8627c8184b076cc86738362e187c9
2020-06-22 08:43:21 +02:00
Translation updater bot 7eb55df5ed Localisation updates from https://translatewiki.net.
Change-Id: I8922e0b8678126e4443ab7e05321ed76c02ca74c
2020-06-18 08:37:11 +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 de09ddd4d9 Merge "Add push subscription management" 2020-06-02 18:21:42 +00: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 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
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 1b229d84f8 Localisation updates from https://translatewiki.net.
Change-Id: I3f3273f4afa02d9204e441afa28daf0385abdd8f
2020-05-13 08:42:29 +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 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 bb47d976ed Localisation updates from https://translatewiki.net.
Change-Id: I10b912d8b143409270cb57c6f6b55c6a0d1c97c8
2020-04-07 08:39:52 +02:00
Translation updater bot bf230f58f1 Localisation updates from https://translatewiki.net.
Change-Id: I2a6d78051746544fb365329eae132b83eb468444
2020-02-24 09:02:23 +01:00
Translation updater bot eeeb5843a2 Localisation updates from https://translatewiki.net.
Change-Id: I151b03b248187f581002406f82598c74ca733c0b
2020-02-14 08:25:39 +01:00
Translation updater bot c45ac7617c Localisation updates from https://translatewiki.net.
Change-Id: Ib9726e6b3e9cc90f88c62761bebc6d04d3c246e2
2020-02-11 08:19:14 +01:00
Translation updater bot 705313d9f1 Localisation updates from https://translatewiki.net.
Change-Id: I0209575ddba9057197d17fc379793a3a72f7159f
2020-01-22 08:29:53 +01:00
Translation updater bot cefda97b4d Localisation updates from https://translatewiki.net.
Change-Id: Ia7b11080460d6d370e78ea28d7aac52e104e01a8
2020-01-13 09:10:21 +01:00
Translation updater bot bf4d612eca Localisation updates from https://translatewiki.net.
Change-Id: I0f2c776fed27d822076cf77da08ec7109d7b0bb3
2020-01-10 08:34:19 +01:00
Translation updater bot 971d7b3891 Localisation updates from https://translatewiki.net.
Change-Id: I3c535d6002fc86fe3589e53a79484ec0a40dbc15
2020-01-09 08:28:54 +01:00
jenkins-bot 8f5fc3d6ee Merge "Set apihelp message for wikis parameter of echomarkread" 2020-01-08 09:09:51 +00:00
Translation updater bot 25d0e85c8a Localisation updates from https://translatewiki.net.
Change-Id: I6dea07592108a0e6cc61ad1fd48323bd1f92a884
2020-01-02 08:58:16 +01:00
Translation updater bot 0369c3999d Localisation updates from https://translatewiki.net.
Change-Id: I753f93213a3770686e1ec167f8bf72026919a226
2019-12-29 20:40:29 +01:00
Translation updater bot b1c36dcf05 Localisation updates from https://translatewiki.net.
Change-Id: If601cb67dd171458cc9a923fdeedd56934abbb3e
2019-12-18 09:25:16 +01:00
Translation updater bot 448f6f1ba0 Localisation updates from https://translatewiki.net.
Change-Id: I0c21bbf81df1a8d2ddfb52a145e5f85f0d018da0
2019-12-10 09:29:35 +01:00
Translation updater bot 0704644ee0 Localisation updates from https://translatewiki.net.
Change-Id: I4fbe0c28e664851490b158b477a32f72bf6ab162
2019-11-29 09:28:16 +01:00
Umherirrender 5c1de126cb Set apihelp message for wikis parameter of echomarkread
It is set by a trait, but each module using the trait defines its own
message for it, so adding a new one for this module

Bug: T238520
Change-Id: Id247a40296960f3c95d3fc95bd046113e07dc0ff
2019-11-18 20:12:24 +01:00
Translation updater bot 44f83d5b79 Localisation updates from https://translatewiki.net.
Change-Id: I7c609c50d7d2ef92739b96f78858a787cb1889fe
2019-11-04 09:30:15 +01:00
Translation updater bot adc1b066d8 Localisation updates from https://translatewiki.net.
Change-Id: I2e1801b12da63cc8fe7f269f917aca010f930c29
2019-10-29 09:38:32 +01:00
Translation updater bot 97a04c65ab Localisation updates from https://translatewiki.net.
Change-Id: I2af040469fa0ebe1c79857e598ddd3205934846c
2019-10-28 16:33:56 +01:00
Translation updater bot 96421a16a2 Localisation updates from https://translatewiki.net.
Change-Id: Id3a6c8126ae4106990fd3a1bd053d9ebd1f49602
2019-10-24 10:43:58 +02:00
Translation updater bot 634515077c Localisation updates from https://translatewiki.net.
Change-Id: Ifbc3cb603b01f9b8a7edf45bd99aecfedeb3e690
2019-09-10 09:37:14 +02:00
Translation updater bot 0740de0605 Localisation updates from https://translatewiki.net.
Change-Id: Id01a5f6bb03641191590ff399c08785959477fdb
2019-09-09 09:26:07 +02:00
Translation updater bot 3e063ff6c0 Localisation updates from https://translatewiki.net.
Change-Id: I11dd8de2dd01de62b6c8adcce7c70936dc0f9c3c
2019-08-21 10:03:22 +02:00
Translation updater bot 83c55388fd Localisation updates from https://translatewiki.net.
Change-Id: Id815f0ee931d9f15b4b3c5aa2971f8d74335225a
2019-08-13 09:15:44 +02:00
Translation updater bot ba607772dc Localisation updates from https://translatewiki.net.
Change-Id: I956a55722aa78ab32e62282bf7288fbf6a7c0f7c
2019-07-12 08:43:20 +02:00
Translation updater bot 3c067d044e Localisation updates from https://translatewiki.net.
Change-Id: Iab8c0fde92f482f05ed09301f2bf3a0f008e7840
2019-06-10 22:54:32 +02:00
Translation updater bot 70a56e2814 Localisation updates from https://translatewiki.net.
Change-Id: I991c1141ec1c7cccfbf3c46b42687425ba98eaa4
2019-06-06 22:48:23 +02:00
Translation updater bot 6410100d69 Localisation updates from https://translatewiki.net.
Change-Id: I413e3724bb3bd44071e72797956d7824721c7091
2019-06-02 22:29:38 +02:00
Translation updater bot 47bc762290 Localisation updates from https://translatewiki.net.
Change-Id: Ic1b8aafbe257cd4926fc41176ff19c8e8b35f17b
2019-04-12 08:31:58 +02:00
Translation updater bot 2fc4e801ea Localisation updates from https://translatewiki.net.
Change-Id: I3191fb6a38304eb9b3cb49860a79a5df4537fbce
2019-03-23 10:22:43 +01:00
Translation updater bot 2d2b68e323 Localisation updates from https://translatewiki.net.
Change-Id: I3614c24ca1ba6c05aa846d209939de8a86c1f292
2019-03-10 22:27:34 +01:00
Translation updater bot 3eb4302592 Localisation updates from https://translatewiki.net.
Change-Id: Ifa50762226ee0f9da0a4a3f4fbd59b7a0e8b79f7
2019-03-07 22:40:44 +01:00
Translation updater bot c9e9024cd1 Localisation updates from https://translatewiki.net.
Change-Id: I55578d3c3145be734db8010a4e49c02dfa2081e8
2019-01-20 22:35:50 +01:00
Translation updater bot cf1406d42e Localisation updates from https://translatewiki.net.
Change-Id: I3b153d4c8d0eb56795c05868cf4980dcf368eab1
2019-01-06 22:30:15 +01:00
Translation updater bot 16f0d41e2f Localisation updates from https://translatewiki.net.
Change-Id: Iafbb9e5399c81b64a3cf549bd84058f29f9bbbf1
2019-01-03 22:52:17 +01:00
Translation updater bot a193185a1f Localisation updates from https://translatewiki.net.
Change-Id: I0fc664629690d42b716b5494ef7b9dfe46190894
2018-10-17 23:44:07 +02:00
Translation updater bot dd02b4b5e6 Localisation updates from https://translatewiki.net.
Change-Id: I30891370deeb9cb1070e88b75fb8a94b43f1d4e8
2018-10-16 22:17:20 +02:00
Translation updater bot 615ff2eb57 Localisation updates from https://translatewiki.net.
Change-Id: I78d8fdcae73a6ae8246f9189c317763f0335764b
2018-09-08 10:39:14 +02:00
Translation updater bot 8bcc8107b0 Localisation updates from https://translatewiki.net.
Change-Id: Ice770c990b7fb6e907b607637e8f4074039c5ba6
2018-08-23 23:25:58 +02:00
Translation updater bot 8d93d64f5e Localisation updates from https://translatewiki.net.
Change-Id: I2b43351561c4789e2a73272957c375a497f26cc2
2018-08-18 22:16:34 +02:00
Translation updater bot 4cbeac9024 Localisation updates from https://translatewiki.net.
Change-Id: I74caafcb55f67d89b7522f91dd0375965af532a5
2018-08-06 22:21:42 +02:00
Translation updater bot b3e09bf3e7 Localisation updates from https://translatewiki.net.
Change-Id: I6aacc55f44f936a579087dc44c62e9eef904288d
2018-07-17 22:13:49 +02:00
Translation updater bot d956799dbf Localisation updates from https://translatewiki.net.
Change-Id: I2806e0d9d21b5393e427e2e83e8fbb5c06980d03
2018-06-27 22:18:51 +02:00
Translation updater bot 5c60c9419b Localisation updates from https://translatewiki.net.
Change-Id: Idc7d16e9573059a654787bf81bd1f2783786fab3
2018-06-15 22:35:41 +02:00
Translation updater bot 08e6ea82d1 Localisation updates from https://translatewiki.net.
Change-Id: Iefb4bb4a304f435b9889eeca06cda47082a6425b
2018-05-28 22:42:07 +02:00
Translation updater bot b3dd092832 Localisation updates from https://translatewiki.net.
Change-Id: I4ff6b767edf3f9c806dcc1e49a0f60a4e07497a9
2018-05-17 22:19:37 +02:00
Translation updater bot 664a0d0c07 Localisation updates from https://translatewiki.net.
Change-Id: I61fa4eb9f0d7e887f63e4256fe0bb3f4f0d6f6f8
2018-04-24 22:22:33 +02:00
Translation updater bot ce4e621db8 Localisation updates from https://translatewiki.net.
Change-Id: Ifdebee52ff0dfecc028256d9c665a3d280f86eb1
2018-04-21 22:15:32 +02:00
Translation updater bot 6d00265c59 Localisation updates from https://translatewiki.net.
Change-Id: I5f006c4a934a6f80e51c7007816795b3619c72b6
2018-04-09 23:16:56 +02:00
Translation updater bot 0269e931b2 Localisation updates from https://translatewiki.net.
Change-Id: I973cd6768512d57f0d78ce2d40dd9a863af21d90
2018-03-31 09:22:20 +02:00
Translation updater bot 36bc342c10 Localisation updates from https://translatewiki.net.
Change-Id: I6f4ba274368ab5f93c1e204c0410241c7a442812
2018-03-27 22:09:31 +02:00
Translation updater bot 2c40a11a15 Localisation updates from https://translatewiki.net.
Change-Id: I05f2c38d07bfb160caafcfd1931529879b3f4511
2018-03-26 22:19:04 +02:00
Translation updater bot 4ce3719736 Localisation updates from https://translatewiki.net.
Change-Id: Ibff6f04489dd1a816ff7d14c5287629498b65a38
2018-03-21 22:32:00 +01:00
Translation updater bot b1855c158a Localisation updates from https://translatewiki.net.
Change-Id: I1801efa0ac675e1f7da4d945dc0a826f48109e65
2018-03-10 22:14:11 +01:00
Translation updater bot f975316639 Localisation updates from https://translatewiki.net.
Change-Id: Ia03168cd87d02449d1f3295812a3f90985df5c21
2018-02-23 23:01:29 +01:00
Translation updater bot 72ffe58f26 Localisation updates from https://translatewiki.net.
Change-Id: Ib63aaf25ab3e3d56e6ad61f70982d74208938a77
2018-02-07 22:17:25 +01:00
Translation updater bot 14380fd4a5 Localisation updates from https://translatewiki.net.
Change-Id: I9b2e7ec16f7f71f80ba4ccbcd358f3956351fd06
2018-01-31 22:20:03 +01:00
Translation updater bot 22c04d7ff6 Localisation updates from https://translatewiki.net.
Change-Id: I9fe8c1c2cedce6f1efafdce4aa98fc374bbabbfe
2018-01-26 22:36:34 +01:00
Translation updater bot 0b26eb06bb Localisation updates from https://translatewiki.net.
Change-Id: Iaa4dd1df19666e756f564acdf2fbec990373e3bf
2018-01-20 14:42:40 +01:00
Translation updater bot ce8d0423bc Localisation updates from https://translatewiki.net.
Change-Id: I0849c1c78c286135c120b8f6ad67ccfd07e7cb8e
2018-01-18 22:49:21 +01:00
Translation updater bot 2566eb677c Localisation updates from https://translatewiki.net.
Change-Id: If8a9eaf88dc3c7e9a523ad20d5aa291c6937075e
2018-01-08 22:35:39 +01:00
Translation updater bot f9fa579a4b Localisation updates from https://translatewiki.net.
Change-Id: I96f567c25bc7cf15bbe4a7da5d9c4bb78e1415ea
2017-12-07 23:07:24 +01:00
Translation updater bot 96203989b0 Localisation updates from https://translatewiki.net.
Change-Id: I0de33d929ed6638c1c198554ec957ce53d1f957f
2017-12-05 09:40:28 +01:00
Translation updater bot 40ed9e7a28 Localisation updates from https://translatewiki.net.
Change-Id: I54f9644d7aa36492400768d00ba3c3382d6e8bf7
2017-11-22 22:25:30 +01:00
Translation updater bot c762e54496 Localisation updates from https://translatewiki.net.
Change-Id: I57237b5326136c7a4a2dfcb031cdda56b513ecd3
2017-11-10 22:35:03 +01:00