From 7ea9bcabecf4c651effafc172031e12e2f270581 Mon Sep 17 00:00:00 2001 From: Tim Buckley Date: Thu, 30 Jul 2015 11:45:50 -0600 Subject: [PATCH] Add gzip support to results/sunburst --- stackviz/static/js/visuals.js | 4 ++-- stackviz/templates/tempest/results.html | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/stackviz/static/js/visuals.js b/stackviz/static/js/visuals.js index b9f08eb..7ca4766 100644 --- a/stackviz/static/js/visuals.js +++ b/stackviz/static/js/visuals.js @@ -48,7 +48,7 @@ function displayFailingTests(d) { $( "#failure-table-div" ).hide(); } -function createSunburst(run_id) { +function createSunburst(url) { var width = 700, height = 500, @@ -77,7 +77,7 @@ function createSunburst(run_id) { .innerRadius(function(d) { return Math.max(0, y(d.y)); }) .outerRadius(function(d) { return Math.max(0, y(d.y + d.dy)); }); - d3.json("tempest_api_tree_" + run_id + ".json", function(error, root) { + d3.json(url, function(error, root) { if (error) throw error; displayFailingTests(root); diff --git a/stackviz/templates/tempest/results.html b/stackviz/templates/tempest/results.html index 3c35259..68a8bf0 100644 --- a/stackviz/templates/tempest/results.html +++ b/stackviz/templates/tempest/results.html @@ -68,7 +68,16 @@ - +