Commit graph

165 commits

Author SHA1 Message Date
Translation updater bot de49359608 Localisation updates from https://translatewiki.net.
Change-Id: Ic26389a4e2b674df4f8a1e9acbda06f3671233e3
2020-12-10 08:34:38 +01:00
Translation updater bot 21a34cbf2c Localisation updates from https://translatewiki.net.
Change-Id: I2fade4adbcaf6f83acbee981284bb05762995dfe
2020-12-04 08:33:04 +01:00
Translation updater bot c176283580 Localisation updates from https://translatewiki.net.
Change-Id: Ic2c8a6eb843ca630adb01a52bb07e0965501af85
2020-11-23 08:39:03 +01:00
Translation updater bot 8198d11fa4 Localisation updates from https://translatewiki.net.
Change-Id: Iafdd05cf7f973871b4c1b2cd9db198b0275f7aa2
2020-11-18 08:56:08 +01:00
Translation updater bot d74bc9ae54 Localisation updates from https://translatewiki.net.
Change-Id: I1d0ebd97e7376562d40799da56b941e584fc4bfb
2020-10-19 08:35:40 +02:00
Translation updater bot 96271c47fc Localisation updates from https://translatewiki.net.
Change-Id: I728061214e50d4d43bbb3c8a6a8e540a054966a6
2020-10-15 08:38:01 +02:00
Translation updater bot e1aa38d427 Localisation updates from https://translatewiki.net.
Change-Id: Ic905e948e095a29d7c52260ccd8b43daf8349a4d
2020-10-12 08:34:56 +02:00
Translation updater bot 686e330a1e Localisation updates from https://translatewiki.net.
Change-Id: Ibde976ea02baba38ede61e01faa196c957ca86d8
2020-10-07 08:35:41 +02:00
Translation updater bot be66cc9c9e Localisation updates from https://translatewiki.net.
Change-Id: I219f0c8574b914576b769afc077cba516859d15c
2020-09-16 09:07:03 +02:00
Translation updater bot 5340ca6552 Localisation updates from https://translatewiki.net.
Change-Id: I10414b68428ec1e31b5b86d49dfe11ba64672bd1
2020-08-28 10:23:39 +02:00
Translation updater bot ef800cc9f4 Localisation updates from https://translatewiki.net.
Change-Id: Id63488b5e45df19bbc9cfbe424ddd9720fa5c1fb
2020-08-27 09:51:41 +02:00
Translation updater bot c1bbdb63d8 Localisation updates from https://translatewiki.net.
Change-Id: I5210eefde11a71d6afbc9327c60c5700e4522da5
2020-08-26 09:50:51 +02:00
Translation updater bot 5bc1650c7d Localisation updates from https://translatewiki.net.
Change-Id: Ide0b2e94671749624e2b43c9a00870af209aaf32
2020-08-25 09:46:21 +02:00
Bernd Sitzmann e1c1e89ade Fix grammar in push notification delete api string
Follow-up from Ia6c17588ee94e6be74e5e3a75eb33e38f172fc93.

Change-Id: I7ae5a4fb9dad7dc89b0d0a7292c5f87aec225698
2020-08-24 11:33:20 -06:00
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