Adrian Lang has uploaded a new change for review.
https://gerrit.wikimedia.org/r/164297
Change subject: Remove wb.RepoApi.{get,post}
......................................................................
Remove wb.RepoApi.{get,post}
This reverts d8a554f17c2dc9c51c963d734ab35acb7d11e615.
Change-Id: I37de037fe9307f6ac03e9387fbfb42855fac76ec
---
M lib/resources/wikibase.RepoApi/wikibase.RepoApi.js
1 file changed, 14 insertions(+), 31 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/97/164297/1
diff --git a/lib/resources/wikibase.RepoApi/wikibase.RepoApi.js
b/lib/resources/wikibase.RepoApi/wikibase.RepoApi.js
index d02b4d4..fab2d34 100644
--- a/lib/resources/wikibase.RepoApi/wikibase.RepoApi.js
+++ b/lib/resources/wikibase.RepoApi/wikibase.RepoApi.js
@@ -41,7 +41,7 @@
data: JSON.stringify( data ),
'new': type
};
- return this.post( params );
+ return this._post( params );
},
/**
@@ -65,7 +65,7 @@
params.clear = true;
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -211,7 +211,7 @@
language: language,
baserevid: baseRevId
};
- return this.post( params );
+ return this._post( params );
},
/**
@@ -231,7 +231,7 @@
language: language,
baserevid: baseRevId
};
- return this.post( params );
+ return this._post( params );
},
/**
@@ -255,7 +255,7 @@
language: language,
baserevid: baseRevId
};
- return this.post( params );
+ return this._post( params );
},
/**
@@ -278,7 +278,7 @@
params.index = index;
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -304,7 +304,7 @@
params.value = JSON.stringify( value );
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -314,7 +314,7 @@
* @return {jQuery.Promise}
*/
removeClaim: function( claimGuid ) {
- return this.post( {
+ return this._post( {
action: 'wbremoveclaims',
claim: claimGuid
} );
@@ -370,7 +370,7 @@
params.value = JSON.stringify( value );
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -409,7 +409,7 @@
params.index = index;
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -430,7 +430,7 @@
baserevid: baseRevId
};
- return this.post( params );
+ return this._post( params );
},
/**
@@ -456,7 +456,7 @@
params.badges = this._normalizeParam( badges );
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -484,7 +484,7 @@
params.summary = summary;
}
- return this.post( params );
+ return this._post( params );
},
/**
@@ -515,7 +515,7 @@
*
* @throws {Error} If a parameter is not specified properly
*/
- post: function( params ) {
+ _post: function( params ) {
// Unconditionally set the bot parameter to match the UI
behaviour of core
params.bot = 1;
@@ -527,23 +527,6 @@
return this._api.postWithToken( 'edit', params );
},
-
- /**
- * Performs an API get request.
- * @see mw.Api.get
- * @since 0.3
- *
- * @param {Object} params
- * @return {jQuery.Promise}
- * Resolved parameters:
- * - {*}
- * Rejected parameters:
- * - {string}
- * - {*}
- */
- 'get': function( params ) {
- return this._api.get( params );
- }
} );
}( mediaWiki, wikibase, jQuery ) );
--
To view, visit https://gerrit.wikimedia.org/r/164297
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I37de037fe9307f6ac03e9387fbfb42855fac76ec
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Adrian Lang <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits