Go to file
sbailey 2768a70218 Fix migrate data error when params has excessively long strings
* The linter migrate code for linter_tag field and linter_template
   field are constrained by the database schema to 32 characters
   for the tag field and 255 characters for the template field.
   In some anomalous circumstances parsoid can report tag and or
   template fields in the linter_params object that exceed those
   character limits. This code truncates these excessively long
   strings to protect the database migrate update code from a
   length exceeded error.

Bug: T329113
Change-Id: I8af7c44759f172eae77d3519a6eac47110e9b1e7
2023-02-09 18:20:46 +00:00
.phan Add phan 2019-03-08 22:11:29 +01:00
i18n Localisation updates from https://translatewiki.net. 2023-02-06 08:45:24 +01:00
includes Fix migrate data error when params has excessively long strings 2023-02-09 18:20:46 +00:00
maintenance maintenance script for linter extension tag and template migration 2022-12-09 12:02:10 -08:00
modules Handle VisualEditor when it skips the "tempWikitextEditor" stage 2019-06-11 17:29:29 +02:00
sql Fix linter table linter_params definition to not be nullable 2023-01-26 12:47:36 -08:00
tests/phpunit Fix migrate data error when params has excessively long strings 2023-02-09 18:20:46 +00:00
.eslintrc.json build: Updating eslint-config-wikimedia to 0.19.0 2021-03-14 00:44:51 +00:00
.gitignore build: Upgrade eslint-config-wikimedia from 0.10.1 to 0.11.0 2019-04-03 16:06:08 -07:00
.gitreview Whoops, track not trace 2016-10-24 17:02:51 -07:00
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 40.0.1 2022-11-16 08:54:23 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-17 07:39:01 +00:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 40.0.1 2022-11-16 08:54:23 +00:00
COPYING Initial commit 2016-10-17 16:02:53 -07:00
extension.json Replace deprecated HTMLForm::addHeaderText 2022-12-27 12:48:42 +01:00
Gruntfile.js build: Updating dependencies 2021-01-30 03:48:34 +00:00
Linter.alias.php Translate special page name (LintErrors) into Polish 2023-02-07 01:44:25 +00:00
package-lock.json build: Updating minimatch to 3.0.8 2022-10-21 07:25:18 +00:00
package.json build: Updating grunt-banana-checker to 0.10.0 2022-10-06 07:28:20 +00:00
README Initial commit 2016-10-17 16:02:53 -07:00

Extension to help lint wiki pages. Currently designed to take advantage
of Parsoid's linter, could also be extended to linting JS or CSS in the
future.