Merge "Cleanup web code"

This commit is contained in:
Jenkins 2015-06-26 19:42:40 +00:00 committed by Gerrit Code Review
commit a676b95ccc
2 changed files with 2 additions and 19 deletions

View File

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

View File

@ -71,7 +71,7 @@ More information on the system can be found <a href="http://docs.openstack.org/i
<h1>Unclassified failed jobs</h1>
Overall Categorization Rate: {{ rate['overall'] }}%
<p>
Total: {{ total }} - Found: {{ count }} = Unclassifed: {{ uncounted }}
Total: {{ total }} - Found: {{ count }} = Unclassified: {{ uncounted }}
</p>
<p>
Generated at: <span id="generated-date">{{ generated_at }}</span>