Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 72afc0397a89cb72e335aaeb23cb307ad8be02d7
https://github.com/tribe29/checkmk/commit/72afc0397a89cb72e335aaeb23cb307ad…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-14 (Wed, 14 Jul 2021)
Changed paths:
M cmk/gui/config.py
M cmk/gui/plugins/webapi/webapi.py
M cmk/gui/watolib/sites.py
M tests/unit/cmk/gui/plugins/wato/test_check_mk_configuration.py
M tests/unit/cmk/gui/test_gui_config.py
M tests/unit/cmk/gui/test_sidebar.py
Log Message:
-----------
GUI config: Unglobalize parts of config loading
This is the first step on the way to unglobalize the config
handling of the GUI.
With this step applying of the default config, reading the config
files and applying their values is moved to a local `raw_config`
dictionary.
At the end, this `raw_config` dictionary is still applied to the globals
for compatibility. Once the rest of the code is refactored, this will
be dropped.
Change-Id: I553e5d74099ec78dac9c034730777133f0d96191
Commit: 28d4b676a549274c7cf7e1a7a36c29b9657c3a81
https://github.com/tribe29/checkmk/commit/28d4b676a549274c7cf7e1a7a36c29b96…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-07-14 (Wed, 14 Jul 2021)
Changed paths:
M cmk/gui/config.py
M cmk/gui/watolib/config_domains.py
M tests/unit/cmk/gui/plugins/wato/test_check_mk_configuration.py
M tests/unit/cmk/gui/test_gui_config.py
M tests/unit/cmk/gui/test_sidebar.py
Log Message:
-----------
Simplify + unglobalize default setting loading
The default settings for legacy plugins were previously first loaded
into the module global scope, then the changed variables of the global
scope were observed to catch the variables that have been added to the
global scope. Then the variables were added to the module global
`default_config` which was then used to initialize the global scope
later before config loading. Somehow crazy...
Now everything is done straight forward.
Change-Id: Ia280ca60f5ef5a49a7ef18a1816fdee4427e1137
Compare:
https://github.com/tribe29/checkmk/compare/0d5a02061e18...28d4b676a549