Werk #15663: Single-metric dashlets: Fix crash when setting fixed data range in time units

Component Metrics system
Title Single-metric dashlets: Fix crash when setting fixed data range in time units
Date Apr 28, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b6 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p27 Checkmk Enterprise (CEE), Checkmk MSP (CME)

When attempting to configure Data range > Fixed range in time units (Timespan or Duration in seconds) for single-metric dashlets such as gauges, the default value (100 s) lead to a crash when saving:

The parameter "type_p_display_range_0_3_0_days" is not an integer.

Users could still fill in integer values manually and successfully save the dashlet configuration. As of this werk, also the default value can be saved without an error message.

To the list of all Werks