mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-13 17:27:20 +00:00
9bc885b6b3
The logic about action IDs and the persistent buffer is now encapsulated inside a single service, which is a step towards getting rid of global state in the AbuseFilter class, and reducing the responsibilities of the Runner. An important change made here is that we now require a LinkTarget rather than a Title. This removes a dependency on the Title class (a monster object), makes tests simpler, and denies the need to inject a TitleFactory. This means living without some bits of context (e.g. we're no longer using makeTitleSafe to ensure a valid title, and we have to build a "prefixedtext" manually), but this shouldn't be a problem, given that the titles are only used to create a cache key: invalid titles are not a problem, and concatenating namespace + title should always be sufficient. Bug: T265370 Change-Id: Iff59cd3d889454a482a89c16691bfefcc5ec0a12 |
||
---|---|---|
.. | ||
unit | ||
AbuseFilterConsequencesTest.php | ||
AbuseFilterCreateAccountTestTrait.php | ||
AbuseFilterDBTest.php | ||
AbuseFilterParserEquivsetTest.php | ||
AbuseFilterSaveTest.php | ||
AbuseFilterUploadTestTrait.php | ||
AbuseFilterVariableGeneratorDBTest.php | ||
UpdateVarDumpsTest.php |