From a4e00a20f1099bd5e65d9bd46d5dc54d2dc50961 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 30 Jan 2014 13:19:52 -0800 Subject: [PATCH] Add tab to only plot gate failures to status.o.o/elastic-recheck/ The 'Gate Queue' tab will only count hits that have caused gate failures This, along with the overall categorization rate, help us have better insight into what is causing the gate to reset. Note: This needs a config patch to land before this can work. The expected location of the output of elastic-recheck-graph has changed. Co-Authored-By: Michael Krotscheck Change-Id: I23ed8d945c9517221622e1ca215c80539bb07bbd --- web/share/elastic-recheck.js | 2 +- web/share/gate.html | 65 ++++++++++++++++++++++++++++ web/share/index.html | 35 +++++---------- web/share/styles/elastic-recheck.css | 57 ++++++++++++++++++++++++ 4 files changed, 133 insertions(+), 26 deletions(-) create mode 100644 web/share/gate.html create mode 100644 web/share/styles/elastic-recheck.css diff --git a/web/share/elastic-recheck.js b/web/share/elastic-recheck.js index 95e36fc5..52bf4c6b 100644 --- a/web/share/elastic-recheck.js +++ b/web/share/elastic-recheck.js @@ -31,7 +31,7 @@ function graphite_hit_count(job, color) { function update() { - $.getJSON('http://status.openstack.org/elastic-recheck/data/graph.json', function(data) { + $.getJSON(data_url, function(data) { var seen = []; $.each(data, function(i, bug) { var id = 'bug-'+bug['number']; diff --git a/web/share/gate.html b/web/share/gate.html new file mode 100644 index 00000000..578e7d3a --- /dev/null +++ b/web/share/gate.html @@ -0,0 +1,65 @@ + + + Elastic Recheck + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + diff --git a/web/share/index.html b/web/share/index.html index 581d90a7..3648cefd 100644 --- a/web/share/index.html +++ b/web/share/index.html @@ -17,7 +17,10 @@ + src="elastic-recheck.js"> + @@ -39,29 +42,8 @@ - + + @@ -70,7 +52,10 @@ h3 { - +
diff --git a/web/share/styles/elastic-recheck.css b/web/share/styles/elastic-recheck.css new file mode 100644 index 00000000..90aa62d7 --- /dev/null +++ b/web/share/styles/elastic-recheck.css @@ -0,0 +1,57 @@ + +.graph { + width: 600px; + height: 200px; + margin-bottom: 6px; +} +.extlink { + margin-left: 2em; + margin-right: 2em; +} +.bug-container { + margin-bottom: 2em; +} +table { + width: auto; +} +h2 { + padding-top: 1em; +} +h3 { + font-size: 1.1em; +} + +ul.nav.nav-tabs { + list-style: none; + padding: 0px; + margin: 0px; + height: 24px; + border-bottom: 1px solid #EEEEEE; +} + +ul.nav.nav-tabs li { + float: left; + position: relative; + display: block; + margin-bottom: -1px; +} + +ul.nav.nav-tabs li a { + background-color: #F8F8F8; + margin-bottom: -1px; + border: 1px solid #EEEEEE; + padding: 8px 10px 8px 10px; + border-top-left-radius: 5px; + border-top-right-radius: 5px; +} + +ul.nav.nav-tabs li.active a { + background-color: #FFFFFF; + border-bottom: 1px solid #FFFFFF; +} + +.recheck-graph-container { + padding: 10px; + border: 1px solid #EEEEEE; + border-top: none; +} \ No newline at end of file