Go to file
Tim Starling c1a928c7ec Fix index usage when searching for page titles
When searching for a specific page title, it's necessary to specify
page_namespace, not just linter_namespace, so that the relevant index in
the page table can be used.

Submitting the form with an empty namespace box led to a search for
namespace zero, because getCheck() returns true for an empty string.
It's not easy to search for a title part in all namespaces. So drop
that hidden feature and interpret a title part with a missing namespace
as being a search for namespace 0.

It's possible to search for a category with an empty title and zero or
more namespaces. Implement the namespace filter in this case using the
linter_namespace field. But ignore the namespace filter if there is no
category, since there is no index on linter_namespace alone.

Bug: T360865
Change-Id: I00934eaaf1a99e4098f177166b43069d33d9f137
(cherry picked from commit 4dd75df2e8)
2024-03-27 22:46:57 +00:00
.phan Add phan 2019-03-08 22:11:29 +01:00
i18n Localisation updates from https://translatewiki.net. 2024-03-18 08:31:17 +01:00
includes Fix index usage when searching for page titles 2024-03-27 22:46:57 +00: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 Cleanup SchemaHooks and SQL files 2023-12-22 02:13:52 +00:00
tests/phpunit Fix index usage when searching for page titles 2024-03-27 22:46:57 +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: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0 2024-03-11 20:44:04 +01:00
COPYING Initial commit 2016-10-17 16:02:53 -07:00
extension.json Add inline background color 2024-03-07 17:55:07 +00: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 dependencies 2024-02-10 22:20:52 +00:00
package.json build: Updating dependencies 2024-02-10 22:20:52 +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.