mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-18 00:20:37 +00:00
7ecc204050
Why: * SearchFilters.php allows the caller to search by a regex that is applied to the pattern. * This script can be expanded to allow callers to specify what consequence should be associated with the filters that are outputted. What: * Add a 'consequence' option to the SearchFilters.php maintenance script, which is applied through a LIKE query on the af_actions column. ** This can be specified with or without the pattern option. ** Instead of making pattern required, the script now requires that one of consequence or pattern is provided. * Expand the tests for the script for this new code, along with using the new ::expectCallToFatalError method to be able to test previously untestable code. Bug: T373148 Change-Id: I1b507d8f9dc1f4cf91ee4f83ccde745eb6d46d6d |
||
---|---|---|
.. | ||
Api | ||
ChangeTags | ||
Hooks | ||
Maintenance | ||
Parser | ||
Special | ||
Watcher | ||
AbuseFilterExtensionJsonTest.php | ||
AbuseFilterServicesTest.php | ||
AbuseLoggerTest.php | ||
ActionVariablesIntegrationTest.php | ||
EchoNotifierTest.php | ||
FilteredActionsHandlerTest.php | ||
FilterRunnerTest.php | ||
FilterStoreTest.php | ||
FilterValidatorTest.php |