Commit graph

750 commits

Author SHA1 Message Date
Translation updater bot 35f763181f
Localisation updates from https://translatewiki.net.
Change-Id: I66cdf668012036530715b48ebdbb0c550f5c46e5
2024-11-19 08:18:33 +01:00
Translation updater bot 736d65a1e6
Localisation updates from https://translatewiki.net.
Change-Id: I59dcf488e0437fd94e115e9a11d55c69283a3659
2024-11-06 08:23:37 +01:00
libraryupgrader 363655dc76 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0
Change-Id: I2ce442faca68389034d309532af942aee2dd237e
2024-11-02 23:34:58 +00:00
Andre Klapper 871cb29005 Use explicit nullable type on parameter arguments (for PHP 8.4)
Implicitly marking parameter $... as nullable is deprecated in PHP
8.4. The explicit nullable type must be used instead.

Bug: T376276
Change-Id: I2f17c7e8c6365795f7a54738b0e607b6f35c9df2
2024-10-26 15:09:27 +02:00
Umherirrender 198b3e7f68 Use type-declaration on api module constructor
Parent class constructor gets type-declaration in 1145328459
Remove simple doc-blocks without further information

Change-Id: Id2264c743077188e2b4f6a66b5d32d67716ed182
2024-10-25 20:16:38 +02:00
Translation updater bot 5e446b522e
Localisation updates from https://translatewiki.net.
Change-Id: I781aa4555897e7736f85006df89d48f0c84614b8
2024-10-25 09:51:23 +02:00
Umherirrender bbbcca4b38 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I6b49b9837ed6d3dfdd8a4bc0420848c09fcb1540
2024-10-20 11:10:45 +02:00
Translation updater bot b31bfd8fb2
Localisation updates from https://translatewiki.net.
Change-Id: If6e8b42e6cdcfb428583ea58e7f529d04e395850
2024-09-10 09:30:20 +02:00
Translation updater bot fe55e6e6a0
Localisation updates from https://translatewiki.net.
Change-Id: Iae0b72ec53b1cd31c4f794d8018a0a25b4e32394
2024-09-02 09:21:19 +02:00
jenkins-bot 4fc8861db4 Merge "build: Update MediaWiki requirement to 1.43" 2024-08-24 20:33:45 +00:00
libraryupgrader b3194fd526 build: Updating micromatch to 4.0.8
* https://github.com/advisories/GHSA-952p-6rrq-rcjv

Change-Id: Ibe813c2b9a9dd70d1aa4251690e547e13d211c38
2024-08-24 07:41:14 +00:00
James D. Forrester c931c15d9a build: Update MediaWiki requirement to 1.43
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.

Change-Id: I2213a0521fd61d44edafda9b3971e59fbbc13c6a
2024-08-22 17:54:43 -04:00
Translation updater bot 29804f5589
Localisation updates from https://translatewiki.net.
Change-Id: Ib2228a302012d5719ae2d9ca289f1568a4acf07e
2024-08-19 09:24:21 +02:00
libraryupgrader 346ed00ed8 build: Updating mediawiki/mediawiki-codesniffer to 44.0.0
Change-Id: I968771f53b9bb6b854bfec5004edea0ee5af161f
2024-08-12 00:20:55 +00:00
Translation updater bot 609bdad1f7
Localisation updates from https://translatewiki.net.
Change-Id: I11a51c10ccd54b3a8813c410674aa93dbc8a45f7
2024-06-21 09:42:44 +02:00
libraryupgrader 7d49ab2f0e build: Updating eslint-config-wikimedia to 0.28.2
Change-Id: I92c9116e5f57616eab946fff18f9069d43e64c7b
2024-06-21 06:41:06 +00:00
libraryupgrader 78eb870d50 build: Updating braces to 3.0.3
* https://github.com/advisories/GHSA-grv7-fg5c-xmjg

Change-Id: I514fed21b214b7240bc3f8ad3f1ec740a899f9c1
2024-06-12 02:55:46 +00:00
Umherirrender 3703c048cc Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I780e57da1ea02eb333cf61abd999dc737acf20d1
2024-06-09 19:03:17 +02:00
libraryupgrader f86e0b3152 build: Updating eslint-config-wikimedia to 0.28.0
Change-Id: I5846c560419fc3fe3a93633ed2b34ecd72b43678
2024-06-08 02:00:55 +00:00
jenkins-bot a54ce823f9 Merge "Update parser tests for new heading HTML" 2024-05-22 15:27:32 +00:00
libraryupgrader e098d3aa87 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I68672fe0f449188eda082847ab8e0265eb741512
2024-05-18 19:56:45 +00:00
libraryupgrader 67433644c3 build: Updating grunt-banana-checker to 0.12.0
Change-Id: I240bcbd166298675b69aae4970756e555bfc399f
2024-05-10 18:46:10 +00:00
libraryupgrader 637acde9bd build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I47ddf4163b685197ffc5d9ebca463afe44df5fc0
2024-05-05 23:55:15 +00:00
jenkins-bot 6384abe012 Merge "Replace deprecated ApiPageSet::getGoodTitles" 2024-04-29 11:24:27 +00:00
Umherirrender d0c0dc9caf Migrate to IReadableDatabase::newSelectQueryBuilder
Also use expression builder to avoid raw sql

Bug: T312501
Bug: T350988
Change-Id: I0ea6aa6edcd68cba067260dad560b87283cca020
2024-04-22 18:58:42 +00:00
Translation updater bot dd36c6e13e Localisation updates from https://translatewiki.net.
Change-Id: Id88d2909eb93215c35f2a1a0f1cfd9b68e4b3217
2024-04-22 09:29:13 +02:00
libraryupgrader 3d5f3b5f9f build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: I3b5b704a2f1324b0a73adb5ad9c9f0a81d9d6ac3
2024-04-20 04:33:42 +00:00
Bartosz Dziewoński f9e530e49c Update parser tests for new heading HTML
Bug: T13555
Depends-On: I1180169a8e83af834c2984ba16089e6277f2a8dd
Change-Id: I0aed227994fd9c95d3d9612e33fec157ffa08772
2024-04-19 22:06:41 +02:00
Bartosz Dziewoński fba65815c7 Revert "Temporarily disable failing heading parser test case"
This reverts commit af76b17c7e.
No longer needed now that we've added an option for this.

The disabled test has drifted away from the reality in the meantime,
so update it.

Change-Id: Ifa906ad876eec9f09b151d21acf1de35168e1e03
2024-04-19 22:06:08 +02:00
Fomafix 6c80d95abe Use MainConfig instead of global variables
Use overrideConfigValue instead of setMwGlobals in tests.

Change-Id: Ifd7bd498bbb9a405afd9f6dd0e80540412b6ff93
2024-04-10 20:05:26 +00:00
Umherirrender beef358191 Replace deprecated ApiPageSet::getGoodTitles
Remove Title objects from the data provider and use PageReferences

Bug: T339384
Change-Id: I3ff14424c5caa9e4436dfe62052a6c95d30ac89f
2024-03-29 21:05:13 +00:00
Translation updater bot 5817881b6d Localisation updates from https://translatewiki.net.
Change-Id: I77c9881c4bca35885704b2162121c50100f23de8
2024-03-29 08:47:14 +01:00
Umherirrender bbb00c0f2d build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: Ied844c3ae930a03ca49e36e9a9e9d0c008d2634c
2024-03-11 20:13:21 +01:00
Arlo Breault d031b380db Stop stripping comments in TOC data
The parserTest "PageImages with toc and image in heading" covers the
case of PageImages comments being left around in TOC data.

Depends-On: I10f96435f892b188cffe64b92cdf2701a3e2058b
Change-Id: Ie6760dd25f937d4f6acbab1c0e1475b54878d4ed
2024-02-29 16:07:57 -05:00
Arlo Breault abf45611d7 Strip comments from toc section lines
Change-Id: Ide4462b9df5d02b088bf2f1c83a3c5f119366a95
2024-02-19 17:57:40 -05:00
jenkins-bot 87e257dd27 Merge "Use streamlined upstream createMock in PHPUnit tests" 2024-02-10 14:48:59 +00:00
jenkins-bot 774edf893e Merge "Rely on language-level types for the constructor" 2024-02-10 14:47:45 +00:00
jenkins-bot 9dce6063f3 Merge "Various code style updates in ParserFileProcessingHookHandlers" 2024-02-10 14:46:17 +00:00
libraryupgrader e4d96d7d30 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* grunt-banana-checker: 0.11.0 → 0.11.1

Change-Id: I8f2c52b81cf59a7d05143db9221ec9cb7265baa8
2024-02-10 11:56:53 +00:00
libraryupgrader db192e3b82 build: Updating npm dependencies
* eslint-config-wikimedia: 0.25.0 → 0.26.0
* grunt-eslint: 24.0.1 → 24.3.0

Change-Id: I5975380a9d3e58224da84463f9ea902af98edad0
2024-02-09 09:02:45 +00:00
thiemowmde ffeb714a6e Various code style updates in ParserFileProcessingHookHandlers
Notably:
* Utilize the new ??= operator.
* No need to count when nobody cares about the number.
* More robust ratio calculation.
* More straightforward check for the "notpageimage" class name. We
  don't need an array of all the classes when all we care about is a
  single, specific class.
* Fix misspelled "no(t)pageimage".

Change-Id: Ibad1d395a5438bc58e026022d08c38fe54c48653
2024-02-08 12:15:05 +01:00
thiemowmde 692b0bc370 Rely on language-level types for the constructor
… as well as the properties that are initialized via the constructor.

Also update some PHPDoc comments.

Change-Id: I2f1dc5345b4a9d00e01d701ad04d42b28aa2f96a
2024-02-08 12:09:56 +01:00
thiemowmde 903e1428c1 Use streamlined upstream createMock in PHPUnit tests
Change-Id: I3920819a97d05771f54687dab99ea9657371ac53
2024-02-08 12:08:17 +01:00
libraryupgrader 2277abbb00 build: Updating npm dependencies
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* semver: 7.3.5 → 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I07f8794e435cb68eb2caa79704bf7f8b4c16a5bb
2024-02-04 06:53:25 +00:00
Translation updater bot e015c680ff Localisation updates from https://translatewiki.net.
Change-Id: If291cf2585820372b29514260fd0a1590bd6de97
2024-01-30 09:39:35 +01:00
Translation updater bot f1f6504cdd Localisation updates from https://translatewiki.net.
Change-Id: I24c3d5b88f5e8ca65acb3c92d9802977d281295f
2024-01-28 16:07:44 +01:00
Umherirrender 15dbbe94d5 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: Ie00aedfe607665e8a38ee4ce2475f25b82a1d8cf
2024-01-05 22:37:40 +01:00
jenkins-bot 4644cc17bb Merge "tests: Declare class property in ApiQueryPageImagesProxyMock" 2023-12-31 07:24:36 +00:00
Translation updater bot cbd436b3fa Localisation updates from https://translatewiki.net.
Change-Id: I320fbf6b8ebd16763b9e449b5a570c33a199763c
2023-12-18 18:18:31 +01:00
Umherirrender 82654e0344 tests: Declare class property in ApiQueryPageImagesProxyMock
Creation of dynamic property
PageImages\Tests\ApiQueryPageImagesProxyMock::$pageSet is deprecated in
php8.2

Change-Id: I9ce28b6126638ff3b7bdca6cbc04080448aabc0c
2023-12-15 14:58:05 +01:00