From 11cc86b5c67522c5c32021c4463ba04137e8f20e Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 22 Jan 2014 08:52:41 -0500 Subject: [PATCH] put the fails24 in the right place Change-Id: I8669320f978af8cbb1661601838997e442c4f87a --- elastic_recheck/cmd/graph.py | 2 +- web/share/elastic-recheck.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/elastic_recheck/cmd/graph.py b/elastic_recheck/cmd/graph.py index add4d8d8..6ec32be3 100755 --- a/elastic_recheck/cmd/graph.py +++ b/elastic_recheck/cmd/graph.py @@ -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): diff --git a/web/share/elastic-recheck.js b/web/share/elastic-recheck.js index 998d17c4..8f5ec940 100644 --- a/web/share/elastic-recheck.js +++ b/web/share/elastic-recheck.js @@ -43,7 +43,10 @@ function update() { div.appendTo($('#main-container')); $('

', {text: 'Bug ' + bug['number'] + " - " + bug['bug_data']['name']}).appendTo(div); $('

', { - 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); + $('

', { + text: 'Projects: ' + bug['bug_data']['affects'] }).appendTo(div); $('
', {'class': 'graph'}).appendTo(div); $('', {