Index: lnt/server/ui/templates/reporting/runs.html
===================================================================
--- lnt/server/ui/templates/reporting/runs.html
+++ lnt/server/ui/templates/reporting/runs.html
@@ -94,7 +94,9 @@
{{ r.start_time.isoformat() }} |
{{ r.end_time - r.start_time }} |
{% if show_producers %}
- {{ r.parameters.producer|producerAsHTML }} |
+
+ {{ r.parameters.producer|producerAsHTML|safe if 'producer' in r.parameters else "" }}
+ |
{% endif %}
{% else %}
Index: tests/server/ui/Inputs/V4Pages_extra_records.sql
===================================================================
--- tests/server/ui/Inputs/V4Pages_extra_records.sql
+++ tests/server/ui/Inputs/V4Pages_extra_records.sql
@@ -76,7 +76,8 @@
INSERT INTO "NT_Run" ("MachineID", "OrderID", "ImportedFrom", "StartTime",
"EndTime", "SimpleRunID", "Parameters")
VALUES(2,6,'run7.json','2012-05-10 16:28:23.000000',
- '2012-05-10 16:28:58.000000',NULL,'[]'); -- ID 7
+ '2012-05-10 16:28:58.000000',NULL,
+ '[["producer", "http://my.build.server/buildResult"]]'); -- ID 7
INSERT INTO "NT_Run" ("MachineID", "OrderID", "ImportedFrom", "StartTime",
"EndTime", "SimpleRunID", "Parameters")
VALUES(2,7,'run8.json','2012-05-11 16:28:23.000000',
Index: tests/server/ui/V4Pages.py
===================================================================
--- tests/server/ui/V4Pages.py
+++ tests/server/ui/V4Pages.py
@@ -288,6 +288,9 @@
check_redirect(client, '/v4/nts/1/graph?test.3=2',
'v4/nts/graph\?plot\.0=1\.3\.2&highlight_run=1$')
+ # Get a run that contains producer information
+ check_code(client, '/v4/nts/7')
+
# Get the new graph page.
check_code(client, '/v4/nts/graph?plot.0=1.3.2')
# Don't crash when requesting non-existing data