jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/373698 )

Change subject: Automatically include commons and wikidata in 
$wmgThrottlingExceptions
......................................................................


Automatically include commons and wikidata in $wmgThrottlingExceptions

Bug: T163872
Change-Id: I14af55a548ebb5eca19312cd1eb5b80647621883
---
M wmf-config/throttle-analyze.php
1 file changed, 8 insertions(+), 0 deletions(-)

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



diff --git a/wmf-config/throttle-analyze.php b/wmf-config/throttle-analyze.php
index 1757b8e..2378783 100644
--- a/wmf-config/throttle-analyze.php
+++ b/wmf-config/throttle-analyze.php
@@ -35,6 +35,14 @@
                        continue;
                }
 
+               # Ensure that dbname field contain wikidatawiki and commonswiki
+               if ( gettype( $options['dbname'] ) == 'string' ) {
+                       $options['dbname'] = [ $options['dbname'] ];
+               }
+               $options['dbname'][] = 'commonswiki';
+               $options['dbname'][] = 'wikidatawiki';
+               $options['dbname'] = array_unique( $options['dbname'] );
+
                # Finally) set up the throttle value
                global $wgAccountCreationThrottle, $wgRateLimits;
                if ( isset( $options['value'] ) && is_numeric( 
$options['value'] ) ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I14af55a548ebb5eca19312cd1eb5b80647621883
Gerrit-PatchSet: 7
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Framawiki <[email protected]>
Gerrit-Reviewer: Luke081515 <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to