Commit graph

574 commits

Author SHA1 Message Date
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
Translation updater bot ef52a77681 Localisation updates from https://translatewiki.net.
Change-Id: Id9c17fbd3478170b635f133a614df158d72414c4
2018-02-18 22:40:59 +01:00
libraryupgrader e6ad9aa170 build: Updating mediawiki/minus-x to 0.3.1
Change-Id: I0b5ca6d07ab39e243bb1c2e43019bf7447cf1001
2018-02-18 05:50:47 +00:00
Translation updater bot c18c097fc0 Localisation updates from https://translatewiki.net.
Change-Id: I7deae04c1c2a91e4e29de904798fed916b7bbec3
2018-02-15 22:47:17 +01:00
libraryupgrader 89089faaa9 build: Updating mediawiki/mediawiki-codesniffer to 16.0.0
Change-Id: Id9338a658104d1da7942c6c7bdb6e53eebf31db0
2018-02-15 13:32:16 +00:00
Translation updater bot 68bc9915ea Localisation updates from https://translatewiki.net.
Change-Id: Iafe0a29a46880dbfd41db008e009ab38c59a5c10
2018-02-11 10:42:19 +01:00
Ed Sanders 139d358299 build: Update linters
* jshint->eslint
* load message dirs from conf

Change-Id: Id644c79c96b4e7a6fe0f41223acd9193cf0c8c5e
2018-02-08 14:17:46 +00:00
Umherirrender 557b7e7128 Require MediaWiki 1.29 in extension.json for manifest_version 2
manifest_version 2 is a new feature in 1.29
(Iea5ba589c70958db7500cf3587b5ebd738532026)

Change-Id: Ic0f1104e18866e14ea8c98b5a6a98fcb0410ecae
2018-02-03 10:46:26 +01:00
Translation updater bot ad31040f83 Localisation updates from https://translatewiki.net.
Change-Id: I8471cbd32989c74db5afd61af1db7a361f03c94c
2018-02-01 22:30:20 +01:00
zoranzoki21 125ec14718 Update maintenance scripts to use $this->requireExtension
Bug: T152139
Change-Id: I1ce646506f66096387f3970dd4017b1d06841ec2
2018-01-28 14:54:33 +00:00
Translation updater bot 342c969bb4 Localisation updates from https://translatewiki.net.
Change-Id: Ieba41a58c79e26f1e91d46bd0af8c480645ec40a
2018-01-20 14:42:59 +01:00
Translation updater bot e307aef0e0 Localisation updates from https://translatewiki.net.
Change-Id: Ia98b126824bd8afc759329eaffe422067e05b68a
2018-01-18 22:49:46 +01:00
Translation updater bot 6049febcdc Localisation updates from https://translatewiki.net.
Change-Id: I86c62671c44ef372b729f70dd9176fdf391f8b62
2018-01-08 22:36:05 +01:00
Umherirrender f75bf11ff8 Use namespaced version of FakeResultWrapper
Change-Id: If76eb8d5cdeac94e938c9b31946a4d7f688ae24e
2018-01-04 23:41:54 +01:00
libraryupgrader ec5ee2d18e build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
The following sniffs are failing and were disabled:
* Generic.Files.OneObjectStructurePerFile.MultipleFound

The following sniffs now pass and were enabled:
* MediaWiki.Files.OneClassPerFile.MultipleFound

Change-Id: I5ecc401f56b49e4fd8cc7ada6effc698fc436e48
2017-12-30 01:57:02 +00:00
Umherirrender a2f97b9b27 Use absolute class name in @covers
Namespaced classes need to be absolutely named.

Change-Id: Ic98e4e3b9fbc1b7cb3187cdbffcb973795a02a6b
2017-12-27 20:25:59 +01:00
jenkins-bot 4e878873e2 Merge "Remove old string-based API description functions" 2017-12-20 03:11:24 +00:00
Translation updater bot 3b1222e767 Localisation updates from https://translatewiki.net.
Change-Id: Ibfc95b85191cf88e445ae872bd424be0cad03dba
2017-12-18 23:06:53 +01:00
Pppery 60735a010d Remove old string-based API description functions
These have been deprecated since MediaWiki core 1.25 and no longer have any effect.

Change-Id: Icbaaa395af8303c1018e92ab2bfddb02ed587115
2017-12-17 23:58:15 +00:00
Translation updater bot d69f6fef91 Localisation updates from https://translatewiki.net.
Change-Id: I96965db0d3b628b16eeb3cf967734254f92f70e4
2017-12-17 22:26:09 +01:00
Translation updater bot 45a04905a1 Localisation updates from https://translatewiki.net.
Change-Id: Iac5aca98300ca2e772a48f90ecb2b4f8557493b9
2017-12-13 23:34:25 +01:00
Translation updater bot ecb595cc35 Localisation updates from https://translatewiki.net.
Change-Id: I118104e9d775fb6888c01eb79db79dd495ffe5dd
2017-12-11 23:39:00 +01:00
libraryupgrader 0d54b9505b build: Updating mediawiki/minus-x to 0.2.1
Change-Id: Id778f4fb9d5bd4e7b1ef7b343c41d28ebe97c58c
2017-12-11 00:23:38 +00:00
Translation updater bot 07711785a5 Localisation updates from https://translatewiki.net.
Change-Id: I1d89ec3fee64f9803603ae447061523d3f9a333b
2017-12-10 22:33:24 +01:00
Translation updater bot 863a88afa0 Localisation updates from https://translatewiki.net.
Change-Id: I88174c9d5fd4986c0ac5f3e3b9f450c6a164c1be
2017-12-09 22:19:47 +01:00
Translation updater bot 4ebefdcd84 Localisation updates from https://translatewiki.net.
Change-Id: Idf1364109538f21e7c832e726bd4edda2fd5fba1
2017-12-08 22:37:29 +01:00
Pppery 8d98456184 Clarify documentation of pithumbsize parameter
Bug: T178910
Change-Id: I5a17dbff135c553c98767b642d24219b7a5c8c2d
2017-12-07 19:54:33 -05:00