Lucas Werkmeister (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/389773 )

Change subject: Use formatversion: 2 in gadget API requests
......................................................................

Use formatversion: 2 in gadget API requests

Currently, there’s no difference in the response, but for T179844, the
response will probably contain boolean values, so we should use the
format that will actually preserve them as JSON booleans. (Also,
formatversion 1 may eventually be removed.)

Change-Id: Id6e49fafdd9052222ca991c0f255e175e42c11dd
---
M modules/gadget.js
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseQualityConstraints
 refs/changes/73/389773/1

diff --git a/modules/gadget.js b/modules/gadget.js
index 266b4db..6c46e6e 100644
--- a/modules/gadget.js
+++ b/modules/gadget.js
@@ -268,6 +268,7 @@
                api.get( {
                        action: 'wbcheckconstraints',
                        format: 'json',
+                       formatversion: 2,
                        uselang: lang,
                        id: entityId
                } ).then( function( data ) {
@@ -279,6 +280,7 @@
                        api.get( {
                                action: 'wbcheckconstraintparameters',
                                format: 'json',
+                               formatversion: 2,
                                uselang: lang,
                                propertyid: entityId
                        } ).then( function( data ) {
@@ -290,6 +292,7 @@
                        api.get( {
                                action: 'wbcheckconstraints',
                                format: 'json',
+                               formatversion: 2,
                                uselang: lang,
                                claimid: statementId
                        } ).then( function( data ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6e49fafdd9052222ca991c0f255e175e42c11dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>

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

Reply via email to