Urbanecm has uploaded a new change for review. (
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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/98/373698/1
diff --git a/wmf-config/throttle-analyze.php b/wmf-config/throttle-analyze.php
index 1757b8e..3fd419f 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: newchange
Gerrit-Change-Id: I14af55a548ebb5eca19312cd1eb5b80647621883
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Urbanecm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits