Commit graph

715 commits

Author SHA1 Message Date
Umherirrender c3cfe99103 Replace deprecated JobQueueGroup::singleton()
Change-Id: I5b5f907c6f54874fc41e51fc6f4bd02bd2151845
2022-01-21 17:21:19 +00:00
jenkins-bot 03ef33639c Merge "Convert timestamps for database in InitImageData maintenance script" 2022-01-21 08:11:27 +00:00
Translation updater bot a6879fd872 Localisation updates from https://translatewiki.net.
Change-Id: I2114ca4e4dd83ce221f9de00a444f3ecec15f116
2022-01-17 08:12:43 +01:00
Tim Starling 372b5938f5 Strip comments from indicators
They are documented as being HTML, so look for candidate comments and
strip them, same as we do for the main HTML.

Bug: T298930
Change-Id: I7caf96b8d15f887e0be4c9a24acfd981b3e7a776
2022-01-11 15:36:10 +11:00
Bartosz Dziewoński 035938e76c Disable parser HTML changes during parser tests, they cause failures
Bug: T298930
Change-Id: If143365ba89eb894250b34fd9f1c603595e19fca
2022-01-11 00:26:53 +00:00
Umherirrender 33ed67ced6 Convert timestamps for database in InitImageData maintenance script
For better cross RDBMS support

Change-Id: Ie56fba354446ed17a1302f686b8b3929ea55f600
2022-01-07 21:26:17 +01:00
Tim Starling 768464d0f9 Identify lead images using a new parser hook instead of during LinksUpdate
I added ParserModifyImageHTML to core to make it easier for PageImages
to identify images in the lead section.

This also allows PageImages to stop writing to LinksUpdate properties.
It is one of only two extensions that do that.

Depends-On: I24528381e8d24ca8d138bceadb9397c83fd31356
Bug: T176520
Bug: T296895
Change-Id: I472f4a023969bfde6298eb56112c16d2ae842199
2022-01-04 14:19:32 +11:00
Translation updater bot 2793356c59 Localisation updates from https://translatewiki.net.
Change-Id: I72f624f7ac8a43fd8effe1684411ba710ee54422
2021-12-09 08:22:43 +01:00
Roman Stolar 19729997d5 Avoid using User::getOption
Remove using of User:getOption since this method will be hard-deprecated. Now it is soft-deprecated

Bug: T296083
Change-Id: Ia6c2fb8a4510cc55e424fc23816e71b2b93732b4
2021-11-25 13:04:14 +02:00
Umherirrender 23c44e9f7d doc: Cleanup @param documentation
No extra sign needed between variable and description

Change-Id: I6cf199a7e3e295d45bf95981166a23119afb41ac
2021-11-04 22:19:59 +01:00
Translation updater bot d8fd89f32b Localisation updates from https://translatewiki.net.
Change-Id: I713dd3b2db5a1ccfa28268da67a7380b1f8603cf
2021-11-03 08:21:01 +01:00
jenkins-bot 5396ef9f94 Merge "Fix typo in PageImagesScores description" 2021-10-29 19:52:39 +00:00
Simon Legner d3f9a011fd Output multiple og:image with widths 1200/800/640
Multiple images are supported according to https://ogp.me/#array.
Facebook suggest an image with at least 1080px.
WhatsApp ignores images >300px.

Bug: T282065
Change-Id: Ibc18df03fbd6f4ec9f4970331e1b5bf930710816
2021-10-26 13:12:22 +02:00
Simon Legner 6220277055 Fix typo in PageImagesScores description
Change-Id: Ica4ae8963f8b21b016ca96c4454c4e88fd353e30
2021-10-26 12:42:46 +02:00
libraryupgrader b28c4b85b8 build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: Iee514d0b79423ab4cdc4c1456efc6a610b1afb8a
2021-10-24 09:12:58 +00:00
Roman Stolar 6b4da12fd6 Replace deprecated Content::getParserOutput call to new one ContentRenderer::getParserOutput
Bug: T287158
Change-Id: Ia537b3a496e48237d427ad61a6db6268f63c769e
2021-10-21 18:19:03 +03:00
Translation updater bot 0f202c660c Localisation updates from https://translatewiki.net.
Change-Id: Ica229f415312bdee721200c4a0bd4b7459a5561e
2021-10-21 08:22:22 +02:00
Translation updater bot 0fc15a4766 Localisation updates from https://translatewiki.net.
Change-Id: Ic257b1da714edd882ce3f55fca2ac45bc87bbe7e
2021-10-18 15:20:55 +02:00
Alexander Vorwerk 7b03392757 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I5a60221692f3538dd96651493fc8d392aaabdf85
2021-10-12 00:57:52 +02:00
libraryupgrader 4bd959f764 build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/5197 (CVE-2021-3807)

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: I6456a6915fe5bcb9a8e91dc278bef36d826886f8
2021-10-05 05:18:50 +00:00
Alexander Vorwerk 73371eb33e Replace usage of deprecated PageProps::getInstance()
Bug: T289544
Change-Id: Ie30d3d2339ebf110a9827c3fa5cd604928abfd38
2021-09-26 14:40:10 +02:00
Kunal Mehta 7e13212a7c Check $thumb->isError() before trying to use it
$thumb might be an instance of MediaTransformError, which as the name
implies, is not really usable as a thumbnail and should be skipped
instead.

Bug: T290973
Change-Id: Ie818bd295bfe06c7c0dc0a2ea7dd273c7e0e416f
2021-09-14 09:56:05 -07:00
libraryupgrader b68714a834 build: Updating composer dependencies
* mediawiki/mediawiki-phan-config: 0.10.6 → 0.11.0
* php-parallel-lint/php-parallel-lint: 1.3.0 → 1.3.1

Change-Id: I110b84b570efa0619939dc3aca1a538059adec1d
2021-09-09 04:44:33 +00:00
libraryupgrader a31e92af16 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I743c198ef449287b2ed1a5a2099607d3a43277aa
2021-08-12 06:04:19 +00:00
Translation updater bot a0649780e9 Localisation updates from https://translatewiki.net.
Change-Id: I9e540b3134fb7f1026f9f1b5f684cdac9c733956
2021-08-05 08:22:21 +02:00
jenkins-bot f908355d17 Merge "Add a configuration to provide the fallback of og:image" 2021-07-28 16:03:39 +00:00
libraryupgrader 2f4755e065 build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
Change-Id: I314da8a48195e98aed3605f18e9d0eab516ba026
2021-07-23 05:46:22 +00:00
Translation updater bot 825116f6b2 Localisation updates from https://translatewiki.net.
Change-Id: Id16046a35cb80c83701bb0a093796314dd7c57fc
2021-07-15 08:12:27 +02:00
lens0021 d526653e3a
Add a configuration to provide the fallback of og:image
Makes the fallback image be used when there is no image on a page.

Bug: T256935
Change-Id: I0bc4d55b20cc37edf46cb984a9a68617e2b4a89f
2021-06-18 12:16:36 +09:00
Translation updater bot 742d4fb877 Localisation updates from https://translatewiki.net.
Change-Id: I92506d481bc341a3f0aaf9895148dffaeee0ee2a
2021-05-27 12:05:56 +02:00
libraryupgrader 7d54504f63 build: Updating browserslist to 4.16.6
* https://npmjs.com/advisories/1747 (CVE-2021-23364)

Change-Id: I28e67a7868a9904de2b1c74c71f7b7bff6fcc359
2021-05-26 00:24:10 +00:00
Translation updater bot 3a44c3610d Localisation updates from https://translatewiki.net.
Change-Id: I35da7d95fef5bec47471727c0fe6efccbd9052ce
2021-05-19 08:43:42 +02:00
Petr Pchelko a0d2696e69 Remove leftover SearchResultPageIdentity typehints
Change-Id: I7a1dfc26d0985e645c785297c849e4c2854c034b
2021-05-14 19:21:16 -07:00
jenkins-bot 5bad40f6f8 Merge "Use PageIdentityValue instead of SearchResultPageIdentityValue." 2021-05-13 20:35:15 +00:00
libraryupgrader 668d044574 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0
* php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0

npm:
* grunt: 1.3.0 → 1.4.0
* lodash: 4.17.19 → 4.17.21
  * https://npmjs.com/advisories/1673 (CVE-2021-23337)

Change-Id: I6797ecfc38973777657d1d4611363595b23e4afd
2021-05-12 19:05:01 +00:00
Translation updater bot c6fd5dd8a4 Localisation updates from https://translatewiki.net.
Change-Id: Ic3a3439b84171e4325c72d1fe306047bc1532838
2021-05-12 09:22:43 +02:00
daniel ccedc7a921 Use PageIdentityValue instead of SearchResultPageIdentityValue.
Depends-On: I6eb55c78a0a72be66814f8bc854ba663e7c6f62b
Change-Id: Idc20c479defe5ce377046172a639c89d6fc4e8f6
2021-05-12 01:01:12 +00:00
jenkins-bot 738e91e19c Merge "Pass wikiId to constructor of SearchResultPageIdentityValue." 2021-05-12 00:44:36 +00:00
daniel 985dfba509 Pass wikiId to constructor of SearchResultPageIdentityValue.
SearchResultPageIdentityValue will become an alias for
PageIdentityValue, which requires the forth parameter.

Needed-By: I6eb55c78a0a72be66814f8bc854ba663e7c6f62b
Change-Id: I9b1ab02e0acf12ace107361ea2c443aa543c4880
2021-05-10 16:09:12 +02:00
Clare Ming 4bb7aface9 Address voice and tone issues.
Replace instances of "blacklist" with "denylist" throughout extension.

Bug: T277955
Depends-On: Ib4985ec2fcb22eafad8f3a7cf9fc3161782a71db
Change-Id: Ibe460cb9691d56a9e83686b53c7629b5404af6fb
2021-05-07 20:39:38 +00:00
jenkins-bot 2a963b67ff Merge "Update PHPDocs and use PHP7 features where possible" 2021-05-04 18:31:58 +00:00
DannyS712 273dfc5cee ApiQueryPageImagesTest: fix parameter order in assertions
Expected first, then actual

Change-Id: I13849d517a5c018133fb2111cd0d19c965dc3735
2021-05-04 16:44:00 +00:00
Thiemo Kreuz d8eceed585 Update PHPDocs and use PHP7 features where possible
Change-Id: I417ad041e268b88512de435c59695cb4338331cc
2021-05-04 16:51:18 +02:00
Thiemo Kreuz c386aa5328 Remove unnecessary boilerplate from PHPUnit test setups
* any() doesn't do anything. It's the default anyway.
* Prefer the more strict assertSame() where possible.
* Use shortcuts like createMock() where possible.

Change-Id: Iff33f111312448e9fc8ff827e2ef9eb2b583ff6f
2021-05-04 16:50:15 +02:00
Translation updater bot 0feece7a29 Localisation updates from https://translatewiki.net.
Change-Id: I60e5e910cab1bd78b2fc3c7be7a4510f3eb497d4
2021-05-04 08:52:42 +02:00
libraryupgrader 3bb61ff0d6 build: Updating eslint-config-wikimedia to 0.20.0
Change-Id: Iabcdc5b4259a2ff09305ebdadf555bd5039a6be3
2021-04-13 20:40:52 +00:00
Umherirrender de2ea3885e Use ::class for class name
Change-Id: I97d470bf535c3141e0443ef0aaf8784b02dd4240
2021-04-08 21:15:01 +02:00
Reedy 36d64ba6d6 Test cleanup
Change-Id: Id0eab4d331fd178c69fe29efd3d7fd10c6503eaf
2021-03-20 05:22:04 +00:00
libraryupgrader bdc669f93e build: Updating eslint-config-wikimedia to 0.19.0
Change-Id: If79239336be6ee46e0573a927e3cbacf9b912a6f
2021-03-14 05:27:07 +00:00
libraryupgrader b3c4adb93d build: Updating eslint-config-wikimedia to 0.18.2
Change-Id: Ic2c5066e5110212de076d3af2cc0382560ab77ff
2021-03-07 12:04:37 +00:00