Go to file
sbailey 499a1c3796 Use new linter_namespace column and index in the Linter table
* This performance improvement patch uses the namespace from the
   new field 'linter_namespace' in the linter table instead of
   the 'page_namespace' in the page table. It checks for and
   requires the presence of the linter_namespace field in the
   linter table, as well as the config variable
   'LinterUseNamaspaceColumnStage' being set true.

 * If the linter_namespace field is present and aforementioned
   config variable is true, the code assumes that the config
   variable 'LinterWriteNamespaceColumnStage' is set true and
   recording the linter_namespace for new lint errors is
   active and the migrateNamespace.php migrate code has been
   run to migrate the page_namespace data into existing linter
   records that were created before the linter_namespace column
   existed and were left NULL during the table alter maintenance
   operation.

 * A follow on patch should remove the configuration variables and
   conditional code producing the final, refactored code dependent
   on the new namespace column index.

Bug: T299612
Change-Id: I4a1497d9e4dcd6a9a7befdaccf3e34c61694365d
2023-02-24 06:54:08 -08:00
.phan Add phan 2019-03-08 22:11:29 +01:00
i18n Localisation updates from https://translatewiki.net. 2023-02-22 09:00:58 +01:00
includes Use new linter_namespace column and index in the Linter table 2023-02-24 06:54:08 -08:00
maintenance Change linter maintenance scripts to use existing config varaibles 2023-02-14 09:43:54 -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 Change linter maintenance scripts to use existing config varaibles 2023-02-14 09:43:54 -08: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 Use new linter_namespace column and index in the Linter table 2023-02-24 06:54:08 -08: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.