Zuul status: only count live changes
Currently the check queue count includes non-live changes. Update it to only count live changes, as that is more reflective of what is going on and what people expect. Change-Id: I65c40e4c9eed2db2e020253defe230b65b76000b
This commit is contained in:
parent
633420931b
commit
ab07b3fc0b
@ -108,7 +108,9 @@ function create_tree(pipeline) {
|
||||
});
|
||||
$.each(change_queue['heads'], function(head_i, head) {
|
||||
$.each(head, function(change_i, change) {
|
||||
count += 1;
|
||||
if (change.live === true) {
|
||||
count += 1;
|
||||
}
|
||||
var idx = tree.indexOf(change['id']);
|
||||
if (idx > -1) {
|
||||
change['_tree_index'] = idx;
|
||||
|
Loading…
x
Reference in New Issue
Block a user