mediawiki-extensions-AbuseF.../includes
Daimona Eaytoy 916234598d Simplify ViewEdit, last round
This deals with data inconsistencies in buildFilterEditor. Every
property of $row was tested in all 5 scenarios (also using Selenium) to
check when it's set. The result is in the normalizeRow method, which
aims to remove any inconsistencies, so that buildFilterEditor always
receives a "complete" row with all defaults set.

The code in buildFilterEditor is now cleaner (because there are no
isset() checks), and it gives us a unique place where we can set
defaults (rather than partly doing that in
loadRequest/loadFilterData/loadImport, and partly relying on isset).

This will be especially useful when introducing value objects to
represent filters, because now you just have to look at normalizeRow()
to tell which properties are allowed to be missing, and thus what "kind"
of filter object you need (see
I5f33227887c035e301313bbe24d1c1fefb75bc6a).

Additionally, reduce the properties that get passed around during
export/import, and make the selenium test try a roundtrip, rather than
relying on hardcoded data that may get outdated. A future patch will
refactor the import/export code.

Change-Id: Id52c466baaf6da18e2981f27a81ffdad3a509e78
2020-10-26 13:07:29 +00:00
..
api Introduce BlockAutopromoteStore service 2020-10-24 12:31:44 +00:00
Hooks Add dedicated classes for more hook handlers 2020-10-22 18:23:09 +02:00
LogFormatter Move log formatters to a separate directory and namespace 2020-10-07 16:25:38 +02:00
pagers Merge "Add an AbuseFilterPermissionManager service" 2020-10-13 08:36:25 +00:00
parser Merge "Move some misplaced AbuseFilterParser entry points" 2020-09-29 13:51:17 +00:00
special Merge "Minor updates related to var dumps" 2020-10-19 08:27:05 +00:00
VariableGenerator Add test traits for uploads and account creation 2020-10-04 13:16:58 +00:00
Views Simplify ViewEdit, last round 2020-10-26 13:07:29 +00:00
AbuseFilter.php Simplify ViewEdit, last round 2020-10-26 13:07:29 +00:00
AbuseFilterChangesList.php Stop using the Revision class 2020-02-26 15:39:12 +00:00
AbuseFilterHooks.php Introduce BlockAutopromoteStore service 2020-10-24 12:31:44 +00:00
AbuseFilterPermissionManager.php Add an AbuseFilterPermissionManager service 2020-10-10 14:03:29 +02:00
AbuseFilterPreAuthenticationProvider.php Factor out variables-related methods 2020-02-07 20:27:26 +00:00
AbuseFilterRunner.php Merge "Use UserGroupManager when reverting degroup action" 2020-10-25 09:24:15 +00:00
AbuseFilterServices.php Introduce BlockAutopromoteStore service 2020-10-24 12:31:44 +00:00
AbuseFilterVariableHolder.php Rewrite the VariableHolder code to translate deprecated variables 2020-09-29 15:06:14 +00:00
AFComputedVariable.php Use new services in AbuseFilterRunner 2020-10-14 23:08:32 +00:00
BlockAutopromoteStore.php Introduce BlockAutopromoteStore service 2020-10-24 12:31:44 +00:00
ChangeTagger.php Inject ChangeTagsManager to ChangeTagger 2020-10-21 16:30:43 +02:00
ChangeTagsManager.php Add ChangeTagsManager service 2020-10-21 16:24:32 +02:00
FilterProfiler.php Improve FilterProfiler coverage 2020-10-24 16:23:47 +02:00
KeywordsManager.php Add tests for retrieving RC variables 2020-10-04 12:43:04 +00:00
ServiceWiring.php Introduce BlockAutopromoteStore service 2020-10-24 12:31:44 +00:00
TableDiffFormatterFullContext.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00