mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +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 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json | ||
quibble.yaml |