Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 89f16ff1ea3d7178d952be364bfe7e3200cafd92
https://github.com/tribe29/checkmk/commit/89f16ff1ea3d7178d952be364bfe7e320…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2022-10-24 (Mon, 24 Oct 2022)
Changed paths:
M cmk/gui/context.py
M cmk/gui/hooks.py
M cmk/gui/logged_in.py
M cmk/gui/plugins/openapi/endpoints/contact_group_config.py
A cmk/gui/plugins/openapi/permission_tracking.py
M cmk/gui/plugins/openapi/restful_objects/__init__.py
M cmk/gui/plugins/openapi/restful_objects/decorators.py
M cmk/gui/wsgi/applications/rest_api.py
Log Message:
-----------
Untangle OpenAPI endpoint from UI framework code
The new approach decouples the integration by using hooks. The
disadvantage is that this is more loosely coupled, which makes the
connection invisible for static tooling, but it seems to be OK in
this case.
The permission recording state is now moved to the dedicated module
cmk.gui.plugins.openapi.permission_tracking.
And the actual tracking is implemented in the endpoint. From the body
of the function you can also see that it is tightly coupled with the
endpoint, so we now seem to have the best place.
Change-Id: Ie2279e80ad9dfc1e73020058c35a3f89cf336ccd