From checkmk-commits@lists.checkmk.com Mon May 27 14:35:59 2024 From: Checkmk git commit messages To: checkmk-commits@lists.checkmk.com Subject: [checkmk-commits] [Checkmk/checkmk] 6d12ff: Fix KeyError for nested form_specs.DictGroup Date: Mon, 27 May 2024 07:35:55 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0730054227092023483==" --===============0730054227092023483== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Branch: refs/heads/2.3.0 Home: https://github.com/Checkmk/checkmk Commit: 6d12ffa957bb4b416fcc161ae5883d9e225cf7f5 https://github.com/Checkmk/checkmk/commit/6d12ffa957bb4b416fcc161ae5883= d9e225cf7f5 Author: Rebekka Seltmann 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 erro= r would occur during validation of the relevant rule (e.g. when saving): ``` KeyError: 'DictGroup(title=3D,help_text=3D<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 `DictGrou= p`'s `Dictionary`. CMK-17513 Change-Id: I2b5cc0840c25cdf0ad2ddb4027422fa5f2a9e81f To unsubscribe from these emails, change your notification settings at https:= //github.com/Checkmk/checkmk/settings/notifications --===============0730054227092023483==--