Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 06a70d12dc2f4e7015f6962daa03177e4876fb20
https://github.com/tribe29/checkmk/commit/06a70d12dc2f4e7015f6962daa03177e4…
Author: Ronny Bruska <ronny.bruska(a)tribe29.com>
Date: 2022-05-19 (Thu, 19 May 2022)
Changed paths:
A .werks/14117
M cmk/gui/plugins/sidebar/master_control.py
M tests/unit/cmk/gui/plugins/sidebar/test_snapins.py
Log Message:
-----------
14117 FIX Fix refresh of master sidebar snapin "Master control"
CMK-10447
Change-Id: I877de3f866996cc92f6c5c1f863c1a7a64f27f4d
Commit: d021170dc7b2d138dae1389455c4b1c24bce98e5
https://github.com/tribe29/checkmk/commit/d021170dc7b2d138dae1389455c4b1c24…
Author: Sven Panne <sven.panne(a)tribe29.com>
Date: 2022-05-19 (Thu, 19 May 2022)
Changed paths:
M cmk/gui/page_state.py
M cmk/gui/type_defs.py
M cmk/gui/wato/pages/pattern_editor.py
Log Message:
-----------
Simplified CSSSpec type alias.
Having both a list[str] and a list[Optional[str]] in a Union is not really
helpful: Python's Unions are not tagged, so we can't distinguish between
those alternatives. Consider e.g. the case when we have a ["hurz"] at
hand: Is it a list[str] or a list[Optional[str]]? We simply don't know.
The same holds for [], etc. etc.
With this simplification, dispatching on a CSSSpec value is easy now: Is it
None? Is it a str? Or something else (i.e. a list)? The last case will
probably change to a Sequence in the future, so we have to do the dispatch
in that order, because a str is a Sequence, too.
Change-Id: I536a848caf2e4cecd8256c67ddb042f56c576e25
Compare:
https://github.com/tribe29/checkmk/compare/f6cfffa13491...d021170dc7b2