mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 18:58:17 +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 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
abusefilter.tables.pg.sql | ||
abusefilter.tables.sql | ||
abusefilter.tables.sqlite.sql | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
hooks.txt | ||
package-lock.json | ||
package.json |