Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 841bc312d5b61f100f667480f79700ab7a590aad
https://github.com/tribe29/checkmk/commit/841bc312d5b61f100f667480f79700ab7…
Author: Óscar Nájera <oscar.najera(a)tribe29.com>
Date: 2020-12-18 (Fri, 18 Dec 2020)
Changed paths:
M cmk/gui/plugins/dashboard/single_metric.py
M cmk/gui/plugins/dashboard/utils.py
M cmk/gui/plugins/metrics/unit.py
M cmk/utils/render.py
M web/htdocs/js/modules/figures/cmk_figures.js
M web/htdocs/js/modules/figures/cmk_gauge.js
M web/htdocs/js/modules/figures/cmk_timeseries.js
M web/htdocs/js/modules/number_format.js
Log Message:
-----------
Proposal on unit formatting JS
The Function object is safer than a straightforward eval. It can find the
desired function. From the python side it only needs to register a js
renderer, which is directly js code.
- Register all js renderers in metric system
- Gauge & single metric use the new system
- Gauge can now display its range
CMK-5872
Change-Id: I28950160eef21aeda742a48fb317feed005dfc69