From f71d731b6110c15aa382cc9b4118554f0ac35e5e Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Sat, 20 Oct 2018 12:24:53 +0200 Subject: [PATCH] Rearrange config to provide better experience In order to bundle AbuseFilter, we have to provide an optimal configuration for sysadmins. This patch aims to provide such configuration, and of course it's open to changes. Changed values: *Grant abusefilter-view-private to admins. This is mostly for redundancy-safety (they already have -modify) *Grant modify-restricted to admins (see T200032) *Disable the 'degroup' action. This is really dangerous, not ideal to be enabled by default. *Grant the abusefilter-revert right to sysops. This is similar to assigning the modify-restricted right in its rationale. *Add abusefilter-log-private to viewrestrictedlogs grant. This right should go together with abusefilter-view-private. (T226987) *Remove abusefilter-revert from the rollback grant, as that right is for reverting AF actions and has nothing to do with rollbacks. This mostly copies the config of WMF production: degrouping is already disabled there, and modify-restricted should be assigned to sysops on WMF wikis as well. The assignment of the abusefilter-view-private and abusefiliter-revert rights is handled in I09cb462312c5bbc71ee3a8f0fbd91357908130d4 (parent patch) to keep the status quo. NOTE: this patch should be *deployed* together with the config patch to avoid discontinuities. Thus, please ONLY provide a virtual +2 using a +1, and I'll coordinate the +2 with a deployer. Bug: T191740 Bug: T200032 Bug: T226987 Depends-On: I09cb462312c5bbc71ee3a8f0fbd91357908130d4 Change-Id: I58f215b8aa3444602532098a3c9dfd25409f29eb --- extension.json | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/extension.json b/extension.json index 49e72e7a9..f9ee1fe05 100644 --- a/extension.json +++ b/extension.json @@ -35,7 +35,15 @@ }, "sysop": { "abusefilter-log-detail": true, - "abusefilter-modify": true + "abusefilter-view-private": true, + "abusefilter-log-private": true, + "abusefilter-modify": true, + "abusefilter-modify-restricted": true, + "abusefilter-revert": true + }, + "suppress": { + "abusefilter-hidden-log": true, + "abusefilter-hide-log": true } }, "GrantPermissions": { @@ -44,11 +52,12 @@ "abusefilter-log-detail": true, "abusefilter-view": true }, - "rollback": { - "abusefilter-revert": true + "oversight": { + "abusefilter-hide-log": true }, "viewrestrictedlogs": { "abusefilter-hidden-log": true, + "abusefilter-log-private": true, "abusefilter-view-private": true } }, @@ -261,7 +270,7 @@ "blockautopromote": true, "block": true, "rangeblock": false, - "degroup": true, + "degroup": false, "tag": true }, "_merge_strategy": "array_plus",