User talk:Robmoen/bugStatusUpdate.js
Add topicWorking around same-origin restrictions using JSONP
[edit]Thanks for taking a crack at this. Here's an example for using JSONP to work around the same-origin issue:
mw.loader.using(['jquery.json'], function() {
var params = [ { 'ids': [100, 200], 'include_fields': [ 'last_change_time', 'status'] } ] ;
var encparams = $.toJSON(params);
$.ajax({
url: 'https://bugzilla.wikimedia.org/jsonrpc.cgi',
type: 'get',
contentType: 'application/json',
data: { 'method':'Bug.get', 'params': encparams },
dataType: 'jsonp',
success: function(data) {
console.log(data);
},
});
});
--Eloquence 03:03, 31 December 2011 (UTC)
- Edited to add
var
to prevent makingparams
andencParams
global --Catrope 12:11, 31 December 2011 (UTC) - See also http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Server/JSONRPC.html Krinkle 17:21, 31 December 2011 (UTC)
Great progress! Quick note: Checking for bugs should be conditional on the template existing on the page so we don't fire off requests unnecessarily.--Eloquence 00:51, 4 January 2012 (UTC)
- Was this fix ever implemented on w:MediaWiki:Gadget-BugStatusUpdate.js? I'm working on an update/upgrade for this gadget and would like to know what needs to be done... Thanks Technical 13 (talk) 18:37, 18 June 2013 (UTC)
Include resolution?
[edit]What about including also the "resolution" of the bugs marked as "RESOLVED"? Some bugs are resolved as "INVALID" while others as "FIXED" and this info is likely relevant for people who are interested on those bugs. Helder 12:56, 3 May 2012 (UTC)
Two bug reports in the same page
[edit]When a bug is mentioned two times in the same page (e.g. Bug 36059 on Wikipedia talk:WikiProject Mathematics), the script only works for the first bugzilla link. Helder 09:46, 4 May 2012 (UTC)
Inform resolution in case the bug is "RESOLVED"
[edit]See suggestion on enwiki. Helder 11:26, 25 January 2013 (UTC)
Please review my proposed change to the template on Wikipedia, thank you. ShoeMaker ( Contributions • Message ) 00:37, 16 March 2013 (UTC)
- I added the option to turn off the float with
|float=no
so that they can be tiled into a table like on W:User:Technical_13/Bugzilla.- I added the ability to leave the bug number blank as a placeholder in a table like above.
- Leaving the bug number out replaces the line "Bug: #####" with a link to quickly "Submit a new bug"
- Fixed a template bug that if bug number was left out, it caused an issue that was preventing the template from loading current information from bugzilla api.
- I added the ability to leave the bug number blank as a placeholder in a table like above.
— T13 ( C • M • Click to learn how to view this signature as intended ) 17:19, 20 March 2013 (UTC)