Lucas Werkmeister (WMDE) has submitted this change and it was merged. (
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(-)
Approvals:
jenkins-bot: Verified
Thiemo Mättig (WMDE): Looks good to me, approved
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: merged
Gerrit-Change-Id: Id6e49fafdd9052222ca991c0f255e175e42c11dd
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/WikibaseQualityConstraints
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>
Gerrit-Reviewer: Lucas Werkmeister (WMDE) <[email protected]>
Gerrit-Reviewer: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits