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
Translation updater bot
9759634145
Localisation updates from https://translatewiki.net .
...
Change-Id: Ifadf51c489df5c545658aae9026e2c4337024ec5
2023-12-11 10:43:42 +01:00
jenkins-bot
e5dc97bdfa
Merge "Update tests for PHPUnit 9.6"
2023-11-30 23:08:21 +00:00
jenkins-bot
04eca18ed1
Merge "Use a return type hint for PageImages::getPageImageInternal()"
2023-11-30 10:36:46 +00:00
gerritbot
e2986d0527
Update UserOptionsLookup's FQN
...
User-options related classes are being moved to the MediaWiki\User\Options namespace in MediaWiki Core; reflect that change here.
Bug: T352284
Depends-On: I9822eb1553870b876d0b8a927e4e86c27d83bd52
Change-Id: I50d14c08f9d10c5fc7aee2a3908c7ed1d9fad050
2023-11-29 12:39:39 +00:00
Daimona Eaytoy
b7a537f72a
Update tests for PHPUnit 9.6
...
- Avoid withConsecutive()
Bug: T342110
Change-Id: Ia7c60dd6789317b269d6b8641d6663c0905167e4
2023-11-27 18:20:53 +00:00
Translation updater bot
dcc784e1c2
Localisation updates from https://translatewiki.net .
...
Change-Id: I0c3380db3bfd782a2a16989d543b5fb2d536220d
2023-11-13 08:41:52 +01:00
jenkins-bot
8daec28e9e
Merge "Only take one field in fetchFieldValues"
2023-11-08 11:44:05 +00:00
Amir Sarabadani
9c24383f80
Only take one field in fetchFieldValues
...
That is causing T350726 and we already set the field in one line above
Follows-Up: I63ac37c2b73073e8e323f6627785955196cd148c
Bug: T350726
Change-Id: I9f28e326aefa206fe8f4d3f6a1038740fed9b0d4
2023-11-08 12:00:09 +01:00
Translation updater bot
5b4e396011
Localisation updates from https://translatewiki.net .
...
Change-Id: Ie539f9d30d9b940f1345a36c54420b516727e5f8
2023-11-07 09:08:24 +01:00
Amir Sarabadani
5ffaf34258
Add support for read new of pagelinks migration
...
Bug: T346457
Change-Id: I63ac37c2b73073e8e323f6627785955196cd148c
2023-11-01 18:51:38 +01:00
Translation updater bot
e9c57b5a9b
Localisation updates from https://translatewiki.net .
...
Change-Id: Iaf119318f30ea03afcdcee35c3ad9f963504ddb9
2023-10-30 17:59:40 +01:00
Fomafix
4b86859269
Use a return type hint for PageImages::getPageImageInternal()
...
Now getPageImageInternal returns null instead of false.
Fix the comment in fetchPageImage(): false means no cache.
Also add a return type hint to PageImages::factory().
Change-Id: I696f24390be530e7eea21957e0e46752d1bb3030
2023-10-21 13:06:16 +00:00
jenkins-bot
421e55b852
Merge "Inject service RepoGroup in APIPropModules"
2023-10-16 03:18:32 +00:00
jenkins-bot
abfaa34709
Merge "Replace deprecated global function wfGetDB()"
2023-10-16 03:06:07 +00:00
jenkins-bot
053957162a
Merge "Inject service RepoGroup in PageImages"
2023-10-16 03:06:06 +00:00
jenkins-bot
df9b7a9c92
Merge "Convert PageImages::fetchPageImage to a nonstatic method"
2023-10-16 03:05:22 +00:00
Fomafix
21fdd8a9db
Inject service RepoGroup in APIPropModules
...
Change-Id: Ifa1334391af08f09908a92f0a9b7774eda58c399
2023-10-15 20:17:05 +00:00
Fomafix
318407932c
Replace deprecated global function wfGetDB()
...
Bug: T330641
Change-Id: If0427da7a6d2de9d1ec00bf1ff7e5b8a495617e9
2023-10-15 18:50:46 +00:00
Fomafix
029af825a9
Inject service RepoGroup in PageImages
...
Change-Id: I91d12fe25fbd6ee952d635cd24b5047be8790c80
2023-10-15 18:33:00 +00:00
Fomafix
1f95b141a6
Convert PageImages::fetchPageImage to a nonstatic method
...
The public static function PageImages::getPageImage must stay unchanged
because this function is called by other extensions.
Change-Id: I73f7253581ebc894ef6dcd41bd4713f7d9f53421
2023-10-15 18:21:40 +00:00
Fomafix
efa6c4f0ce
Inject services on JobClasses
...
Change-Id: Ic0e965dca31b41ab76e59a3d2672069464418de8
2023-10-15 13:52:13 +00:00
Fomafix
627a4bf0ef
Use $this->getServiceContainer() in maintenance
...
Change-Id: I3a3c490d67851bfa40f5def03a5e30752db1454b
2023-10-15 11:53:38 +00:00
Umherirrender
09d47340eb
Use the expression assignment operator to simplify code
...
Suggested by phan, available since php7.4
Change-Id: Iadee84c7b62f9aeac31ade702bc33764d35ef9c8
2023-10-14 00:55:37 +02:00
Translation updater bot
5dd3212097
Localisation updates from https://translatewiki.net .
...
Change-Id: I5e54affa2b9800302e424deaae27650568bbe680
2023-09-18 08:44:23 +02:00
Translation updater bot
f6a0e4a403
Localisation updates from https://translatewiki.net .
...
Change-Id: Icd2ab5df5d76532b2ce3c07951c106f00a8ff63a
2023-09-14 09:30:26 +02:00
Translation updater bot
fbc194fe27
Localisation updates from https://translatewiki.net .
...
Change-Id: I9e5192031e94e34038f73180df147ac9d8790039
2023-09-11 09:04:38 +02:00
jenkins-bot
6dfd784637
Merge "build: Update MediaWiki requirement to 1.41"
2023-08-24 03:33:41 +00:00
jenkins-bot
19f91063fb
Merge "build: Update MediaWiki requirement to 1.41"
2023-08-24 03:31:29 +00:00
jenkins-bot
aef7d17348
Merge "Use namespaced MediaWiki\Request\FauxRequest"
2023-08-20 01:07:09 +00:00
Umherirrender
b8dd616a03
Use namespaced MediaWiki\Request\FauxRequest
...
Bug: T321681
Change-Id: I9c6b8bfc935a47c62c3e106a1bf4532ef4d12134
2023-08-20 01:54:45 +02:00
Umherirrender
ec4d1bed4d
Use namespaced MediaWiki\Page\PageProps
...
Bug: T321681
Change-Id: I5298c09e2869a21e6616cb6e8917da51177c7987
2023-08-20 01:21:38 +02:00
Umherirrender
0f44aa4b05
Use namespaced Title
...
Bug: T321681
Change-Id: Id8e166fd8a54ee84500a67d8729ca6562f003be5
2023-08-19 20:18:00 +02:00
James D. Forrester
1a8a759d4e
build: Update MediaWiki requirement to 1.41
...
All extensions in the MediaWiki tarball are expected to track MediaWiki's release directly.
Change-Id: I43f3097112be450202cdaf7326daeae388e16e6d
2023-08-19 13:58:01 +08:00