From f12c45046cf3398cc67063b53079476a47a10173 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 11 Jun 2015 12:59:27 +0300 Subject: [PATCH] Cleanup web code * Fix typos * Remove unused functions Change-Id: I5a5142667f391ba1e04668736c997f458839961f --- web/share/elastic-recheck.js | 19 +------------------ web/share/templates/uncategorized.html | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/web/share/elastic-recheck.js b/web/share/elastic-recheck.js index 74224a34..7f569423 100644 --- a/web/share/elastic-recheck.js +++ b/web/share/elastic-recheck.js @@ -12,23 +12,6 @@ // License for the specific language governing permissions and limitations // under the License. -function graphite_moving_avg(job, color) { - var time = '5hours'; - var graph = "color(alias(movingAverage(asPercent("; - graph += "stats.zuul.pipeline.gate.job." + job + ".FAILURE,"; - graph += "sum(stats.zuul.pipeline.gate.job." + job + ".{SUCCESS,FAILURE})"; - graph += "),'" + time + "'), '" + job + "'),'" + color + "')"; - return graph; -} - -function graphite_hit_count(job, color) { - var time = '5hours'; - var graph = "color(alias(hitcount("; - graph += "sum(stats.zuul.pipeline.gate.job." + job + ".{SUCCESS,FAILURE})"; - graph += ",'" + time + "'), '" + job + "'),'" + color + "')"; - return graph; -} - function update_graph_for_bug(main, bug) { var div = main.find("#bug-" + bug['number'] + " .graph"); if (bug['fails'] > 0) { @@ -94,7 +77,7 @@ function update() { // The graph functions are slow, but there is actually no // reason to hold up the main paint thread for them, so put // them into an async mode to run as soon as they can. This - // dramatically increases percevied page load speed. + // dramatically increases perceived page load speed. $.each(buglist, function(i, bug) { setTimeout(function() { update_graph_for_bug(main, bug); diff --git a/web/share/templates/uncategorized.html b/web/share/templates/uncategorized.html index 8335995b..0af1419b 100644 --- a/web/share/templates/uncategorized.html +++ b/web/share/templates/uncategorized.html @@ -71,7 +71,7 @@ More information on the system can be found {{ generated_at }}