mediawiki-extensions-AbuseF.../maintenance
Dreamy Jazz 7ecc204050 Expand SearchFilters.php to search by consequence
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
2024-08-22 22:07:37 +01:00
..
AddMissingLoggingEntries.php Remove AbuseFilterActorMigration 2024-06-15 09:42:27 +02:00
MigrateActorsAF.php Use IDatabase::buildComparison in MigrateActorsAF 2024-07-16 23:35:21 +02:00
PurgeOldLogIPData.php maintenance: Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-29 22:15:35 +02:00
SearchFilters.php Expand SearchFilters.php to search by consequence 2024-08-22 22:07:37 +01:00
UpdateVarDumps.php Replace gettype() with get_debug_type() in exception messages etc. 2024-08-12 23:05:16 +02:00