Catrope has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/349108 )

Change subject: Add b/c for ORES config format change
......................................................................

Add b/c for ORES config format change

I6b839a6a864463 changed the keys expected in $wgOresFiltersThresholds,
so set both the old and the new keys to keep things working
as 1.29.0-wmf.21 rolls out.

Bug: T162760
Change-Id: Ifda4ba70f70b23e0e1c8c8bea17314e6692ef22d
---
M wmf-config/CommonSettings.php
1 file changed, 4 insertions(+), 0 deletions(-)


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

diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 3e11fd4..aef734f 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -3324,6 +3324,10 @@
        } else {
                $wgDefaultUserOptions['oresDamagingPref'] = 'soft';
        }
+
+       // Backwards compatibility for upcoming config format change
+       $wgOresFiltersThresholds['goodfaith']['likelygood'] = 
$wgOresFiltersThresholds['goodfaith']['good'];
+       $wgOresFiltersThresholds['goodfaith']['likelybad'] = 
$wgOresFiltersThresholds['goodfaith']['bad'];
 }
 
 ### End (roughly) of general extensions ########################

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifda4ba70f70b23e0e1c8c8bea17314e6692ef22d
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Catrope <r...@wikimedia.org>

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

Reply via email to