Commit graph

700 commits

Author SHA1 Message Date
Kunal Mehta b058df99b8 build: Set "root": true, in .eslintrc.json
This ensures that each repository's "npm test" command is fully
independent of wherever it might be in the filesystem.

Bug: T206485
Change-Id: I81139c50ce9cde87ecf4b52ad688719735d1f154
2018-12-17 18:57:17 -08:00
Translation updater bot d72b10c9fd Localisation updates from https://translatewiki.net.
Change-Id: Icea18eb246bae52183a528535c812dd1ae87ee5d
2018-12-07 22:21:44 +01:00
libraryupgrader 1d5e35277f build: Updating mediawiki/mediawiki-codesniffer to 23.0.0
Change-Id: I9f0706406568dc51eb8af8db2ed80feefdbe294d
2018-11-16 06:37:25 +00:00
Translation updater bot 989be21df0 Localisation updates from https://translatewiki.net.
Change-Id: I3ed18b46cb117dc779aef6536b65c9c043d0e0af
2018-11-10 22:28:23 +01:00
Translation updater bot 652070938e Localisation updates from https://translatewiki.net.
Change-Id: I0b010a12dec291b252c15c79018dc4bd4dc0436f
2018-11-04 22:42:28 +01:00
Translation updater bot 47aa8bf497 Localisation updates from https://translatewiki.net.
Change-Id: Iaaa9091e0a1aeb52b40b4a33766aedf69f498848
2018-11-03 11:03:15 +01:00
libraryupgrader 8ba6afb479 build: Updating npm dependencies for security issues
* Updated grunt to 1.0.3, addressing:
  * https://npmjs.com/advisories/577
  * CVE-2018-3721

Change-Id: I8534f5e4820b74977399a4b76632d20587c0a0a3
2018-10-11 10:05:09 +00:00
Peter Boehm cd2115f80d Reenable Indexing for Images
PageImages returned no images, found the solution here:
https://www.mediawiki.org/w/index.php?title=Topic:Txp3e225prn7u8mf&topic_showPostId=uf6ic04q8nneq
- thanks to the anonymous helper

Bug: T203965
Change-Id: I6a024d27edf9060f7bf3ffb0d51761b0a86f6696
2018-09-26 23:36:40 +00:00
Fomafix 16b5cfd18e Start showing warning for deprecated PHP entry point
Change-Id: I657672b9eb49a4313bbde5dd8aadfff015182a50
2018-09-11 06:47:43 +02:00
libraryupgrader 672a9fd309 build: Updating mediawiki/phan-taint-check-plugin to 1.5.0
Change-Id: I425f35b7ac9ccfdb20080a8492ad0bed78097607
2018-09-08 04:27:54 +00:00
libraryupgrader 1d629c73d8 build: Updating mediawiki/mediawiki-codesniffer to 22.0.0
Change-Id: If9f0d1d185f177228981319650addf2b0f11a919
2018-09-03 06:48:54 +00:00
libraryupgrader d6d4d73d7c build: Updating mediawiki/phan-taint-check-plugin to 1.4.0
Change-Id: I43ba5bf117eb13b1ebca5093983f726619d85a42
2018-09-01 12:32:04 +00:00
jenkins-bot e716b5c13f Merge "Remove backward usage of ApiBase::dieUsage" 2018-08-20 01:03:58 +00:00
libraryupgrader 89dda946d3 build: Updating mediawiki/phan-taint-check-plugin to 1.3.0
And updating CoC link to use Special:MyLanguage (T202047).

Change-Id: I79a19af4eff16b2283e9673fe77ca8f2c9b8ed53
2018-08-19 14:57:59 +00:00
Umherirrender da5312fb70 Remove backward usage of ApiBase::dieUsage
ApiBase::dieUsage is deprecated since 1.29, this extension required
1.29

Change-Id: Ide05c1dc6a92708deaf859e6963b607194133b5d
2018-08-18 15:53:42 +00:00
Translation updater bot 9a63080018 Localisation updates from https://translatewiki.net.
Change-Id: I0124fa5b7f5f16767973651c54166ef17d95d6c1
2018-08-06 22:22:19 +02:00
Kunal Mehta c211b57ba5 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: Ie3157955183a1810ff18c48f6a42ba3fe2ed3d1a
2018-08-03 21:22:56 -07:00
libraryupgrader cf82413701 build: Updating mediawiki/mediawiki-codesniffer to 21.0.0
Change-Id: I278138cb74d1686a801b3a2a295ef82e0c92e862
2018-07-27 11:55:05 +00:00
Kunal Mehta 494c9b53c0 Stop setting PAGE_IMAGES_INSTALLED
Callers should check with ExtensionRegistry instead.

Bug: T200381
Depends-On: I0b9725fa4b3c4ce4fbb1004cfd3570ba39865fc1
Depends-On: Ib9a480396fc28358e681f749f80800c9bab4e0d0
Change-Id: Ibe4384238161edc8d40cff5e2a532fb36ecec64d
2018-07-25 18:20:55 -07:00
Translation updater bot c60c2bd307 Localisation updates from https://translatewiki.net.
Change-Id: Ia5049ec1348fcb685758820417ca21a77220ffa8
2018-07-05 22:43:57 +02:00
Translation updater bot ede605b746 Localisation updates from https://translatewiki.net.
Change-Id: I13f3e836003e7ecb9e62b059d565e1f054f60bf9
2018-06-27 22:19:52 +02:00
Translation updater bot 95894d76b3 Localisation updates from https://translatewiki.net.
Change-Id: I596497f1af2571414eccc0e5308074888485a4b5
2018-06-24 22:25:54 +02:00
libraryupgrader eaead3c305 build: Updating mediawiki/mediawiki-codesniffer to 20.0.0
Change-Id: I20229e891f2ea5985a515fb1e6176c88b2d23fa8
2018-05-26 05:23:03 +00:00
Kunal Mehta a9ad31c7f8 Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag issues
Change-Id: I3b0c14dcd5961254d49a98df4061f8ff83589f3a
2018-05-24 21:42:59 -07:00
jenkins-bot 7afb479887 Merge "Remove backward compatibility code for 1.25" 2018-04-28 20:50:57 +00:00
Translation updater bot 6888263807 Localisation updates from https://translatewiki.net.
Change-Id: Ie5729d4213b920289c904bb8426de566cc9900dc
2018-04-25 22:38:50 +02:00
Umherirrender ebbfdf7a1b Remove backward compatibility code for 1.25
Extension requires 1.29 in extension.json
ApiResult::META_CONTENT exists since 1.25

Change-Id: Ibdbabf628975b277b2d3cc01e5b8ff12116fb97d
2018-04-25 22:01:49 +02:00
Umherirrender fd0d231a3c Remove backward compatibility code for 1.25
Extension requires 1.29 in extension.json

Change-Id: Ie58a10402c207fa097eedd760b22a891d0a8cc78
2018-04-25 21:46:58 +02:00
jenkins-bot 3633c216cb Merge "Adjust InitImageDataJob" 2018-04-20 22:58:50 +00:00
Kunal Mehta 34b0dd5ff6 Unbreak test that only worked by accident, and fails on PHP 7.2
`$leadImages || $images` will return a boolean, it doesn't work like
JavaScript or Python. Use `?:` to implement what was wanted.

This only worked because `count( true ) === 1`. Using assertCount()
would have caught it also.

Change-Id: I11357b23ad1124ed96d863872014cdca7c59e284
2018-04-13 22:25:26 -07:00
libraryupgrader ded0ca4290 build: Updating mediawiki/mediawiki-codesniffer to 18.0.0
Change-Id: I266801663a036db96a03ee026abbb78f34941c27
2018-04-13 22:20:36 -07:00
Kunal Mehta b138993e96 Properly specify method that will be mocked
Change-Id: I2bb3b586727a4a7c52f4fd8813f87d0a4e7c5952
2018-04-13 22:20:17 -07:00
Umherirrender bc4b81c7bb Adjust InitImageDataJob
$params cannot a bool here
Job::run has to return a bool

Change-Id: Ieed6675e8de0e3ed4c3376676d5b027a6ab9f4f2
2018-04-10 19:11:55 +00:00
Translation updater bot 848c07a762 Localisation updates from https://translatewiki.net.
Change-Id: I339bf731ecee6e995b504024ad6952f310c9770a
2018-04-09 23:17:05 +02:00
Umherirrender 2db7a8728e Migrate call to Http::get to use options for timeout
Since 1.25 the timeout is part of the options array.
Also added the caller for profiling

Change-Id: I111b1a0199f8a5fd0bfcfb490717861757f1d496
2018-04-05 10:14:50 +02:00
jenkins-bot 5b60adad39 Merge "Add later-than option to PageImages InitImageData maitenance script" 2018-04-03 17:44:46 +00:00
Piotr Miazga 9f605c75bc Add later-than option to PageImages InitImageData maitenance script
Bug: T152252
Change-Id: Ie4f416dce9e4703f55a0dbbcb72ae6a30554b8c1
2018-04-03 19:21:12 +02:00
Translation updater bot ca4e635b8d Localisation updates from https://translatewiki.net.
Change-Id: I9752d4037841bfdd4f96b26f451dbca26392a88f
2018-04-01 09:38:53 +02:00
libraryupgrader 534b1df71b build: Updating mediawiki/mediawiki-codesniffer to 17.0.0
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.LicenseComment.InvalidLicenseTag

Change-Id: Ieade4ff304a47e9900e7d2a97bdd2edf534524b6
2018-03-29 04:37:56 +00:00
Umherirrender dcba9d1c87 Change DO_MAINTENANCE to RUN_MAINTENANCE_IF_MAIN
As suggested in 26505b170adb24a6ae68945920db322c9382e470 for better
readability. Also the sniff now knows about the maintenance script

Change-Id: I5c6a4438fcd58b369e1f637899897d7667d56e34
2018-03-17 20:30:50 +00:00
Translation updater bot 36d5217810 Localisation updates from https://translatewiki.net.
Change-Id: I69ddfce0ddb7b02e01e4c8e36325b2538454132e
2018-03-15 22:52:09 +01:00
Translation updater bot c18cde3772 Localisation updates from https://translatewiki.net.
Change-Id: Iaa48c6e1c168d0ce5f5c0891cfdd8233cc2a3a63
2018-03-11 22:31:08 +01:00
Translation updater bot 96bec49538 Localisation updates from https://translatewiki.net.
Change-Id: I810ee35306bad302062373c03ae0173e28e1296c
2018-03-10 22:14:23 +01:00
libraryupgrader b669f559f1 build: Updating jakub-onderka/php-parallel-lint to 1.0.0
Change-Id: Ic3b593ba0407a63217ae3d181de6bdeb4199b327
2018-03-10 00:08:09 +00:00
jenkins-bot faadfc21a4 Merge "Fix remaining php sniffs" 2018-03-05 18:07:28 +00:00
jdlrobson fcc96696d5 Fix remaining php sniffs
* Separate the ApiQueryPageImages mock into its own file

Bug: T170583
Change-Id: I3db5de11618f952eb7974c456445eaa1d5e4e6a4
2018-03-05 18:49:11 +01:00
Translation updater bot 0daaa0d308 Localisation updates from https://translatewiki.net.
Change-Id: Icca8f92910657c220dfe994189b57cf2b1cd6b0b
2018-03-03 22:25:46 +01:00
jenkins-bot d29c0d6585 Merge "Fix "Only variables should be passed by reference" test failure" 2018-02-26 17:07:09 +00:00
Kunal Mehta 3ad50a314a Fix "Only variables should be passed by reference" test failure
Bug: T188272
Change-Id: Ib8d0974b1a98fecca39abc0df2bf42ef64420965
2018-02-26 08:49:10 -08:00
libraryupgrader 5bb3c43eed build: Updating mediawiki/mediawiki-codesniffer to 16.0.1
Change-Id: I9ecc6d5de9b1904b6e7d214f5bd0cd6a67d4ae42
2018-02-25 10:15:23 +00:00