@@ -694,8 +694,7 @@ def v4_run_graph(id):
694
694
abort (404 , "Invalid run id {}" .format (id ))
695
695
696
696
# Convert the old style test parameters encoding.
697
- args = {'highlight_run' : id }
698
- plot_number = 0
697
+ args = {'highlight_run' : id , 'plot' : []}
699
698
for name , value in request .args .items ():
700
699
# If this isn't a test specification, just forward it.
701
700
if not name .startswith ('test.' ):
@@ -708,11 +707,10 @@ def v4_run_graph(id):
708
707
#
709
708
# into the new style of::
710
709
#
711
- # plot.<number> =<machine id>.<test id>.<sample field index>
710
+ # plot=<machine id>.<test id>.<sample field index>
712
711
test_id = name .split ('.' , 1 )[1 ]
713
- args ['plot.%d' % (plot_number ,)] = '%d.%s.%s' % (
714
- run .machine .id , test_id , value )
715
- plot_number += 1
712
+ args ['plot' ].append ('%d.%s.%s' % (
713
+ run .machine .id , test_id , value ))
716
714
717
715
return v4_redirect (v4_url_for (".v4_graph" , ** args ))
718
716
@@ -750,7 +748,7 @@ def v4_graph_for_sample(sample_id, field_name):
750
748
if field_index is None :
751
749
abort (400 , "Could not find field {}" .format (field_name ))
752
750
753
- kwargs = {'plot.0 ' : '{machine_id}.{test_id}.{field_index}' .format (
751
+ kwargs = {'plot' : '{machine_id}.{test_id}.{field_index}' .format (
754
752
machine_id = target_sample .run .machine .id ,
755
753
test_id = target_sample .test_id ,
756
754
field_index = field_index )}
@@ -1760,10 +1758,8 @@ def v4_matrix():
1760
1758
"""A table view for Run sample data, because *some* people really
1761
1759
like to be able to see results textually.
1762
1760
request.args.limit limits the number of samples.
1763
- for each dataset to add, there will be a "plot.n=.m.b.f" where m is machine
1764
- ID, b is benchmark ID and f os field kind offset. "n" is used to unique
1765
- the paramters, and is ignored.
1766
-
1761
+ for each dataset to add, there will be a "plot=.m.b.f" where m is machine
1762
+ ID, b is benchmark ID and f os field kind offset.
1767
1763
"""
1768
1764
session = request .session
1769
1765
ts = request .get_testsuite ()
0 commit comments