put the fails24 in the right place
Change-Id: I8669320f978af8cbb1661601838997e442c4f87a
This commit is contained in:
parent
8bc515f251
commit
11cc86b5c6
@ -75,6 +75,7 @@ def main():
|
||||
logstash_query=logstash_query,
|
||||
bug_data=bug_data,
|
||||
fails=0,
|
||||
fails24=0,
|
||||
data=[])
|
||||
buglist.append(bug)
|
||||
results = classifier.hits_by_query(query['query'], size=3000)
|
||||
@ -89,7 +90,6 @@ def main():
|
||||
facets.detect_facets(results,
|
||||
["build_status", "timestamp", "build_uuid"])
|
||||
|
||||
bug['fails24'] = 0
|
||||
for status in facets.keys():
|
||||
data = []
|
||||
for ts in range(start, now, STEP):
|
||||
|
@ -43,7 +43,10 @@ function update() {
|
||||
div.appendTo($('#main-container'));
|
||||
$('<h2/>', {text: 'Bug ' + bug['number'] + " - " + bug['bug_data']['name']}).appendTo(div);
|
||||
$('<h3/>', {
|
||||
text: 'Last 24 hr hits: ' + bug['bug_data']['fails24'] + ' projects: ' + bug['bug_data']['affects']
|
||||
text: bug['fails24'] + ' fails in 24hrs / ' + bug['fails'] + ' fails in 7 days'
|
||||
}).appendTo(div);
|
||||
$('<h3/>', {
|
||||
text: 'Projects: ' + bug['bug_data']['affects']
|
||||
}).appendTo(div);
|
||||
$('<div/>', {'class': 'graph'}).appendTo(div);
|
||||
$('<a/>', {
|
||||
|
Loading…
Reference in New Issue
Block a user