mediawiki-extensions-Linter/tests/phpunit
Tim Starling 4dd75df2e8 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
2024-03-27 11:44:59 +11:00
..
unit Minor cleanup 2022-09-07 02:48:18 +01:00
CategoryMessagesTest.php Remove hardcoded list of categories with no parameters 2021-12-15 17:27:36 -05:00
DatabaseTest.php Minor cleanup 2022-09-07 02:48:18 +01:00
RecordLintJobTest.php tests: Simplify creation of fixtures 2023-09-04 19:46:53 +02:00
SpecialLintErrorsTest.php Fix index usage when searching for page titles 2024-03-27 11:44:59 +11:00