Commit graph

691 commits

Author SHA1 Message Date
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
Umherirrender d1d7cfef0b Remove pre-1.35 code
Version was increased with I2f5251aa2f8298fd11096b27eea3e5ccf71f2103

Change-Id: I8df702f3ee7751a280b9821e0624ddcb1ce5b185
2021-03-06 18:26:23 +01:00
Translation updater bot ae2ad6da3a Localisation updates from https://translatewiki.net.
Change-Id: Ib1d13b0d5ed2c9d14b19c61a23f384b0fc7d1cae
2021-02-15 10:06:04 +01:00
Translation updater bot d39d07a667 Localisation updates from https://translatewiki.net.
Change-Id: I3df5c678dc6cbfba2a0c4d0ea0e09b5fbe845e36
2021-02-08 08:43:22 +01:00
libraryupgrader 1ce3592d89 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1

npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1

Additional changes:
* Added the "composer phan" command to conveniently run phan.

Change-Id: I337c9ae59ddd0324b6b48a1bbdee4366ff67d199
2021-01-30 06:58:49 +00:00
Umherirrender fa781357b5 Remove uneeded @return
Change-Id: I3813de58f8314938b7c3a193faa21b45b15f1dcf
2021-01-27 20:02:49 +01:00
Umherirrender f9fb414b22 Add missing @param to test
Change-Id: Ibb7db4ac089e0d639540dfc96d1f6339b1bda9e0
2021-01-23 16:18:08 +01:00
libraryupgrader 79edb98f16 build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: I1f46f1f3f99b0c34cf9aea8bc8ee617b4516aaa4
2020-12-19 23:43:06 +00:00
libraryupgrader adffd80fdc build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.10.4 → 0.10.5

npm:
* ini: 1.3.5 → 1.3.7
  * https://npmjs.com/advisories/1589

Change-Id: Ic7a816b48c865246fea0a23d72fb5b8f53ff119f
2020-12-11 01:17:12 +00:00
Translation updater bot 9fa92c53d8 Localisation updates from https://translatewiki.net.
Change-Id: I31684067ad6a65534d28e93f37f309a18d47cd14
2020-12-10 08:35:24 +01:00
libraryupgrader 360a9d1957 build: Updating mediawiki/mediawiki-codesniffer to 34.0.0
Change-Id: Ia78093c89637c275b80562506dd3bbf17adaf95f
2020-12-06 20:47:00 +00:00
libraryupgrader 3dc4467403 build: Updating mediawiki/mediawiki-phan-config to 0.10.4
Change-Id: I27a76cf62e5dc616a31a3adee023d70b61069100
2020-11-20 11:09:54 +00:00
Translation updater bot 42fca6ae62 Localisation updates from https://translatewiki.net.
Change-Id: Id933bd9156ff29dde8d300e9d196ca9bcb56145f
2020-11-18 08:56:42 +01:00
Translation updater bot 4671a22a7c Localisation updates from https://translatewiki.net.
Change-Id: I1caff3b3752bad79fef8dacaff51c2fa029233bb
2020-11-06 08:34:19 +01:00
libraryupgrader 68e12a83c9 build: Updating mediawiki/mediawiki-codesniffer to 33.0.0
Additional changes:
* Dropped .inc files from .phpcs.xml (T200956).
* Added the `wikimedia/mediawiki` profile in .eslintrc.json (T262222).

Change-Id: I0c7faa3794fae5ed0d4da5a58a9342177a9a5add
2020-11-04 06:46:28 +00:00
Petr Pchelko 6fa0a18037 Stop writing objects into ParserOutput::setExtensionData.
As we switch ParserCache to JSON, we can no longer serialized
class instances in extension data. PageImages was writing the
full set of properies it received from Parser into it's extension
data, some of which are sometimes class instances. Instead, only
write the nessessary subset of data into extension-data.

This change is completely forward and backward compatible.
Since before this change we were already writing the same array,
but with many additional unused properties.

Bug: T266251
Change-Id: Ieb4a139465159611e6b3a99c4b68c3c174b1944f
2020-10-26 13:35:38 -07:00
libraryupgrader 103d1ef682 build: Updating mediawiki/mediawiki-phan-config to 0.10.3
Additional changes:
* Dropped .php5 files from .phpcs.xml (T200956).

Change-Id: I97f5cd7f046bd084b5f48d2c9adc2353ffe006e3
2020-09-25 06:55:59 +00:00
Translation updater bot 0a92d24caa Localisation updates from https://translatewiki.net.
Change-Id: Ia4af6182d8fc832aa4e32b0fc4e61e28ecc24cc1
2020-09-16 09:09:09 +02:00
Translation updater bot 5de5848f08 Localisation updates from https://translatewiki.net.
Change-Id: If1b89dd77ab8c26db6158d65b201356125708a61
2020-09-14 09:15:50 +02:00
libraryupgrader abb8fab04c build: Updating npm dependencies
* eslint-config-wikimedia: 0.16.2 → 0.17.0
* grunt: 1.2.1 → 1.3.0

Change-Id: Idbc2c81944993c655ab5a2fbc682c065a124e1db
2020-09-04 09:18:58 +00:00
Translation updater bot b197eba49b Localisation updates from https://translatewiki.net.
Change-Id: I5df6e55102a00774e1f1a8039bc8981f07b84a8e
2020-08-28 10:24:00 +02:00
Translation updater bot bd4c71d4c9 Localisation updates from https://translatewiki.net.
Change-Id: I165ec78cbd7edb8a40e2ef7eb82ed655644239cb
2020-08-27 09:52:19 +02:00
Translation updater bot 24b3584793 Localisation updates from https://translatewiki.net.
Change-Id: I9ea0454c9c4554401eba451e2dfdbce44f8400e7
2020-08-26 09:51:18 +02:00
Translation updater bot 5b38a834b7 Localisation updates from https://translatewiki.net.
Change-Id: Idaf3c991f95de48ca444930214bdfe7434391e96
2020-08-24 11:58:54 +02:00
Translation updater bot 2d4a242698 Localisation updates from https://translatewiki.net.
Change-Id: Icea2c72f59523e12ce4e9704d4b06c17c2acd51c
2020-08-21 08:41:28 +02:00