Page MenuHomePhabricator

bug-42782-sqwiki-Autopromote-Flagged-Reviewes.patch

Authored By
bzimport
Nov 22 2014, 12:52 AM
Size
2 KB
Referenced Files
None
Subscribers
None

bug-42782-sqwiki-Autopromote-Flagged-Reviewes.patch

From 6363d1c15901cf3e557aefcd966b77eaf3fef56b Fri Mar 29 22:42:38 2013
From: Eagleal <eagleofal@gmail.com>
Date: Fri, 29 Mar 2013 22:42:38 +0100
Subject: [PATCH] (bug 42782) sqwiki: Autopromote Flagged Reviewes
---
wmf-config/flaggedrevs.php | 34 ++++++++++++++++++++++++++++++++--
1 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/wmf-config/flaggedrevs.php b/wmf-config/flaggedrevs.php
index c927fc3..f50455b 100644
--- a/wmf-config/flaggedrevs.php
+++ b/wmf-config/flaggedrevs.php
@@ -535,9 +535,39 @@ elseif ( $wgDBname == 'ruwikisource' ) {
elseif ( $wgDBname == 'sqwiki' ) {
// Bug 42782
+ // @link https://bugzilla.wikimedia.org/show_bug.cgi?id=42782
+ //
+ // - Auto-promotion for registered users. When they reach 300 edits in 10 or more
+ // unique articles with a maximum of 5% reverted edits in 60 days or more since
+ // registration they must be auto-promoted to reviewer group.
+ // - Auto-promotion for registered users. When they reach 100 edits in 10 or more
+ // unique pages with a maximum of 5% reverted edits in 30 days or more since
+ // registration they must be auto-promoted to autoreviewer (or autopatrolled)
+ // group.
$wgFlaggedRevsAutopromote = $wmfStandardAutoPromote;
- $wgFlaggedRevsAutopromote['edits'] = 100;
- $wgFlaggedRevsAutopromote['totalContentEdits'] = 100;
+ $wgFlaggedRevsAutopromote['days'] = 60; # days since registration
+ $wgFlaggedRevsAutopromote['edits'] = 300; # total edit count
+ $wgFlaggedRevsAutopromote['excludeDeleted'] = true; # exclude deleted edits from 'edits' count above?
+ $wgFlaggedRevsAutopromote['spacing'] = 3; # spacing of edit intervals
+ $wgFlaggedRevsAutopromote['benchmarks'] = 15; # how many edit intervals are needed?
+ $wgFlaggedRevsAutopromote['recentContentEdits'] = 10; # $wgContentNamespaces edits in recent changes
+ $wgFlaggedRevsAutopromote['uniqueContentPages'] = 10; # $wgContentNamespaces unique pages edited
+ $wgFlaggedRevsAutopromote['neverBlocked'] = false; # user must be emailconfirmed?
+
+ $wgFlaggedRevsAutoconfirm = array(
+ 'days' => 30, # days since registration
+ 'edits' => 100, # total edit count
+ 'spacing' => 3, # spacing of edit intervals
+ 'benchmarks' => 7, # how many edit intervals are needed?
+ 'excludeLastDays' => 2, # exclude the last X days of edits from edit counts
+ // Either totalContentEdits reqs OR totalCheckedEdits requirements needed
+ 'totalContentEdits' => 150, # $wgContentNamespaces edits OR...
+ 'totalCheckedEdits' => 50, # ...Edits before the stable version of pages
+ 'uniqueContentPages' => 8, # $wgContentNamespaces unique pages edited
+ 'editComments' => 20, # how many edit comments used?
+ 'email' => false, # user must be emailconfirmed?
+ 'neverBlocked' => true, # Can users that were blocked be promoted?
+ );
$wgGroupPermissions['sysop']['review'] = true;
$wgGroupPermissions['sysop']['validate'] = true;
--
1.7.6.msysgit.0

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9277
Default Alt Text
bug-42782-sqwiki-Autopromote-Flagged-Reviewes.patch (2 KB)

Event Timeline