Module: check_mk
Branch: master
Commit: d561e1afd5acfe922d08b96d47c230d195263ea6
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d561e1afd5acfe…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 12 20:16:10 2019 +0100
Cleaned up tag config + builtin merging
* Merging of both tag domains is now done by the tag managing
objects on their own using the previously existing merging logic.
* Cleaned up some call sites to config.host_tag_groups and
config.aux_tags on the way to directly use config.tags.
* WATO tag list modes now use the tag object structure during page
rendering instead of the legacy config level structures.
* Cleaned up redundant tests
Next step is to clean up all call sites of config.host_tag_groups
and config.aux_tags to use the tag model objects instead of the
legacy config level data structures.
CMK-1813
Change-Id: I2d3fd0cb2566aebee2b8fadee8ac5077733fa6c1
---
cmk/gui/config.py | 35 ++-----------
cmk/gui/tags.py | 22 ++++++++
cmk/gui/views.py | 69 +++++++++++--------------
cmk/gui/wato/pages/bulk_import.py | 4 +-
cmk/gui/wato/pages/tags.py | 91 ++++++++++++++-------------------
tests/unit/cmk/gui/watolib/test_tags.py | 25 +++++++++
6 files changed, 122 insertions(+), 124 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=d561e1afd5…
Module: check_mk
Branch: master
Commit: 20c89e90bc840c64a7f3677e36a860d3bd88e543
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=20c89e90bc840c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 12 08:31:58 2019 +0100
Extract tag persistance from tag objects
* Loading and saving of tag configurations is now done by the TagConfigFile
class.
* The tags are loaded from the new configuration file tags.mk when it
exists. Otherwise the tags will be loaded from hosttags.mk and
converted from the legacy format to the dict format in memory.
* The tags.mk file is always saved in the new dict based format.
Next step is to move the legacy format conversion out of the single
objects to the TagConfigFile class.
CMK-1813
Change-Id: I3a42d3bf0efd070a60f61f87aebfd1ba8e14b18e
---
cmk/gui/config.py | 8 +--
cmk/gui/plugins/config/base.py | 9 +++-
cmk/gui/plugins/wato/builtin_attributes.py | 4 +-
cmk/gui/plugins/webapi/webapi.py | 9 ++--
cmk/gui/wato/pages/tags.py | 27 ++++++----
cmk/gui/watolib/__init__.py | 46 ++++++++--------
cmk/gui/watolib/tags.py | 84 ++++++++++++++----------------
tests/conftest.py | 1 +
tests/unit/cmk/gui/watolib/test_tags.py | 20 +++----
tests/unit/cmk_base/test_packaging.py | 3 +-
10 files changed, 114 insertions(+), 97 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=20c89e90bc…
Module: check_mk
Branch: master
Commit: 252a4e9c411b29c308142a631d1ca0439ed120a0
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=252a4e9c411b29…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 12 15:39:11 2019 +0100
Started cleaning up builtin tag handling
* Reduce builtin tag specific code
* Builtin tags will be handled by tag model classes just like
the manually configured tags.
Next step is to cleanup the builtin and configured tag merging.
CMK-1813
Change-Id: Ia1bac9afd878200a6f02fffb8b83ce063199229a
---
cmk/gui/config.py | 206 ++++++++++++++++++++++++++-------------
cmk/gui/plugins/webapi/webapi.py | 15 +--
cmk/gui/tags.py | 3 +
cmk/gui/wato/pages/tags.py | 9 +-
4 files changed, 148 insertions(+), 85 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=252a4e9c41…