Werk #15983: time_period: verify time_period usage before deletion and fix the reference for time_periods being saved to the configuration file in exclude field.

Component REST API
Title time_period: verify time_period usage before deletion and fix the reference for time_periods being saved to the configuration file in exclude field.
Date Aug 2, 2023
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.1.0p33 2.2.0p8 2.3.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

Prior to this werk, the REST API did not correctly check if a time period to be deleted was being referenced by another object. This werk fixes this and prevents the REST API from deleting a time period that is currently being referenced.

Also, prior to this werk, the REST API was incorrectly storing the reference to other time periods in the exlusion field. This werk fixes this and now the REST API stores the correct values in the configuration files.

To the list of all Werks