diff --git a/brian_dashboard_manager/templating/helpers.py b/brian_dashboard_manager/templating/helpers.py index 4834f30cdc004618d2b75f36e2672caf962335a3..fb2375fb03331dba331e8ef79321067ef0af66fc 100644 --- a/brian_dashboard_manager/templating/helpers.py +++ b/brian_dashboard_manager/templating/helpers.py @@ -247,6 +247,7 @@ def get_panel_fields(panel, panel_type, datasource): 'refId': next(letters), 'select_field': field, 'percentile': 'percentile' in alias.lower(), + 'bits': panel_type != 'errors' # used to remove *8 on value } error_fields = [('Ingress Errors', 'errorsIn'), diff --git a/brian_dashboard_manager/templating/templates/shared/panel_target.json.j2 b/brian_dashboard_manager/templating/templates/shared/panel_target.json.j2 index 7247e1723a84bbca4e9ad1de260f6101d3ef6958..933435eac77702ecb681abca6c2a049a34d13472 100644 --- a/brian_dashboard_manager/templating/templates/shared/panel_target.json.j2 +++ b/brian_dashboard_manager/templating/templates/shared/panel_target.json.j2 @@ -31,17 +31,19 @@ { "params": [], "type": "mean" - }, + } {% else %} { "params": [95], "type": "percentile" - }, + } {% endif %} - { + {% if bits %} + ,{ "params": ["*8"], "type": "math" } + {% endif %} ] ], "tags": [ diff --git a/changelog.md b/changelog.md index 8d1f69b99bbc9012612de89dcad50822f61809ad..16fff57e5a951ce891d00adb5182dc143f85eea8 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,9 @@ All notable changes to this project will be documented in this file. +## [0.30] - 2021-11-24 +- Fix error with *8 multiplier also being performed on errors/discard fields + ## [0.29] - 2021-11-23 - POL1-480: Discards added to error graphs diff --git a/setup.py b/setup.py index 2b894bff3fe61cc98fb3b46b5b51ea7f0415fecc..3c7692818386f01f35c2bb0730134ab0982ff1fe 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='brian-dashboard-manager', - version="0.29", + version="0.30", author='GEANT', author_email='swd@geant.org', description='',