Mailing List Archive

[MediaWiki-commits] [Gerrit] Add 'extendedconfirmed' protection level on enwiki - change (operations/mediawiki-config)
Luke081515 has uploaded a new change for review.

https://gerrit.wikimedia.org/r/281807

Change subject: Add 'extendedconfirmed' protection level on enwiki
......................................................................

Add 'extendedconfirmed' protection level on enwiki

'extendedconfirmed' right is assigned to users in the new extendedconfirmed group, bot and sysop group. Sysops are able to add or remove users from the extendedconfirmed group too

Also added the right to $wgAvailableRights so that it can be assigned to global groups.

Bug: T126607
Change-Id: Ibeb3d0d8f7c0e92813bcacbf0c0d3d988b7a8e38
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 13 insertions(+), 3 deletions(-)


git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/07/281807/1

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index ccc8b4e..9d2b734 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -614,9 +614,11 @@
$wgAvailableRights[] = 'templateeditor';
$wgAvailableRights[] = 'editeditorprotected';
$wgAvailableRights[] = 'editextendedsemiprotected';
+$wgAvailableRights[] = 'extendedconfirmed';
$wgGrantPermissions['editprotected']['templateeditor'] = true;
$wgGrantPermissions['editprotected']['editeditorprotected'] = true;
$wgGrantPermissions['editprotected']['editextendedsemiprotected'] = true;
+$wgGrantPermissions['editprotected']['extendedconfirmed'] = true;

// Allow tboverride with editprotected, and tboverride-account with createaccount
$wgGrantPermissions['editprotected']['tboverride'] = true;
diff --git a/wmf-config/InitialiseSettings.php b/wmf-config/InitialiseSettings.php
index 50591be..0ecade8 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -4324,7 +4324,7 @@
'arwiki' => array( '', 'autoconfirmed', 'autoreview', 'sysop' ), // T54109
'ckbwiki' => array( '', 'autoconfirmed', 'autopatrol', 'sysop' ), // T54533
'dewiki' => array( '', 'autoconfirmed', 'editeditorprotected', 'sysop' ), // T94368
- 'enwiki' => array( '', 'autoconfirmed', 'templateeditor', 'sysop' ), // T57432
+ 'enwiki' => array( '', 'autoconfirmed', 'extendedconfirmed', 'templateeditor', 'sysop' ), // T126607, T57432
'frwiki' => array( '', 'autoconfirmed', 'editextendedsemiprotected', 'sysop' ), // T131109
'hewiki' => array( '', 'autoconfirmed', 'autopatrol', 'templateeditor' /* T102466 */, 'sysop' ), // T60207
'huwiki' => array( '', 'autoconfirmed', 'templateeditor', 'sysop' ), // T74055
@@ -7641,6 +7641,7 @@
'bot' => array(
'ipblock-exempt' => true, // T30914
'changetags' => true, // T97013
+ 'extendedconfirmed' => true // T126607
),
'oversight' => array( 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'abusefilter-view-private' => true), // T30465, T119446
'checkuser' => array( 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'abusefilter-view-private' => true ), // T30465, T119446
@@ -7649,10 +7650,12 @@
'sysop' => array(
'templateeditor' => true, // T57432
'changetags' => true, // T97013
+ 'extendedconfirmed' => true // T126607
),
'massmessage-sender' => array( // T60962
'massmessage' => true,
),
+ 'extendedconfirmed' => array( 'extendedconfirmed' => true ), // T126607
),
'+enwikibooks' => array(
// 'rollbacker' => array( 'rollback' => true ),
@@ -9026,7 +9029,7 @@
),
'+enwiki' => array(
'bureaucrat' => array( 'accountcreator', 'flow-bot' ),
- 'sysop' => array( 'abusefilter', 'accountcreator', 'autoreviewer', 'confirmed', 'filemover', 'reviewer', 'rollbacker', 'templateeditor', 'massmessage-sender' ),
+ 'sysop' => array( 'abusefilter', 'accountcreator', 'autoreviewer', 'confirmed', 'filemover', 'reviewer', 'rollbacker', 'templateeditor', 'massmessage-sender', 'extendedconfirmed' ), // T126607
),
'+enwikibooks' => array(
'sysop' => array( 'transwiki', 'uploader' ),
@@ -9703,7 +9706,7 @@
),
'+enwiki' => array(
'bureaucrat' => array( 'ipblock-exempt', 'accountcreator', 'sysop', 'flow-bot' ),
- 'sysop' => array( 'rollbacker', 'accountcreator', 'abusefilter', 'autoreviewer', 'confirmed', 'reviewer', 'filemover', 'templateeditor', 'massmessage-sender' ),
+ 'sysop' => array( 'rollbacker', 'accountcreator', 'abusefilter', 'autoreviewer', 'confirmed', 'reviewer', 'filemover', 'templateeditor', 'massmessage-sender', 'extendedconfirmed' ), // T126607
),
'+enwikibooks' => array(
'sysop' => array( 'transwiki', 'uploader', ),
@@ -11348,6 +11351,11 @@
# wmgAutopromoteExtraGroups @{
'wmgAutopromoteExtraGroups' => array(
'default' => false,
+ 'enwiki' => array(
+ 'extendedconfirmed' => array( '&'
+ array( APCOND_EDITCOUNT, 500 ),
+ array( APCOND_AGE, 30 * 86400 ), // 30 days * seconds in a day
+ ),
'testwiki' => array(
'patroller' => array( '&',
array( APCOND_EDITCOUNT, 10 ),

--
To view, visit https://gerrit.wikimedia.org/r/281807
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibeb3d0d8f7c0e92813bcacbf0c0d3d988b7a8e38
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Luke081515 <luke081515@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] Add 'extendedconfirmed' protection level on enwiki - change (operations/mediawiki-config) [ In reply to ]
jenkins-bot has submitted this change and it was merged.

Change subject: Add 'extendedconfirmed' protection level on enwiki
......................................................................


Add 'extendedconfirmed' protection level on enwiki

'extendedconfirmed' right is assigned to users in the new extendedconfirmed group, bot and sysop group.
Sysops are able to add or remove users from the extendedconfirmed group too

Also added the right to $wgAvailableRights so that it can be assigned to global groups.

Bug: T126607
Change-Id: Ibeb3d0d8f7c0e92813bcacbf0c0d3d988b7a8e38
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 16 insertions(+), 3 deletions(-)

Approvals:
Alex Monk: Looks good to me, approved
jenkins-bot: Verified



diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index ccc8b4e..9d2b734 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -614,9 +614,11 @@
$wgAvailableRights[] = 'templateeditor';
$wgAvailableRights[] = 'editeditorprotected';
$wgAvailableRights[] = 'editextendedsemiprotected';
+$wgAvailableRights[] = 'extendedconfirmed';
$wgGrantPermissions['editprotected']['templateeditor'] = true;
$wgGrantPermissions['editprotected']['editeditorprotected'] = true;
$wgGrantPermissions['editprotected']['editextendedsemiprotected'] = true;
+$wgGrantPermissions['editprotected']['extendedconfirmed'] = true;

// Allow tboverride with editprotected, and tboverride-account with createaccount
$wgGrantPermissions['editprotected']['tboverride'] = true;
diff --git a/wmf-config/InitialiseSettings.php b/wmf-config/InitialiseSettings.php
index 50591be..178ee4b 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -4324,7 +4324,7 @@
'arwiki' => array( '', 'autoconfirmed', 'autoreview', 'sysop' ), // T54109
'ckbwiki' => array( '', 'autoconfirmed', 'autopatrol', 'sysop' ), // T54533
'dewiki' => array( '', 'autoconfirmed', 'editeditorprotected', 'sysop' ), // T94368
- 'enwiki' => array( '', 'autoconfirmed', 'templateeditor', 'sysop' ), // T57432
+ 'enwiki' => array( '', 'autoconfirmed', 'extendedconfirmed', 'templateeditor', 'sysop' ), // T126607, T57432
'frwiki' => array( '', 'autoconfirmed', 'editextendedsemiprotected', 'sysop' ), // T131109
'hewiki' => array( '', 'autoconfirmed', 'autopatrol', 'templateeditor' /* T102466 */, 'sysop' ), // T60207
'huwiki' => array( '', 'autoconfirmed', 'templateeditor', 'sysop' ), // T74055
@@ -7641,6 +7641,7 @@
'bot' => array(
'ipblock-exempt' => true, // T30914
'changetags' => true, // T97013
+ 'extendedconfirmed' => true // T126607
),
'oversight' => array( 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'abusefilter-view-private' => true), // T30465, T119446
'checkuser' => array( 'browsearchive' => true, 'deletedhistory' => true, 'deletedtext' => true, 'abusefilter-view-private' => true ), // T30465, T119446
@@ -7649,10 +7650,12 @@
'sysop' => array(
'templateeditor' => true, // T57432
'changetags' => true, // T97013
+ 'extendedconfirmed' => true // T126607
),
'massmessage-sender' => array( // T60962
'massmessage' => true,
),
+ 'extendedconfirmed' => array( 'extendedconfirmed' => true ), // T126607
),
'+enwikibooks' => array(
// 'rollbacker' => array( 'rollback' => true ),
@@ -9026,7 +9029,7 @@
),
'+enwiki' => array(
'bureaucrat' => array( 'accountcreator', 'flow-bot' ),
- 'sysop' => array( 'abusefilter', 'accountcreator', 'autoreviewer', 'confirmed', 'filemover', 'reviewer', 'rollbacker', 'templateeditor', 'massmessage-sender' ),
+ 'sysop' => array( 'abusefilter', 'accountcreator', 'autoreviewer', 'confirmed', 'filemover', 'reviewer', 'rollbacker', 'templateeditor', 'massmessage-sender', 'extendedconfirmed' ), // T126607
),
'+enwikibooks' => array(
'sysop' => array( 'transwiki', 'uploader' ),
@@ -9703,7 +9706,7 @@
),
'+enwiki' => array(
'bureaucrat' => array( 'ipblock-exempt', 'accountcreator', 'sysop', 'flow-bot' ),
- 'sysop' => array( 'rollbacker', 'accountcreator', 'abusefilter', 'autoreviewer', 'confirmed', 'reviewer', 'filemover', 'templateeditor', 'massmessage-sender' ),
+ 'sysop' => array( 'rollbacker', 'accountcreator', 'abusefilter', 'autoreviewer', 'confirmed', 'reviewer', 'filemover', 'templateeditor', 'massmessage-sender', 'extendedconfirmed' ), // T126607
),
'+enwikibooks' => array(
'sysop' => array( 'transwiki', 'uploader', ),
@@ -11382,6 +11385,14 @@
array( APCOND_EDITCOUNT, 200 ),
),
), // T67495
+ 'enwiki' => array(
+ 'extendedconfirmed' => array( '&',
+ array( APCOND_EDITCOUNT, 500 ),
+ array( APCOND_AGE, 30 * 86400 ), // 30 days * seconds in a day
+ array( '!', array( APCOND_INGROUPS, 'sysop' ) ),
+ array( '!', array( APCOND_INGROUPS, 'bot' ) ),
+ ),
+ ), // T126607
'fawiki' => array(
'uploader' => array( '&',
array( APCOND_AGE, 4 * 86400 ),

--
To view, visit https://gerrit.wikimedia.org/r/281807
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibeb3d0d8f7c0e92813bcacbf0c0d3d988b7a8e38
Gerrit-PatchSet: 7
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Luke081515 <luke081515@web.de>
Gerrit-Reviewer: Alex Monk <krenair@gmail.com>
Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewissen@gmail.com>
Gerrit-Reviewer: Luke081515 <luke081515@web.de>
Gerrit-Reviewer: TTO <at.light@live.com.au>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits