in js/triage.js [112:195]
function loadBugListDetail() {
if (!BugQueries) {
return;
}
$("#errors").empty();
// Fire off a single bugzilla request per report
let url = TriageConfig.jsonConfig.BUGZILLA_REST_URL + TriageData['url'];
let key = getAPIKeyFromStorage();
if (key != null && key.length) {
url += "&api_key=" + key;
}
// Limit what data we retreive for better performance.
url += "&include_fields=" + TriageConfig.jsonConfig.include_fields;
$.ajax({
url: url,
crossDomain:true,
dataType: 'json',
ifModified: true,
success: function(data, status) {
if (status === 'success') {
// Global
BugData = data;
displayBugLists(updateBugList, 'data', BugData);
}
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("url:", url);
console.log("status:", textStatus);
console.log("error thrown:", errorThrown);
console.log("response text:", jqXHR.responseText);
try {
let info = JSON.parse(jqXHR.responseText);
let text = info.message ? info.message : errorThrown;
console.log("detail:", text);
errorMsg(text);
return;
} catch(e) {
}
}
});
// Fire off a bugzilla request
url = TriageConfig.jsonConfig.BUGZILLA_REST_URL + TriageData['uburl'];
if (key != null && key.length) {
url += "&api_key=" + key;
}
// Limit what data we retreive for better bugzilla query performance.
url += "&" + TriageConfig.jsonConfig.include_fields;
console.log(TriageConfig.jsonConfig.BUGZILLA_URL + TriageData['uburl']);
$.ajax({
url: url,
crossDomain:true,
dataType: 'json',
ifModified: true,
success: function(data, status) {
if (status === 'success') {
UBData = data;
displayBugLists(updateBotList, 'ubdata', UBData);
}
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("url:", url);
console.log("status:", textStatus);
console.log("error thrown:", errorThrown);
console.log("response text:", jqXHR.responseText);
try {
let info = JSON.parse(jqXHR.responseText);
let text = info.message ? info.message : errorThrown;
console.log("detail:", text);
errorMsg(text);
return;
} catch(e) {
}
}
});
}