Werk #15508: time_period: verify time_period usages before deletion

Component REST API
Title time_period: verify time_period usages before deletion
Date Mar 20, 2023
Checkmk Version 2.3.0b1 2.2.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Affected Editions
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

Prior to this werk, the REST API did not check whether a time period to be deleted was referenced by other objects. This caused a conflict after deletion. This werk fixes this by preventing the REST API from performing a deletion if the time period is currently being referenced.

To the list of all Werks