aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/mediawiki.Title
Commit message (Collapse)AuthorAgeFilesLines
* maintenance: Use more of namespaced Maintenance classReedy2024-10-161-0/+1
| | | | Change-Id: I53f2e32c73c92cc3a0deee48ebe6d13329a7a0cf
* Exclude boilerplate maintenance code from code coverage reportsDreamy Jazz2024-08-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Why: * Maintenance scripts in core have bolierplate code that is added before and after the class to allow directly running the maintenance script. * Running the maintenance script directly has been deprecated since 1.40, so this boilerplate code is only to support a now deprecated method of running maintenance scripts. * This code cannot also be marked as covered, due to PHPUnit not recognising code coverage for files. * Therefore, it is best to ignore this boilerplate code in code coverage reports as it cannot be marked as covered and also is for deprecated code. What: * Wrap the boilerplate code (requiring Maintenance.php and then later defining the maintenance script class and running if the maintenance script was called directly) with @codeCoverageIgnore comments. * Some files use a different boilerplate code, however, these should also be marked as ignored for coverage for the same reason that coverage is not properly reported for files. Bug: T371167 Change-Id: I32f5c6362dfb354149a48ce9c28da9a7fc494f7c
* maintenance: Begin using `Maintenance::getServiceContainer()`Derick Alangi2023-09-041-2/+1
| | | | | | | | | | | Maintenance class provides a method for getting a fresh reference of the MW services container instance. Let's make use of these in maintenance scripts now that we have it. NOTE: There are still some static methods like in refreshLinks.php that makes use of services that we can't use this method for now. Change-Id: Idba744057577896fc97c9ecf4724db27542bf01c
* generatePhpCharToUpperMappings: avoid fetching service in loopDannyS7122022-12-211-1/+2
| | | | Change-Id: Ic4d3d5c9087f03cc2042e943e0359617521b2403
* Use 0 instead of "" in phpCharToUpper.jsonFomafix2021-09-231-2/+2
| | | | | | | | Use 0 instead of "" to signal an unchanged character. 0 is only one character and "" are two characters. This reduces the uncompressed size of the JSON file by 770 byte. Change-Id: Ibb6d2d1d9af712ad73733d3179fb82751028e054
* maintenance: Remove executable bit from scripts without shebangKunal Mehta2020-07-311-0/+0
| | | | | | Spotted by Debian's lintian. Change-Id: I2ffb702eb9b23a22dd83792abce2c0a5ef8eae8a
* eslint: Update to eslint-config-wikimedia 0.16.0Ed Sanders2020-06-021-0/+2
| | | | | | | * valid-jsdoc replaced with jsdoc plugin * New /selenium config Change-Id: I471eebac0312cb25c539c3f6a3ecfc7cfd4ed8d6
* Fix a plethora of class and function call case mismatchesReedy2020-05-261-1/+1
| | | | | Bug: T231412 Change-Id: I597a25de3294a6673424f30475760280ef209a8a
* eslint: Code style fixes for upcoming config changeEd Sanders2020-05-141-2/+2
| | | | Change-Id: Ief44c0bb26c5a1c1773cab5dba51d5e856612bf7
* Avoid using deprecated $wgContLangDaimona Eaytoy2020-02-231-2/+3
| | | | | Bug: T245940 Change-Id: I2c7fc87876a381cb1f5a8944e234876a3a72e55e
* build: Update linters and fix errorsEd Sanders2019-10-231-1/+0
| | | | Change-Id: Ieb1eff174f5168bf6c9e9aaeb58ec1a1bcd33538
* Fix new phan errors, part 4Daimona Eaytoy2019-10-121-0/+1
| | | | | | | Still doc-only, this ends the easy part. Bug: T231636 Change-Id: I51f180edc57d96322b9cd46e6a32aeffcbdc3bed
* eslint: Use /server rules for maintenance scriptEd Sanders2019-10-082-2/+4
| | | | Change-Id: Ieba8c4bb2acf33e5fdd35152e193cb34fba404ac
* generatePhpCharToUpperMappings: Die if fopen failsFomafix2019-09-191-0/+3
| | | | | | This prevents additional errors in the following code. Change-Id: I27770e6ca09c495ec7b6cb588c251b4014697bfe
* mediawiki.Title: Reduce transfer size of phpCharToUpper.jsonTimo Tijhof2019-09-171-1/+7
| | | | | | | Follows-up 416895821fdb68, which increased this payload by 1-2KB. Bug: T233095 Change-Id: I90745fe1c1ad4389fef399a30966b123f7812506
* generatePhpCharToUpperMappings.php: Write output directly to json fileEd Sanders2019-05-021-4/+12
| | | | Change-Id: Ic19e5c9899f19d9b6ebf4a65a81100670514aa14
* Make generatePhpCharToUpperMappings.php a proper maintenance scriptEd Sanders2019-05-022-25/+71
| | | | | | | | This allows us to use Title for converting to upper case which will respect any compatibility fixes added later. Bug: T219279 Change-Id: I746487df12e4628f1e37b33b7cc3cce597853596
* Change 'mediawiki.Title' to use 'packageFiles'Bartosz DziewoƄski2019-03-281-6/+4
| | | | | | Seems neater. Change-Id: Ib9a64f1b2efcc224e2d6eaf306eefa9527b6a2dd
* Title: Add scripts for generating/updating phpCharToUpper.jsEd Sanders2019-03-272-0/+44
Bug: T141723 Change-Id: I8355990f06b793e889d5279bada81e6ef3c242d1