Branch: refs/heads/2.2.0
Home:
https://github.com/Checkmk/checkmk
Commit: b7cb260b0a72a99624011f0eba035ec6b45ec0f0
https://github.com/Checkmk/checkmk/commit/b7cb260b0a72a99624011f0eba035ec6b…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
A .werks/16099
M cmk/gui/fields/base.py
Log Message:
-----------
16099 FIX create_host: creating a host with a custom attribute now returns expected
attributes
This werk addresses an issue when creating a host with custom attributes. For
example, when you added a new tag to a tag group and then created a host with
that tag group: tag value, the created host would have this new attribute but
it wouldn't have any other attributes.
So sending this in your request, after creating the new tag 'tag1',
C+:
{
"folder": "~",
"host_name": "api_created_host2",
"attributes": {
"ipaddress": "127.0.0.1",
"tag_agent": "no-agent",
"tag_snmp_ds": "no-snmp",
"tag_networking": "tag1"
}
}
C-:
before this would create a host with the only the tag networking attribute
and ignore all others, like so
C+:
{
...
"attributes" {
"tag_networking": "tag1"
}
C-:
Now, we return all the expected attributes.
SUP-14816
Change-Id: Ic91628f382837006173cb2582dd19da3afca1acb
Commit: 52bf35f4b7ccee62a91594b110abe1b9195fcac4
https://github.com/Checkmk/checkmk/commit/52bf35f4b7ccee62a91594b110abe1b91…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
A .werks/16098
M cmk/gui/fields/__init__.py
M cmk/gui/fields/custom_fields.py
M cmk/gui/fields/definitions.py
M cmk/gui/plugins/openapi/endpoints/notification_rules/response_schemas.py
M tests/unit/cmk/gui/plugins/openapi/test_notification_rules.py
Log Message:
-----------
16098 FIX notification rules: match_folder value now matches correctly to available
folders
This werk addresses an issue when creating or updating a notification rule
via the REST-API. Previously, it would not correctly match the desired folder
and as a result, you had to set this option to disabled which meant all rules
were created in the main folder only.
Now the match_folder value field should match a folder id, in the form of the
folder path, replacing / for ~
E.g.
/folder1 -> ~folder1
/folder1/folder2 -> ~folder1~folder2
Change-Id: If58bcc32bc74bcb485bc66117100dd32fecc348d
Commit: a1833077d3c9ce000f1a5065b6bee26c2ddf3b14
https://github.com/Checkmk/checkmk/commit/a1833077d3c9ce000f1a5065b6bee26c2…
Author: Gav <gavin.mcguigan(a)checkmk.com>
Date: 2023-09-14 (Thu, 14 Sep 2023)
Changed paths:
M cmk/gui/plugins/openapi/endpoints/acknowledgement/__init__.py
M cmk/gui/plugins/openapi/endpoints/cert/__init__.py
M cmk/gui/plugins/openapi/endpoints/host_internal/__init__.py
M cmk/gui/plugins/openapi/endpoints/host_tag_group/__init__.py
M cmk/gui/plugins/openapi/endpoints/service_discovery/__init__.py
M cmk/gui/plugins/openapi/utils.py
M tests/unit/cmk/gui/plugins/openapi/test_openapi_host_internal.py
Log Message:
-----------
problem response: ensure all problem responses include the detail field
On a few REST API endpoints, the problem response was missing the detail
field which violates the schema.
CMK-14273
Change-Id: Ia15611d73e033dd83d9c8e8b2df1792f1e455087
Compare:
https://github.com/Checkmk/checkmk/compare/29ee0325105a...a1833077d3c9