Aude has uploaded a new change for review.

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

Change subject: Explicitly define Wikibase data types
......................................................................

Explicitly define Wikibase data types

we have new data types coming like external-identifier
for which we want to deploy in a more coordinated manner
than the train. (e.g. enable first on test.wikidata,
then when enabled in production, ensure both clients +
repo get it at the same time)

Change-Id: I887a292874bdb503690560d3c2d67ee70928c569
---
M wmf-config/Wikibase-production.php
1 file changed, 27 insertions(+), 0 deletions(-)


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

diff --git a/wmf-config/Wikibase-production.php 
b/wmf-config/Wikibase-production.php
index 553c9d7..82488e4 100644
--- a/wmf-config/Wikibase-production.php
+++ b/wmf-config/Wikibase-production.php
@@ -4,6 +4,20 @@
 $wgMathEnableWikibaseDataType = false;
 
 if ( $wmgUseWikibaseRepo ) {
+
+       // data types setting should be kept in sync with setting in client.
+       $wgWBRepoSettings['dataTypes'] = array(
+               'commonsMedia',
+               'globe-coordinate',
+               'quantity',
+               'monolingualtext',
+               'string',
+               'time',
+               'url',
+               'wikibase-item',
+               'wikibase-property'
+       );
+
        if ( $wgDBname === 'testwikidatawiki' ) {
                $wgWBRepoSettings['formatterUrlProperty'] = 'P368';
 
@@ -97,4 +111,17 @@
                'Q20748092' => 'badge-proofread',
                'Q20748093' => 'badge-validated'
        );
+
+       // dataTypes setting should be kept in sync with repo setting.
+       $wgWBClientSettings['dataTypes'] = array(
+               'commonsMedia',
+               'globe-coordinate',
+               'quantity',
+               'monolingualtext',
+               'string',
+               'time',
+               'url',
+               'wikibase-item',
+               'wikibase-property',
+       );
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I887a292874bdb503690560d3c2d67ee70928c569
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Aude <aude.w...@gmail.com>

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

Reply via email to