mediawiki-extensions-AbuseF.../includes/Consequences/Consequence
Daimona Eaytoy 2de5fce177 Refactor ConsequencesExecutor to process consequences in more steps
Introduce shorter methods, one for each steps, so that it's easier to
understand what the code is doing and figure out if the order makes
sense. The ConsequencesExecutor test is now a proper unit test. Also
simplify AbuseFilterConsequencesTest, removing old/wrong logic and
fixing two expected values that were actually wrong (but worked because
of the aforementioned wrong logic).

The only functional changes should be:
 - We pick the longest block *after* checking the ConsequenceDisabler
   consequences, so e.g. if a filter has a long block + warn and another
   filter has a shorter block, we still keep the second one if warn will
   disable the block.
 - Remove disallow in presence of dangerous actions after checking
   ConsequenceDisabler's and deduplicating blocks. Otherwise we may
   remove disallow for filters where block (etc.) doesn't end up being
   disabled. We may also want to consider not removing disallow at all,
   now that messages are customizable.

Bug: T303059
Change-Id: If00adbf2056758222eaaea70b16d3b4f89502c20
2022-03-19 15:49:36 +00:00
..
Block.php Refactor ConsequencesExecutor to process consequences in more steps 2022-03-19 15:49:36 +00:00
BlockAutopromote.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
BlockingConsequence.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
Consequence.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
ConsequencesDisablerConsequence.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
Degroup.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
Disallow.php Introduce subclasses of Filter with specific use cases 2021-01-17 00:47:29 +00:00
HookAborterConsequence.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
RangeBlock.php Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
ReversibleConsequence.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
Tag.php Introduce ActionSpecifier 2022-02-18 11:30:56 +00:00
Throttle.php Move throttle range sizes to class constants 2022-03-06 16:37:11 +01:00
Warn.php build: Updating dependencies 2021-07-21 18:51:18 +00:00