Add signatures to the beta-stability-pushlog table. Fixes #35
This commit is contained in:
Родитель
15d399ee92
Коммит
1fe9b45743
|
@ -19,6 +19,7 @@
|
|||
<table id="table">
|
||||
<tr>
|
||||
<th>Bug</th>
|
||||
<th>Signatures</th>
|
||||
<th>Evolution</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -151,7 +151,9 @@ function getComparison() {
|
|||
aElem.textContent = bug;
|
||||
bugElem.appendChild(aElem);
|
||||
|
||||
let evolution = row.insertCell(1);
|
||||
let signaturesCell = row.insertCell(1);
|
||||
|
||||
let evolution = row.insertCell(2);
|
||||
|
||||
let result = document.createElement('span');
|
||||
|
||||
|
@ -168,6 +170,14 @@ function getComparison() {
|
|||
|
||||
signatures = signatures.split('\\');
|
||||
|
||||
for (let signature of signatures) {
|
||||
let signatureElem = document.createElement('a');
|
||||
signatureElem.href = 'https://crash-stats.mozilla.com/signature/?signature=' + signature;
|
||||
signatureElem.textContent = signature;
|
||||
signaturesCell.appendChild(signatureElem);
|
||||
signaturesCell.appendChild(document.createElement('br'));
|
||||
}
|
||||
|
||||
let query1 = fetch('https://crash-stats.mozilla.com/api/SuperSearch/?product=' + getOption('product') + '&_results_number=0&_facets_size=0&version=' + getOption('beta1') + '&date=>%3D' + dateToStr(date1) + '&date=<%3D' + dateToStr(endDate1) + '&signature=%3D' + signatures.join('&signature=%3D'))
|
||||
.then(response => response.json());
|
||||
let query2 = fetch('https://crash-stats.mozilla.com/api/SuperSearch/?product=' + getOption('product') + '&_results_number=0&_facets_size=0&version=' + getOption('beta2') + '&date=>%3D' + dateToStr(date2) + '&date=<%3D' + dateToStr(endDate2) + '&signature=%3D' + signatures.join('&signature=%3D'))
|
||||
|
|
Загрузка…
Ссылка в новой задаче