Werk #16682: Ruleset API: Fix migration with scaling of SimpleLevels

Component Checks & agents
Title Ruleset API: Fix migration with scaling of SimpleLevels
Date Apr 17, 2024
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required
Checkmk versions & editions
2.4.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change is relevant to plugin developers

The migration helper functions migrate_to_integer_simple_levels and migrate_to_float_simple_levels for SimpleLevels currently apply the scaling factor (if given) every time the migration is run, meaning also to the already migrated value. This means any rule where these helpers are used with a scaling factor will have incorrect values and will have to be manually corrected.

No shipped rules are affected by this.

To the list of all Werks