Commit graph

460 commits

Author SHA1 Message Date
Translation updater bot 87dc3cb2db Localisation updates from https://translatewiki.net.
Change-Id: Id0105a7cd141aa54cb991fe44382feac3339bbdb
2023-08-14 09:18:44 +02:00
Translation updater bot 2978dbe8b4 Localisation updates from https://translatewiki.net.
Change-Id: I12f0ee07f8b15f40542411761e3e881f54278a9f
2023-08-10 09:42:13 +02:00
Translation updater bot 805d532275 Localisation updates from https://translatewiki.net.
Change-Id: Ic52779b5494cbfbe40b6aad65e3adefc2ae0b273
2023-08-09 09:15:52 +02:00
jenkins-bot d5b4aa677a Merge "Use ExpirationAwareness instead of deprecated IExpiringStore" 2023-08-08 20:15:14 +00:00
Translation updater bot fa161f74f1 Localisation updates from https://translatewiki.net.
Change-Id: I75821bd16fc25ce080cd1fb23381b28adc91280a
2023-08-08 09:01:42 +02:00
Translation updater bot 248ef5f2e2 Localisation updates from https://translatewiki.net.
Change-Id: I2497b3e8812f619d3d6c52e3391387e56e33bc37
2023-08-07 08:39:55 +02:00
Derick Alangi 627f65ebff
Use ExpirationAwareness instead of deprecated IExpiringStore
IExpiringStore has been deprecated since 1.35 and we can either
use the ExpirationAwareness or StorageAwareness constants where
necessary.

Change-Id: Ida557b3180eb5e7ebae46968142b4f154f26ffbc
2023-08-06 22:30:33 +01:00
Umherirrender cd565f856a i18n: Split apihelp for parameter prop=extracts&exsectionformat=
Easier to translate
There is no visible change on Special:ApiHelp/query+extracts

Bug: T285545
Change-Id: Ide7650148ea3bbf9fa85fb052090f3b13f1b42c5
2023-08-05 02:30:49 +02:00
Translation updater bot fc4f063fc1 Localisation updates from https://translatewiki.net.
Change-Id: I96b0633e1c922a58a750adcd5f49c9ab5cdecc5d
2023-06-26 12:41:07 +02:00
Umherirrender 8af1ee45ec api: Remove old apihelp i18n description messages
No longer used since 1.33

Automatically removed message keys with "doc-apihelp-description" in qqq

Bug: T340253
Change-Id: I381bbebcaa7563b046cfbfdbd8985c99bc07ef97
2023-06-24 00:24:02 +02:00
libraryupgrader ad0543fb65 build: Updating grunt-banana-checker to 0.11.0
Change-Id: I44a8cef927ce66251bfaa90067bcb22178ce47e2
2023-06-02 03:59:11 +00:00
Umherirrender b9f9e827be tests: Make PHPUnit data providers static
Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: Ifea9699646a5831471f4d536d0074d9976e1ac42
2023-05-20 14:13:35 +02:00
gerritbot bdd77c5c06 Update moved class FauxRequest
See T321882. Moved in I832b133aaf61ee

Bug: T321681
Change-Id: I6ce2acc3961db1b9663efd62ebdcf57c905caaf0
2023-05-19 10:25:20 +00:00
libraryupgrader 67f27e7dbc build: Updating eslint-config-wikimedia to 0.25.0
Change-Id: I876de877b79934e454013d8760750586933ff34e
2023-05-05 18:09:27 +00:00
libraryupgrader 7815bc6530 build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.0 → 0.12.1

npm:
* grunt-eslint: 24.0.0 → 24.0.1

Change-Id: Icfff05cd76042e6aa33d1bb11a07e6b97bd6b263
2023-04-29 12:35:17 +00:00
jenkins-bot 74baaa7ce1 Merge "Skip <h2> in TOC when extracting first section" 2023-03-20 09:23:31 +00:00
Thiemo Kreuz 60e1c5ad83 Skip <h2> in TOC when extracting first section
This piece of code is only relevant in case when:
- the intro section is requested (either in plaintext or html);
- the parse result for the full page is available in the parser cache;
- the full extract is not available in the TextExtracts WAN cache;
- the intro is also not available in the TextExtracts WAN cache.

In this case getFirstSection() is called with the parser output,
which is different from the the convertText() output it is called
with in other code paths, and still contains <h*> tags. A quick
regex is used to extract the first section. This stops at any <h2>.
A TOC also contains a <h2> (which will be removed later via
$wgExtractsRemoveClasses). This one needs to be ignored in case
the TOC is placed before the first section using e.g. the __TOC__
keyword.

The patch changes the regex so it ignores a h2 with
id="mw-toc-heading", but keeps working in plaintext mode when <h*>
tags are not present  (the code path when the intro section is
requested, and the full extract is available in the TextExtracts
WAN cache but the intro extract isn't).

Bug: T269967
Change-Id: I0a495d06cf1725744e556e81f17047fb53f53521
2023-03-20 07:40:07 +00:00
libraryupgrader 2a5abdb2d0 build: Updating npm dependencies
* eslint-config-wikimedia: 0.22.1 → 0.24.0
* grunt: 1.5.3 → 1.6.1

Change-Id: I2a41cf3d1d5f0c30240474a3d513a3170c0b7656
2023-03-16 08:34:25 +00:00
libraryupgrader 15667b2c37 build: Updating mediawiki/mediawiki-codesniffer to 41.0.0
Change-Id: I3129f0ec6c8227d7d988ba12b40fe6fe91634d3b
2023-03-12 12:00:05 +00:00
Translation updater bot 2054e8fa8a Localisation updates from https://translatewiki.net.
Change-Id: I1f33596f31be4aac2ded317d5b8758ac1c1b2ed8
2023-01-26 08:52:47 +01:00
Translation updater bot 50f37c89f8 Localisation updates from https://translatewiki.net.
Change-Id: I22d7e00f4d2ce1e834e041126dc5a06a6a60fadc
2023-01-23 08:24:14 +01:00
Translation updater bot 6a92afb6f4 Localisation updates from https://translatewiki.net.
Change-Id: I49d4a7b5f0efa410cf3e09d9bb915a181eb21b82
2023-01-18 08:30:38 +01:00
Translation updater bot 79756fd3ff Localisation updates from https://translatewiki.net.
Change-Id: Id01f9d86fa7d41e4fa73ae87f44154f0276ad2ad
2022-12-21 09:18:13 +01:00
libraryupgrader 88ce28f124 build: Updating mediawiki/mediawiki-codesniffer to 40.0.1
Change-Id: I6a046a4d8515292968a512b581559071203c0a5d
2022-11-16 23:38:45 +00:00
Translation updater bot 95a50762da Localisation updates from https://translatewiki.net.
Change-Id: I26a781021cc793f6a2ce47d71ffdad90a8fdffcd
2022-11-15 08:24:42 +01:00
Translation updater bot 1afce6dcd9 Localisation updates from https://translatewiki.net.
Change-Id: If9b0ecff525df6dc4b818185ada4620e4c9d0fcc
2022-11-14 08:11:19 +01:00
Reedy 0171e10a04 ApiQueryExtractsTest: Fix string interpolation
Bug: T314096
Change-Id: I8fb67f318c2f4b30dd2ad05a5e1d035017e0b022
2022-11-04 17:06:23 -06:00
libraryupgrader dd58209de9 build: Updating minimatch to 3.0.8
* https://github.com/advisories/GHSA-f8q6-p94x-37v3

Change-Id: Id3765e6ceef16d96e833133993c44ee5099dd802
2022-10-21 20:30:29 +00:00
libraryupgrader 78e12b4715 build: Updating mediawiki/mediawiki-phan-config to 0.12.0
Change-Id: I0fd75af83db1bab69b9387c523b46d8a425a7b18
2022-10-09 11:14:34 +00:00
libraryupgrader 7cacab45c4 build: Updating grunt-banana-checker to 0.10.0
Change-Id: I66206308ff9775dfc811c818406f907959538e5b
2022-10-07 07:30:49 +00:00
Brian Wolff c77adce065 Tests: Use more complete mock to prevent php8.1 deprecated warnings
Fixes:

1) TextExtracts\Test\ApiQueryExtractsTest::testMemCacheHelpers
strtr(): Passing null to parameter #1 ($string) of type string is deprecated

Change-Id: Id39cb89bb5d49fbea543181da678b191f70311ac
2022-10-03 10:39:48 -07:00
Translation updater bot 1ce6d8861a Localisation updates from https://translatewiki.net.
Change-Id: I124f67cc48b6f8c2f6384e37379266d87fd64af5
2022-09-28 08:22:59 +02:00
Arlo Breault d67f9a73d5 Remove figures from text extracts
Bug: T318727
Change-Id: I304d4b794a0f27eb78ef013f911c444fc9a80cf1
2022-09-27 13:13:24 -04:00
libraryupgrader bbf63a420c build: Updating grunt to 1.5.3
Change-Id: I52ac0cd83467df8dfb7315486920d7b61f73bb86
2022-05-27 02:19:15 +00:00
libraryupgrader ea9b4dda26 build: Updating dependencies
composer:
* mediawiki/mediawiki-codesniffer: 38.0.0 → 39.0.0
* mediawiki/mediawiki-phan-config: 0.11.0 → 0.11.1
* php-parallel-lint/php-console-highlighter: 0.5.0 → 1.0.0
* php-parallel-lint/php-parallel-lint: 1.3.1 → 1.3.2

npm:
* eslint-config-wikimedia: 0.20.0 → 0.22.1
* grunt: 1.4.0 → 1.5.2
* grunt-eslint: 23.0.0 → 24.0.0
* async: 3.2.0 → 3.2.3
  * https://github.com/advisories/GHSA-fwr7-v2mv-hh25

Additional changes:
* Set `name` in package.json.

Change-Id: Ic09880e15b491177b8563d8cc0826f61596c20aa
2022-05-21 15:34:39 +00:00
jenkins-bot 5309ab92bd Merge "Use ParserOptions::newFromAnon instead of constructor" 2022-01-21 07:46:28 +00:00
Translation updater bot 5fe60a2f1d Localisation updates from https://translatewiki.net.
Change-Id: I122a1f38a75a0d89f21d960dd915d1e9793295b0
2022-01-17 08:13:07 +01:00
Umherirrender 35f096417f Use ParserOptions::newFromAnon instead of constructor
This avoids the user language to take effect on the parse,
it reflects more the anon part than just "new User()"

Change-Id: Ic6a4a81074a16b85ac2f1c7952f27a03a0c76dec
2021-12-18 20:01:03 +01:00
Alexander Vorwerk abcb71cabb ApiQueryExtracts: inject WikiPageFactory
Bug: T297688
Change-Id: I8faa8a14efcd6cb6b247301aa4da0c1abac7c97b
2021-12-14 23:05:40 +01:00
Translation updater bot b7cb0703d9 Localisation updates from https://translatewiki.net.
Change-Id: Ia20380c55257f8b741c3b6d67bf7b1f5c9e5b200
2021-11-30 08:22:20 +01:00
jenkins-bot 91afe58671 Merge "Replace use of deprecated MWTidy class" 2021-10-26 04:53:31 +00:00
libraryupgrader af581177ff build: Updating mediawiki/mediawiki-codesniffer to 38.0.0
Change-Id: I47fa2532c98e91e39443b93a6c789fad39ceb157
2021-10-24 14:22:47 +00:00
Reedy 20c3f6d447 Replace use of deprecated MWTidy class
Bump required MW to >= 1.36.0

Change-Id: Ida40e6c1d84eec0e51e53f6aa98ac9f09fd52666
2021-10-20 19:33:39 +01:00
Translation updater bot 2c48350cfd Localisation updates from https://translatewiki.net.
Change-Id: I7613c2b26c92695c7f4b31322c43f653c48e5276
2021-10-18 15:21:28 +02:00
Alexander Vorwerk d70db0f0a7 MediaWikiTestCase -> MediaWikiIntegrationTestCase
MediaWikiTestCase has been renamed to MediaWikiIntegrationTestCase in 1.34.

Bug: T293043
Change-Id: I055adc107c175da9a0a8de276762bb2b323358e9
2021-10-13 12:28:17 +02:00
libraryupgrader 0953f8e59c build: Updating ansi-regex to 5.0.1
* https://npmjs.com/advisories/1002401 (CVE-2021-3807)

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

Change-Id: Ib73a89dddf7525ccc93a283060ca7a4f534b9c9e
2021-10-09 00:22:01 +00:00
libraryupgrader 76106bd3f8 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: I1be1bee1d646a6cfd817998180822d8f33f5e455
2021-09-09 08:14:35 +00:00
libraryupgrader ab0c160204 build: Updating path-parse to 1.0.7
* https://npmjs.com/advisories/1773 (CVE-2021-23343)

Change-Id: I52ab81d03522ec5fc55b6b525b5a9fea4efa0a25
2021-08-12 11:55:03 +00:00
libraryupgrader 37310fce61 build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
Change-Id: Iea7773b213edc953b4d841c6f1404429bb61457b
2021-07-24 02:43:21 +00:00
Translation updater bot 2d57320c97 Localisation updates from https://translatewiki.net.
Change-Id: Ia624ff848d544a9684082cd48b12266911f164f2
2021-07-06 08:38:52 +02:00