Branch: refs/heads/2.2.0
Home:
https://github.com/tribe29/checkmk
Commit: 45c725c15e6e4afbf8495efce0e68dc6596ea70c
https://github.com/tribe29/checkmk/commit/45c725c15e6e4afbf8495efce0e68dc65…
Author: Gav <gavin.mcguigan(a)tribe29.com>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
A .werks/15378
M cmk/gui/plugins/openapi/endpoints/time_periods/__init__.py
M cmk/gui/plugins/openapi/endpoints/time_periods/request_schemas.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_time_period.py
Log Message:
-----------
15378 FIX timeperiod: day & time_ranges now load deafults when not included in the
request
This werk is to fix an issue when creating time periods via the rest-api.
Previously when creating a time period, you could send an empty nested
value for active_time_ranges. Now, if the attributes day or time_ranges
are not given, the defaults are used.
CMK-12181
Change-Id: Ic18278e3e47d3a4fd8aa116311eaa21c8a4a7e08