Commit graph

262 commits

Author SHA1 Message Date
Translation updater bot 78aaaeb230 Localisation updates from https://translatewiki.net.
Change-Id: I613067d508e635c03fcd39b5d77685dad462d424
2022-02-25 09:43:27 +01:00
Translation updater bot 72ad59ff88 Localisation updates from https://translatewiki.net.
Change-Id: I2ba886ad1226ccf2d6395102a825312c9be43fd9
2022-01-31 08:21:56 +01:00
Translation updater bot c74031de2c Localisation updates from https://translatewiki.net.
Change-Id: I87f1945a55f2330083b4a4fccda67ea52b6b6902
2021-12-27 09:30:01 +01:00
Translation updater bot 18d5ee3e24 Localisation updates from https://translatewiki.net.
Change-Id: I4b64eab9868a86bfa9fdb7c7ac57297231070093
2021-12-23 08:38:00 +01:00
Translation updater bot 951ffe76d8 Localisation updates from https://translatewiki.net.
Change-Id: Ic57cd91c690ac53d609d9602397d780a0ba88872
2021-12-13 08:21:26 +01:00
Translation updater bot 8cb4c2154a Localisation updates from https://translatewiki.net.
Change-Id: I703ad514da7625780cc1d3968617bafe5ccc5388
2021-10-21 08:21:39 +02:00
Translation updater bot 29510fe72f Localisation updates from https://translatewiki.net.
Change-Id: If8b33637a4ca8a729cb98f66518804c3264e80b6
2021-10-06 09:28:19 +02:00
Translation updater bot b4d0d9ac7b Localisation updates from https://translatewiki.net.
Change-Id: Id112d093a7c30490bbef242c208b433d86e6ba49
2021-10-04 08:55:46 +02:00
Translation updater bot e93de6894c Localisation updates from https://translatewiki.net.
Change-Id: I3120640da7326c29494e69a019d4f078920d82cb
2021-10-01 09:29:50 +02:00
Translation updater bot fdf9a0f6d5 Localisation updates from https://translatewiki.net.
Change-Id: I754cd07d380d8df0bb939158fc2fda5f1f7b0499
2021-09-29 09:01:44 +02:00
Translation updater bot 611ec6c5a5 Localisation updates from https://translatewiki.net.
Change-Id: I7c67c97f09d3644a0c347f627a641ed4fcdf6bc2
2021-09-27 08:34:47 +02:00
Translation updater bot a1dc84e6e5 Localisation updates from https://translatewiki.net.
Change-Id: Idacd828c5c020a4625407beef277404a38274f5e
2021-09-13 08:29:29 +02:00
Translation updater bot c2fb14e9c1 Localisation updates from https://translatewiki.net.
Change-Id: I35807eee6d57aba99529391b149880824588df52
2021-09-02 08:26:16 +02:00
Translation updater bot 5167ea0620 Localisation updates from https://translatewiki.net.
Change-Id: I70718506ac316b73e335e5017276fc1d8ee1f349
2021-09-01 08:16:13 +02:00
Translation updater bot a898df055e Localisation updates from https://translatewiki.net.
Change-Id: Ib80011e24c59b3417f3f6acf84e43c6c5232448d
2021-08-31 08:15:41 +02:00
Translation updater bot 30afb5746f Localisation updates from https://translatewiki.net.
Change-Id: I26b9a59e6a4cc4c6703291a378022cef03b7ae1e
2021-08-30 08:20:07 +02:00
Amir Aharoni 5156baf822 Remove double spaces from messages
Change-Id: I8f8b9e729296ed87315048e4113ab9773c1415cf
2021-08-26 17:51:10 +03:00
Translation updater bot 51ed264d31 Localisation updates from https://translatewiki.net.
Change-Id: Ic5d9ebc4d820c60b487668f4fb54c32121423bc2
2021-08-26 08:36:03 +02:00
Translation updater bot 7bc29d07bf Localisation updates from https://translatewiki.net.
Change-Id: I8fb3b6cb5b2ce2f912dad8f20e9fdbe865d1abf4
2021-08-24 10:21:07 +02:00
Translation updater bot aaf8d8a98c Localisation updates from https://translatewiki.net.
Change-Id: I205bb1bf3cc19bddf693f294a45f7dd9bd3917fe
2021-08-23 09:03:53 +02:00
Translation updater bot ef3347fc49 Localisation updates from https://translatewiki.net.
Change-Id: Id3ce4b877b2be5294e98f532214fa9f2ca3f6754
2021-08-20 08:24:05 +02:00
Translation updater bot ed4a80422d Localisation updates from https://translatewiki.net.
Change-Id: I7d00b788b6898f13c20cb882152d5e2ec73b7d58
2021-08-19 08:13:24 +02:00
jenkins-bot 5cfc33d546 Merge "Add notifiertypes parameter to ApiEchoNotifications" 2021-08-19 05:06:57 +00:00
Michael Holloway 5eb4c6cd1d Add notifiertypes parameter to ApiEchoNotifications
Previously, ApiEchoNotifications returned only events which were
enabled for the `web` notifier type. With this change, the notifier
type or types to consider can be specified by argument to the new
`notifiertypes` parameter.

This change is required so that the apps can request notification
content from the API for push notifications.

Bug: T287909
Change-Id: I2d1155e113f2defb0f02416a7a659c3ee162d3a6
2021-08-17 10:27:14 -04:00
Translation updater bot 4b73c510c8 Localisation updates from https://translatewiki.net.
Change-Id: I6a064f27942f2f3b7d05fb0a33d992a97e99de01
2021-08-16 08:16:15 +02:00
Translation updater bot cb83df3eb2 Localisation updates from https://translatewiki.net.
Change-Id: I6468fb8d2bd859eaac1104dfc041b3c8e0300746
2021-08-02 08:36:42 +02:00
Translation updater bot a0636f75a7 Localisation updates from https://translatewiki.net.
Change-Id: I1e1c731baee92a8b3e83599df70cc941db91e843
2021-07-26 08:12:07 +02:00
Translation updater bot 847ca35eb6 Localisation updates from https://translatewiki.net.
Change-Id: I35fb94ac99332d9c3a8860a511d0f1bb758dc3b2
2021-07-19 08:15:39 +02:00
Translation updater bot fb853419ec Localisation updates from https://translatewiki.net.
Change-Id: I54a1df4355a405a019f7c1c8fb941ebb4db17e23
2021-07-12 08:06:23 +02:00
Translation updater bot c456d8e80f Localisation updates from https://translatewiki.net.
Change-Id: I8b99ccb3e47aa4adcb3f22f387b787ba5f789d39
2021-07-06 08:38:24 +02:00
Translation updater bot e2fd0ddf62 Localisation updates from https://translatewiki.net.
Change-Id: I8d6aa0eb1b6a23484968b9223ed8a306da8f7967
2021-07-05 08:06:48 +02:00
Translation updater bot 590a7d502e Localisation updates from https://translatewiki.net.
Change-Id: I1c5027009d820331adc83d8574d094119a51b990
2021-07-02 08:31:08 +02:00
mbsantos 2f21c2649e push: document description of topic parameter
Bug: T285573
Change-Id: I875681ca3bdfe006d68b15f3cffc0089c9677ef1
2021-07-01 16:10:00 +02:00
Translation updater bot f6aa3d4498 Localisation updates from https://translatewiki.net.
Change-Id: Iad2233b9a8ac1909beed9a6b9ef88bd83ba1542f
2021-06-18 08:20:46 +02:00
Translation updater bot 25161f7d90 Localisation updates from https://translatewiki.net.
Change-Id: Ia3733a9fd1e06a6abc92ae649afe1558f973beff
2021-05-17 08:41:57 +02:00
Translation updater bot 1e5834644d Localisation updates from https://translatewiki.net.
Change-Id: Id09e3b29601b67a728055c09d629e4f3d27bb00a
2021-05-12 09:21:36 +02:00
Translation updater bot 50063fbba3 Localisation updates from https://translatewiki.net.
Change-Id: I8230eda39317bc68d3b4966d83ea251807eab914
2021-04-12 08:37:32 +02:00
Translation updater bot 49530fddca Localisation updates from https://translatewiki.net.
Change-Id: I4b19a991fda10ff3225acf919499d9dbe517ea68
2021-03-08 08:46:10 +01:00
Translation updater bot e147f4fa5c Localisation updates from https://translatewiki.net.
Change-Id: Ib2f4073cf980367efd1eb019e0de159ffcc1f31a
2021-02-15 10:05:01 +01:00
Translation updater bot 1d6a2bc5c7 Localisation updates from https://translatewiki.net.
Change-Id: I1a478f4849c3d75d514040656b2c03cf137aaa86
2021-02-08 08:40:36 +01:00
Translation updater bot 9211924c81 Localisation updates from https://translatewiki.net.
Change-Id: I5cc73e725e5d6320c739ba1099f1a643771605c1
2021-02-04 08:39:23 +01:00
libraryupgrader b49cebf8cb build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
  The following sniffs are failing and were disabled:
  * MediaWiki.Commenting.FunctionComment.WrongStyle

* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
  The following rules are failing and were disabled:
  * compat/compat

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: Icc5ae88b205d4b122efef7aef2826eb334b27820
2021-01-29 10:19:37 +00:00
Translation updater bot 66ae6adafb Localisation updates from https://translatewiki.net.
Change-Id: If78ecd712f317ab8de73f72ac721749d431fe994
2021-01-28 08:35:45 +01:00
Translation updater bot f111dd9f60 Localisation updates from https://translatewiki.net.
Change-Id: I2af220037d6e638819a3fcbbe519982632106248
2021-01-27 08:34:16 +01:00
Translation updater bot 21963b88be Localisation updates from https://translatewiki.net.
Change-Id: I40957a12484298cda2c098295227e819784ee591
2021-01-18 08:37:44 +01:00
Translation updater bot 4aa9662221 Localisation updates from https://translatewiki.net.
Change-Id: I19d9a31d85aef9601c251f462a4d69488e311660
2021-01-05 08:27:46 +01:00
Translation updater bot 9973c22664 Localisation updates from https://translatewiki.net.
Change-Id: Iec633689227ceb2922bd36041d2d84ee689e55ad
2020-12-30 10:13:49 +01:00
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
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