Commit graph

703 commits

Author SHA1 Message Date
jdlrobson 6b49ddff1b Remove EventLogging/A-B test code from RelatedArticles
With RelatedArticlesEnabledBucketSize now removed, installation of this
extension will turn it on for 100% users without any mechanism to turn
it off.

Additional changes:
* Bump version
* Add Readers team to contributors

Bug: T202306
Change-Id: I7dc270a06dd3afd4e894c8298165d6d6d4fda8d6
2018-09-20 11:13:13 -07:00
Jan Drewniak 6856ef8b5e Renaming QUnit test files from "test_" to "test.js"
Updates QUnit test files from starting with "test_" to ending with
"test.js" in accordance with the Readers Wed coding conventions.

https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions

Bug: T197884
Change-Id: I3c15385d22d308b8b465985ca55e8b802d72dae4
2018-09-19 14:54:48 +02:00
Fomafix 00405b0309 Remove mediaWiki and jQuery from eslint globals
Remove all mappings in the closures like in
I7cf2426cde597259e8c6f3f6f615a1a81a0ca82b in core.

Change-Id: Ie9a2fadb8e276774784a4937bb5c3ec11f213352
2018-09-15 17:54:03 +00:00
jenkins-bot 609b2811ac Merge "Selenium: Simplify selenium-daily NPM script" 2018-09-11 10:00:04 +00:00
libraryupgrader 37beb7dfae build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: I327f22412a6ad54eae8d5c70e0a4e751c5022a3c
2018-09-08 05:21:57 +00:00
Translation updater bot 3207196964 Localisation updates from https://translatewiki.net.
Change-Id: I9fc6e430c445053f1325504e6ec59f9efb1ff931
2018-09-03 22:15:32 +02:00
Željko Filipin 937980a9b0 Selenium: Simplify selenium-daily NPM script
selenium-daily now just calls selenium-test. Environment variables are set up in
the Jenkins job, so they are removed.
selenium-daily might seem redundant, but it provides flexibility. In case a
repository does not want to run all tests daily, that's easily fixed by updating the
selenium-daily script.

Bug: T188742
Change-Id: If0d3b508fb9a711afdfd1d18086071ed4c9cb0ed
2018-09-03 17:29:37 +02:00
libraryupgrader c199126902 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: Iecc747be0ae2f2c4c3c6b4cf481d5bd5fc4a0bc1
2018-09-03 14:19:23 +00:00
libraryupgrader c46c56ae65 build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
Change-Id: I803ea3fb34cc09e35f584512aef887fbb9d42dd8
2018-09-01 13:45:56 +00:00
jenkins-bot 90681f1a79 Merge "Remove unused jshint comment" 2018-08-21 07:39:27 +00:00
libraryupgrader fbe7003f21 build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I7fd1fec50544b0b29aa2b9fa03bdbe1b33cf761b
2018-08-19 15:55:19 +00:00
Fomafix 969ae7c05f Remove unused jshint comment
Change-Id: If1db410a48a754a4f892b6164f6a4997bed3bec4
2018-08-17 14:06:24 +02:00
Fomafix 0464e7a7c0 Remove eslint rule "no-use-before-define": 1
Add no-use-before-define to the line where the rules is violated.

Change-Id: Ieb50b11292cff6b40fdd5f06c76d61bb01e86e4c
2018-08-17 13:29:08 +02:00
Fomafix 0fa064728f Use native JavaScript instead of jQuery
Replace
* $.each( array, function ( index, value ) { ... } ) by
  array.forEach( function ( value ) { ... } )

* $.map( array, function ( value ) { ... } ) by
  array.map( function ( value ) { ... } )

* $.isArray( var ) by
  Array.isArray( var )

* $.isFunction( var ) by
  typeof var === 'function'

Change-Id: I450f5a75eb9c3fe20517da02986b0a491ebca67a
2018-08-17 12:45:12 +02:00
Stephen Niedzielski 4e92ea4680 Fix: replace deviceTabletWidth w/ width-breakpoint-tablet in LESS
T140804 dropped the support for deviceTabletWidth in core
(https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/451648/9/includes/DefaultSettings.php).

Bug: T202021
Change-Id: I0d215bcd66654ac8646e6cc66f673e7e7b7fe945
2018-08-16 09:23:56 -05:00
Željko Filipin 5c8571317b Selenium: add selenium-daily NPM script
The script is needed to run the new Docker-based Jenkins job that runs daily and targets beta cluster.
selenium-test script, NPM packages and wdio.conf.js files are dependencies.

Change-Id: Ic0fb26cfdd07225260b6ef70ce81a49ee73af331
Job: RelatedArticles-npm-browser-run-selenium-daily-node-6-docker
Bug: T188742
2018-08-10 08:32:24 -05:00
Timo Tijhof f6c23000f2 Remove use of deprecated 'ext.eventLogging.Schema' module
This is the last remaining use of the module name "ext.eventLogging.Schema"
in Wikimedia Git. It is an alias for "ext.eventLogging.subscriber".

Change-Id: Idf295ef9c550ad7f1a19ac0b84e856d606ab8eb3
2018-08-06 17:40:05 +02:00
Kunal Mehta 34a18a4c99 Configure phan-taint-check-plugin
The plugin checks and flags potential security issues (XSS, SQLi, etc.)
using static analysis.

See <https://www.mediawiki.org/wiki/Phan-taint-check-plugin> for more
details.

Bug: T201219
Change-Id: I609fcfe54f635199b4228773b6338fe88572b68d
2018-08-03 21:30:18 -07:00
libraryupgrader 163b7bdc15 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I94d6c6459dec2cf7fd940ef13b1b70a09d1e763a
2018-07-27 15:36:16 +00:00
Umherirrender a00a0fdd61 Require MediaWiki 1.31 in extension.json for AutoloadNamespaces
AutoloadNamespaces is a new feature in 1.31

Change-Id: I0ee5de22a50d8aec3bd0f52744119de074651158
2018-07-07 12:00:25 +02:00
Translation updater bot c82eb58c0a Localisation updates from https://translatewiki.net.
Change-Id: I314141bc7200e6a602c8d836d27c75ff6c23e3d2
2018-06-27 22:20:08 +02:00
jenkins-bot 2d5f93f87b Merge "Use wdio-mediawiki in selenium tests" 2018-06-20 17:56:08 +00:00
jdlrobson 993c4e227e Use wdio-mediawiki in selenium tests
Change-Id: If48e0a885acdf4bca73ec2a9d613fe2f0403dd61
2018-06-20 10:23:11 -05:00
jdlrobson efb41140a5 Contain code in own call stack
Per Timo's recommendation on Ife362f43d061d32fb0441dd1136fb11b46b475ae
use then instead of done for callback handling

Change-Id: I18dbfff59cb90a5076aa6f3b077ba9c264f7c139
2018-06-19 11:41:25 -07:00
Kunal Mehta eacbd18d3a Switch to PSR-4 autoloader
Change-Id: I1add76d094ea8a122442bfe06fbd67c3c819b9fa
2018-06-11 18:34:07 -07:00
Kunal Mehta 0837f19dcd Register EventLogging schema in extension.json
Change-Id: I4079f13a6708ad4376b7686c3926cd59ff90aaa7
2018-06-11 18:30:22 -07:00
jenkins-bot d76a4fde65 Merge "Correctly remove node without exception" 2018-06-06 10:42:44 +00:00
jdlrobson 7f7b2022a7 Correctly remove node without exception
$( '.read-more-container' ).get( 0 ) returns a DOMElement not a
jQuery object so there is no remove method. This will throw a
JavaScript exception.

It seems JavaScript exceptions can impact the loading of Wikidata
Page banners.

Bug: T152185
Change-Id: Ife362f43d061d32fb0441dd1136fb11b46b475ae
2018-06-06 11:27:06 +01:00
libraryupgrader e11bfc4b46 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I3f583a53f094b267a6caf9de41578fcbfb04db01
2018-05-26 06:06:24 +00:00
Translation updater bot e4ecfd2145 Localisation updates from https://translatewiki.net.
Change-Id: Icd50f960ea495adb9c753cc63728cee0a0c1bba1
2018-05-03 22:21:47 +02:00
Translation updater bot a2b32cdf66 Localisation updates from https://translatewiki.net.
Change-Id: I50cb706a5fd0fd349070f9cd62c9493b4c46ca9d
2018-04-21 22:15:47 +02:00
libraryupgrader 365b7be528 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I5836f4ad01e155e3343191c151527927a2223415
2018-04-14 05:41:32 +00:00
Jan Drewniak 816bda69c5 Replace pageterms with description API
Bug: T190953
Change-Id: Ia188a7bdc4d3533d6ee0e9bb06fa62da4b759c66
2018-04-13 10:02:14 +02:00
Translation updater bot ed90ee091c Localisation updates from https://translatewiki.net.
Change-Id: I403017224f18211b1fd73ef4c9f9812f398b0a9d
2018-04-10 22:15:37 +02:00
Translation updater bot 8870625f91 Localisation updates from https://translatewiki.net.
Change-Id: I9036b2e2e2e668ff6c92bd94ce629c3d9f71a754
2018-04-08 22:30:21 +02:00
libraryupgrader 77df83cc25 build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
Change-Id: I794870ab03883c395a48ea8dd44469103fb676e1
2018-03-29 05:25:34 +00:00
Translation updater bot 6b115a87cf Localisation updates from https://translatewiki.net.
Change-Id: Ib5e53caf6c9868437e126097d7dcf2b0d4f618ee
2018-03-24 22:29:37 +01:00
Translation updater bot 04813e6001 Localisation updates from https://translatewiki.net.
Change-Id: I3b5c73ae3158eaa057c06e3fd11531a77717fc49
2018-03-19 22:19:53 +01:00
libraryupgrader d16d67a108 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ib8b0e8a0fc9d23fc0cd188690cd3781958e9afe3
2018-03-10 03:25:19 +00:00
Kunal Mehta 1e57f034bd Use SPDX 3.0 license identifier
SPDX released version 3 of their license list (<https://spdx.org/licenses/>),
which changed the FSF licenses to explicitly end in -only or -or-later
instead of relying on an easy to miss + symbol.

Bug: T183858
Change-Id: Id06c20eb9e1d97b6b8aa1fd2195ec1002066690d
2018-03-02 15:35:10 -08:00
Translation updater bot 9f1b608d1e Localisation updates from https://translatewiki.net.
Change-Id: Ib0943db748e5a3f4550c256c9f79a1fae66c5f74
2018-03-02 22:31:25 +01:00
Željko Filipin 0a482c7e5c Update README file for Selenium tests
Bug: T187862
Change-Id: I20a3f0b87b5940c81c227d236262f036a17528d3
2018-02-27 14:06:27 +01:00
libraryupgrader b15b709eae build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I51e48d77f4f788c91e956b8e944fc1896edf4e7f
2018-02-25 10:49:07 +00:00
Stephen Niedzielski bc70678d22 Fix: wait to show related articles until ready
Wait until the Document is ready before appending related articles to
avoid the "last edited" link appended in afterwards.

This fix is untested as I've been unable to repro the issue reported.

Bug: T187479
Change-Id: Ieefaf644040ea057a65649a3ce14de3531ec2e72
2018-02-22 08:53:17 -06:00
Translation updater bot e2aa9d7ae0 Localisation updates from https://translatewiki.net.
Change-Id: I7e7f30c9186a32ceef14b3f0914a3653102f1c0b
2018-02-19 22:25:55 +01:00
libraryupgrader 7eb490fe1a build: Updating mediawiki/minus-x to 0.3.1
Change-Id: If133d7d47c10e66545aadecb683431914968434e
2018-02-18 07:56:25 +00:00
libraryupgrader 754f6f8102 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: I69a260376a1952b4e9491a4d15ed66bca88f06b6
2018-02-15 13:56:35 +00:00
Translation updater bot 96db992ecc Localisation updates from https://translatewiki.net.
Change-Id: I99f59a09fe92856740984b9ab9c6537944e090a1
2018-02-12 09:23:51 +01:00
Ed Sanders 1c7676da81 build: Update linters
Change-Id: Ifa6756f5a5f1d4ea77e15d61e0219c2b97ecb7ae
2018-02-04 22:09:55 +00:00
Translation updater bot bfa92688c7 Localisation updates from https://translatewiki.net.
Change-Id: Ic2256fa6b3af3efb4ec4f46501d6d7a56f68a562
2018-01-18 22:49:49 +01:00