Werk #14821: Custom extensions might need adjustment due to refactorings in GUI code (Transform)

Komponente Setup
Titel Custom extensions might need adjustment due to refactorings in GUI code (Transform)
Datum 06.09.2022
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.2.0b1
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Inkompatibel - Manuelle Interaktion könnte erforderlich sein

This werk only affects users of non-Checkmk custom extensions (single files and MKPs from non- Checkmk sources such as the Checkmk exchange).

Before this werk, the Checkmk codebase offered the ValueSpec subclass Transform, which was used for two things:

  • Changing the format in which configured values are stored (back and forth specified).
  • Updating legacy configurations to the current format (forth only specified).

As of this werk, the Transform class should only be used for the first point above (changing the storage format). It now expects two arguments to_valuespec (previously forth) and from_valuespec (previously back). back and forth are still accepted as arguments and work as before. However, back and forth will be removed in a future version and to/from_valuespec will become mandatory.

For updating legacy configurations, use the new Migrate class, which requires a mandatory migrate argument. This is the equivalent of specifying forth only in the Transform class.

Zur Liste aller Werks