Merge "put the fails24 in the right place"

This commit is contained in:
Jenkins 2014-01-22 14:02:29 +00:00 committed by Gerrit Code Review
commit 469a24835e
2 changed files with 5 additions and 2 deletions

View File

@ -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):

View File

@ -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'] + ' &nbsp; 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/>', {