aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-05-22 08:25:29 +0200
committerTibor Frank <tifrank@cisco.com>2020-05-22 11:11:14 +0000
commit22c5e184d7f8bde86653333f522b3c3e1229ffd4 (patch)
tree585325680229695d1228e8776714ad352f000a38
parent041e1ec708a7c0680d34b2600883bca5e0044944 (diff)
CSIT-1703: Trending: Improve sorting in the dashboard
New order: 1. regressions, 2. progressions, 3. short-term diff, 4. long-term diff, 5. test name. Change-Id: Ie232d6759a088173fd56e2563c293cdfac352a98 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit d832848a4db1248a3a7c2fee8c325257aca2dec7)
-rw-r--r--resources/tools/presentation/generator_tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index d36f9a9245..132d85c1ea 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -908,13 +908,14 @@ def table_perf_trending_dash(table, input_data):
classification_lst[-win_size+1:].count(u"progression")])
tbl_lst.sort(key=lambda rel: rel[0])
+ tbl_lst.sort(key=lambda rel: rel[3])
+ tbl_lst.sort(key=lambda rel: rel[2])
tbl_sorted = list()
for nrr in range(table[u"window"], -1, -1):
tbl_reg = [item for item in tbl_lst if item[4] == nrr]
for nrp in range(table[u"window"], -1, -1):
tbl_out = [item for item in tbl_reg if item[5] == nrp]
- tbl_out.sort(key=lambda rel: rel[2])
tbl_sorted.extend(tbl_out)
file_name = f"{table[u'output-file']}{table[u'output-file-ext']}"