From d8a9b0ab25d3510b28f6b7608a2a21fc75800f84 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 18 Apr 2017 17:38:07 +0200 Subject: Show sorted tests in dashboard. --- elastic/generate-config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'elastic/generate-config.py') diff --git a/elastic/generate-config.py b/elastic/generate-config.py index 9d5358c..b935cb6 100755 --- a/elastic/generate-config.py +++ b/elastic/generate-config.py @@ -45,7 +45,7 @@ def generate_dashboards(): count = 0 for test_name in tests: count += 1 - panels += '{\\"id\\":\\"' + test_name + '\\",\\"panelIndex\\":' + str(count) + ',\\"col\\":1,\\"row\\":' + str(count) + ',\\"size_x\\":6,\\"size_y\\":3,\\"type\\":\\"visualization\\"}, ' + panels += '{\\"id\\":\\"' + test_name + '\\",\\"panelIndex\\":1,\\"col\\":1,\\"row\\":' + str(count) + ',\\"size_x\\":6,\\"size_y\\":3,\\"type\\":\\"visualization\\"}, ' panels = panels[:-2] panels += ']' @@ -69,6 +69,7 @@ tests = [] for d in buckets: name = d['key'] tests.append(name) +tests = sorted(tests) generate_dashboards() generate_visualizations() -- cgit v1.2.3