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