Commit graph

5594 commits

Author SHA1 Message Date
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
jenkins-bot e41e1e1b02 Merge "Selenium: Update to WebdriverIO v5" 2020-06-23 11:09:05 +00:00
Translation updater bot 5db07fd935 Localisation updates from https://translatewiki.net.
Change-Id: I778229377e279cd1325e32b5702e63bc81f29897
2020-06-23 08:51:19 +02:00
vidhi-mody f25ed7e705 Selenium: Update to WebdriverIO v5
Update NPM packages: webdriverio, wdio-mediawiki.

Replace NPM packages:
- wdio-mocha-framework with @wdio/mocha-framework.
- wdio-spec-reporter with @wdio/spec-reporter.

New NPM packages: @wdio/cli, @wdio/local-runner, @wdio/sync.

Replace:
- `browser.element` with `$`.
- `chromeOptions` with `'goog:chromeOptions'`.
- `password` with `mwPwd`.
- `username` with `mwUser`.
- `waitForVisible()` with `waitForDisplayed()`.

Bug: T250610
Change-Id: If7a5ee9588f082be18f27ee45a051ae956c688f5
2020-06-22 15:54:30 +00: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 8fe5e47b76 Merge "Push: Add additional job params for logging" 2020-06-18 10:55:37 +00: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
jdlrobson 1f995c93a3 self.hide is not a function
This is a factory function. self.hide is replaced with overlay.hide
and a local variable to correct.

Bug: T255630
Bug: T253045
Change-Id: I3dae26e798b0c2e7520c2f01b017c257cc81e995
2020-06-17 22:02:14 +00:00
Michael Holloway a2412732f6 Push: Add additional job params for logging
Adds additional job parameters to help diagnose the apparent issue of
jobs being performed twice on Beta.

Bug: T255068
Change-Id: Ib257a24056539487e1110fe286fa4535c3fec94a
2020-06-17 17:58:21 -04: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
jenkins-bot 8fa804325d Merge "build: Update eslint-config-wikimedia to 0.16.1" 2020-06-16 09:50:10 +00:00
Ed Sanders ffe3363d09 build: Update eslint-config-wikimedia to 0.16.1
Change-Id: I2ce14429f9440e69e36fa349847f58fb32862f2a
2020-06-15 16:19:00 +01:00
jenkins-bot 12090e6b0c Merge "Push: Check that the event type is enabled before scheduling job" 2020-06-15 11:48:06 +00:00
Translation updater bot 51baf6cc43 Localisation updates from https://translatewiki.net.
Change-Id: Id2177aa1dd1af547045e25e3754909031fc3d5cd
2020-06-15 08:39:22 +02:00
jenkins-bot 33091d5c74 Merge "Parse messages in string context" 2020-06-15 01:19:01 +00:00
Michael Holloway 07c8c0afcf Push: Check that the event type is enabled before scheduling job
It is the notifier implementation's responsibility to check the user's
notification preferences before sending a notification. This adds the
check.

Change-Id: I4b7fd7ea444f5a6db6d79fadb48a440d4fdf0ac9
2020-06-12 16:30:29 -04:00
Translation updater bot 6bd34b6765 Localisation updates from https://translatewiki.net.
Change-Id: If23897f5a90e29778e01f7a03f6300b4f0ba13de
2020-06-12 08:37:43 +02:00
jenkins-bot a444d7bc16 Merge "Increase "euw_wiki" VARCHAR length from 30 to 64" 2020-06-11 17:44:43 +00:00
Paladox 374aeb5fa9 Increase "euw_wiki" VARCHAR length from 30 to 64
This is the same fix that has been done to Flow.

Database names are limited to 63 per [1], so by upping the limit
we allow longer db names (e.g db names longer than 30 characters).

[1] https://dev.mysql.com/doc/refman/5.7/en/mysql-cluster-limitations-database-objects.html

Change-Id: I0d26a77c1bb49719eebc6beead4d79a27fcd3826
2020-06-11 17:23:19 +00:00
libraryupgrader 80a95a0312 build: Updating mediawiki/minus-x to 1.1.0
Change-Id: I0531c37053ec9412d6d8f23532d634087cad041e
2020-06-11 17:11:16 +00:00
jenkins-bot c82226835b Merge "s/slave/replica/" 2020-06-11 01:01:49 +00:00
Michael Holloway 657e914513 Push: Bail out of notification job early if no subscriptions found
Change-Id: Ica8e5c0496171dba4315c27072c2d865eb747e78
2020-06-10 15:38:23 -04:00
Gergő Tisza 153db72ec4 Ensure an array is passed to ApiEchoMute::lookupIds()
The nicer approach would be setting the parameter default to [],
but that breaks ApiSandbox.

Bug: T254699
Change-Id: I6c553e27248ff7d6c696f116cb34eb238dade440
2020-06-10 13:47:05 +00:00
jenkins-bot ea200ace05 Merge "Remove overbroad DB error catching in ApiEchoPushSubscriptionsCreate" 2020-06-10 11:52:35 +00:00
Translation updater bot 3d9073cf6e Localisation updates from https://translatewiki.net.
Change-Id: Ib5b58fd9c7a9507f9f1f03aab2a9c67cc51d5f17
2020-06-10 08:28:37 +02:00
Michael Holloway c9a826190d Remove overbroad DB error catching in ApiEchoPushSubscriptionsCreate
Rather than catching all DB errors (and assuming they are duplicate
entry errors), ignore duplicate entry errors and use affectedRows() to
determine whether the subscription already existed.

Change-Id: I4d50cb8222e52cc1a4e1f0fb3f596f36cb565dbb
2020-06-09 23:48:12 -04:00
DannyS712 e4032e8e51 Remove use of the Revision object returned in WikiPage::doEditContent
Bug: T254952
Change-Id: I5ff763c0875fb1a7178deaa1c530a9fc1179c60c
2020-06-09 23:41:22 +00:00
jenkins-bot 2a38f60ab8 Merge "Push: Submit requests to configured service endpoint" 2020-06-09 17:08:31 +00:00
Reedy aa702c1471 s/slave/replica/
Bug: T254646
Change-Id: I4de3985fd8568ce07919623efe2981bc0b6c54e5
2020-06-09 02:09:44 +01:00
DannyS712 9564e1ae50 Docs: Use replica instead of slave
Bug: T254646
Change-Id: I06387e33c5207ea59db34dba3b482893ff103288
2020-06-08 23:49:00 +00:00
Michael Holloway 1d31fd753a Push: Submit requests to configured service endpoint
Finishes the implementation of the stubbed NotificationServiceClient.
Sends push notification request messages to the endpoint configured in
the EchoPushServiceBaseUrl setting. For example, to send messages to an
instance of mediawiki/services/push-notifications running on the host
machine while running MediaWiki in Docker, add the following line to
LocalSettings.php:

 $wgEchoPushServiceBaseUrl = 'http://172.17.0.1:8900/v1/message';

Bug: T252899
Change-Id: Icab7825e9080d6b1a4cfc5e12fed1da221ce4610
2020-06-08 13:37:24 +00:00
Michael Holloway a5bcc65504 Fix push subscription retrieval
Updates the push subscription query to retrieve a provider string rather
than only its numeric internal ID.

Change-Id: I910173409e48e8b6a6739d3122165c40b0d52b7f
2020-06-08 13:58:42 +02:00
Translation updater bot a145bd0cbe Localisation updates from https://translatewiki.net.
Change-Id: Iacfd69b430bd6941c59611ff085b4cfb9e87273c
2020-06-08 08:50:04 +02:00
Umherirrender 2fe223e45c Pass function name to database functions
Useful for logging

Change-Id: I95d466224ff984653051990b540f29e243915e3f
2020-06-07 03:35:53 +02:00
Umherirrender 0b850dd88d Parse messages in string context
Change-Id: I62f0da3aaa0fd1467043aeb0e0dc3482f6b6600f
2020-06-06 21:28:08 +02:00
Translation updater bot 4fe2dab5dd Localisation updates from https://translatewiki.net.
Change-Id: Ia4165ec17ca139170cccb50b2069b217f671d1ce
2020-06-05 08:52:59 +02:00
jenkins-bot 51ddc6f5db Merge "Parse messages in string context" 2020-06-04 22:01:41 +00:00
Translation updater bot 42bd8cf10b Localisation updates from https://translatewiki.net.
Change-Id: I252f3b97b45b3a60d3c7b3d454dd1bcedf3346da
2020-06-04 08:23:42 +02:00
jenkins-bot ff5a72ca26 Merge "Muted pages: Adjust config to not show missing titles" 2020-06-03 13:23:07 +00:00
Kosta Harlan fb21b0abef Muted pages: Adjust config to not show missing titles
Bug: T46787
Change-Id: Ibb760615670ce36d198627b1628ee311b6fcb628
2020-06-03 12:49:26 +02:00
jenkins-bot 3ec0c3325a Merge "Fix positioning of the secondary actions menu" 2020-06-03 09:47:30 +00:00
Translation updater bot 2049b0a225 Localisation updates from https://translatewiki.net.
Change-Id: I712d7d95cee586f240110ca2584a098733973ed9
2020-06-03 08:30:00 +02:00
Roan Kattouw 7658e151d6 Fix positioning of the secondary actions menu
- Automatically flip the position if there's no room
- Always flip the position in bundled notifications
- Remove menuWidth and related hacks, they didn't work anyway
- Increase maximum label width a bit

Change-Id: I490a925b6265bfbb8bbedae11672fd19d4efba44
2020-06-03 04:41:13 +00:00