Branch: refs/heads/2.3.0
Home:
https://github.com/Checkmk/checkmk
Commit: 6d12ffa957bb4b416fcc161ae5883d9e225cf7f5
https://github.com/Checkmk/checkmk/commit/6d12ffa957bb4b416fcc161ae5883d9e2…
Author: Rebekka Seltmann <rebekka.seltmann(a)checkmk.com>
Date: 2024-05-27 (Mon, 27 May 2024)
Changed paths:
A .werks/16797.md
M cmk/gui/utils/rule_specs/legacy_converter.py
M tests/unit/cmk/gui/utils/rulespecs/test_legacy_converter.py
Log Message:
-----------
Fix KeyError for nested form_specs.DictGroup
This is only relevant for plugin developers.
In some cases when a `DictGroup` was used inside a FormSpec hierarchy an error would occur
during validation of the relevant rule (e.g. when saving):
```
KeyError: 'DictGroup(title=<title>,help_text=<help_text>)'
```
Specifically this occurs when there are multiple `Transform`s applied outside the
`DictGroup`, e.g. with multiple nested Dictionaries or when a `migrate`/`custom_validate`
function is defined on the parent FormSPec of the `DictGroup`'s `Dictionary`.
CMK-17513
Change-Id: I2b5cc0840c25cdf0ad2ddb4027422fa5f2a9e81f
To unsubscribe from these emails, change your notification settings at
https://github.com/Checkmk/checkmk/settings/notifications