Branch: refs/heads/2.1.0
Home:
https://github.com/Checkmk/checkmk
Commit: 9a84e5809fcf9954b4e014bd8cc08e79fe996394
https://github.com/Checkmk/checkmk/commit/9a84e5809fcf9954b4e014bd8cc08e79f…
Author: Leonardo Petrora <leonardo.petrora(a)checkmk.com>
Date: 2023-08-11 (Fri, 11 Aug 2023)
Changed paths:
A .werks/15983
M cmk/gui/plugins/openapi/endpoints/time_periods/__init__.py
M cmk/gui/plugins/wato/utils/simple_modes.py
M cmk/gui/watolib/timeperiods.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_time_period.py
Log Message:
-----------
15983 FIX time_period: verify time_period usage before deletion and fix the reference
for time_periods being saved to the configuration file in exclude field
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.
Ticket: SUP-15073
Change-Id: I315908012509d12aafb782ecd836fa54423e434b