Fix reports using 'NOT RUN' (#13577)
This commit is contained in:
parent
53d2c7c3c5
commit
99bb3bba6e
@ -70,9 +70,9 @@ function LoadDevices() {
|
|||||||
function filterTable() {
|
function filterTable() {
|
||||||
device = $("#devices").val();
|
device = $("#devices").val();
|
||||||
if (device == 0) {
|
if (device == 0) {
|
||||||
$("#report td.value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").show();
|
$("#report td.value, #report td.nr_value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").show();
|
||||||
} else {
|
} else {
|
||||||
$("#report td.value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").filter(function () {
|
$("#report td.value, #report td.nr_value, #report td.table-secondary, #report td.table-primary, #report th.table-dark.device").filter(function () {
|
||||||
$(this).toggle($(this).hasClass(device))
|
$(this).toggle($(this).hasClass(device))
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ function calculateColumnStatistics(device) {
|
|||||||
$('#statistic .table-primary[scope="row"] i').text(total);
|
$('#statistic .table-primary[scope="row"] i').text(total);
|
||||||
// trusted op
|
// trusted op
|
||||||
count_trusted_op = $("#report #data tr:not(:hidden) ." + device + ".value[value^='100'][crashed='0'][failed='0'][skipped='0']").length;
|
count_trusted_op = $("#report #data tr:not(:hidden) ." + device + ".value[value^='100'][crashed='0'][failed='0'][skipped='0']").length;
|
||||||
all_operations = $("#report #data tr:not(:hidden) .value[value!='N/A'][value!='---']." + device).length;
|
all_operations = $("#report #data tr:not(:hidden) .value[value!='N/A'][value!='---'][value!='NOT RUN']." + device).length;
|
||||||
if (!all_operations) {
|
if (!all_operations) {
|
||||||
trusted_op = "---";
|
trusted_op = "---";
|
||||||
} else {
|
} else {
|
||||||
@ -225,7 +225,7 @@ function calculateColumnStatistics(device) {
|
|||||||
// AVG Pass Rate
|
// AVG Pass Rate
|
||||||
sum_pass_rate = 0;
|
sum_pass_rate = 0;
|
||||||
$("#report #data tr:not(:hidden) ." + device + ".value").each(function () {
|
$("#report #data tr:not(:hidden) ." + device + ".value").each(function () {
|
||||||
if ($(this).attr('value') != 'N/A' && $(this).attr('value') != '---') {
|
if ($(this).attr('value') != 'N/A' && $(this).attr('value') != 'NOT RUN' && $(this).attr('value') != '---') {
|
||||||
sum_pass_rate += +$(this).attr('value');
|
sum_pass_rate += +$(this).attr('value');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -18,16 +18,16 @@ body {
|
|||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nr_value {
|
.nr_value value {
|
||||||
font-weight: 500;
|
font-weight: inherit;
|
||||||
background: #8080803d;
|
background: #8080803d;
|
||||||
}
|
}
|
||||||
.nr_value span {
|
.nr_value span {
|
||||||
display:inline-block;
|
display:inherit;
|
||||||
font-weight: 400;
|
font-weight: inherit;
|
||||||
padding: 1px 5px;
|
padding: inherit;
|
||||||
border-radius: 2px;
|
border-radius: inherit;
|
||||||
cursor: default;
|
cursor: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.green {
|
.green {
|
||||||
|
Loading…
Reference in New Issue
Block a user