Skip to content
Snippets Groups Projects
Commit 61f53799 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

POL1-706 add warning banner about average values

parent 7d9f7a01
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ PANEL_WIDTH = 24
logger = logging.getLogger(__file__)
def num_generator(start=1):
def num_generator(start=30):
"""
Generator for numbers starting from the value of `start`
......
......@@ -39,6 +39,23 @@
"version": 1,
"links": [],
"panels": [
{
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"content": "",
"mode": "html"
},
"pluginVersion": "8.2.5",
"title": "INFO: The average values displayed are only mean values for timescales of 2 days or less",
"type": "text"
},
{% for panel in aggregate_panels %}
{{ panel }},
{% endfor %}
......
......@@ -39,6 +39,23 @@
"version": 1,
"links": [],
"panels": [
{
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"content": "",
"mode": "html"
},
"pluginVersion": "8.2.5",
"title": "INFO: The average values displayed are only mean values for timescales of 2 days or less",
"type": "text"
}{{ "," if panels }}
{% for panel in panels %}
{{ panel }}{{ "," if not loop.last }}
{% endfor %}
......
......@@ -337,5 +337,5 @@ def test_provision_aggregate(data_config, mocker, client):
panels = result['panels']
expected_title = f'Aggregate - {TEST_DASHBOARD["dashboard_name"]}'
assert result['title'] == expected_title
assert len(panels) == 14
assert len(panels[0]['targets']) == len(TEST_DASHBOARD['interfaces'])
assert len(panels) == 15
assert len(panels[1]['targets']) == len(TEST_DASHBOARD['interfaces'])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment