jenkins-bot has submitted this change and it was merged.

Change subject: Move quantity data type out of experimental
......................................................................


Move quantity data type out of experimental

Enabled data types can be overridden in local settings.

This allows quantity data type to be enabled on test.wikidata.

Change-Id: If75f37221549f15a8bffd22bfee077c1cf5311fc
---
M lib/config/WikibaseLib.default.php
M lib/includes/WikibaseDataTypeBuilders.php
2 files changed, 5 insertions(+), 3 deletions(-)

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



diff --git a/lib/config/WikibaseLib.default.php 
b/lib/config/WikibaseLib.default.php
index 438429e..0993e7d 100644
--- a/lib/config/WikibaseLib.default.php
+++ b/lib/config/WikibaseLib.default.php
@@ -118,6 +118,7 @@
                        'time',
                        'globe-coordinate',
                        'url',
+                       'quantity'
                ),
 
                // URL schemes allowed for values of the URL type.
@@ -128,11 +129,12 @@
        // experimental stuff
        if ( defined( 'WB_EXPERIMENTAL_FEATURES' ) && WB_EXPERIMENTAL_FEATURES 
) {
                // experimental data types
+               /*
                $defaults['dataTypes'] = array_merge( $defaults['dataTypes'], 
array(
-                       'quantity',
                        //'monolingual-text',
                        //'multilingual-text',
                ) );
+               */
        }
 
        return $defaults;
diff --git a/lib/includes/WikibaseDataTypeBuilders.php 
b/lib/includes/WikibaseDataTypeBuilders.php
index 37570b8..338e79d 100644
--- a/lib/includes/WikibaseDataTypeBuilders.php
+++ b/lib/includes/WikibaseDataTypeBuilders.php
@@ -76,11 +76,11 @@
                        'string' => array( $this, 'buildStringType' ),
                        'time' => array( $this, 'buildTimeType' ),
                        'globe-coordinate' => array( $this, 
'buildCoordinateType' ),
-                       'url' => array( $this, 'buildUrlType' )
+                       'url' => array( $this, 'buildUrlType' ),
+                       'quantity'=> array( $this, 'buildQuantityType' )
                );
 
                $experimental = array(
-                       'quantity'=> array( $this, 'buildQuantityType' ),
                        // 'monolingual-text' => array( $this, 
'buildMonolingualTextType' ),
                        // 'multilingual-text' => array( $this, 
'buildMultilingualTextType' ),
                );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: If75f37221549f15a8bffd22bfee077c1cf5311fc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Aude <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to