Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 3285dfc6efce812355785c1598f4997d83a7c31c
https://github.com/Checkmk/checkmk/commit/3285dfc6efce812355785c1598f4997d8…
Author: Benedikt Seidl <benedikt.seidl(a)checkmk.com>
Date: 2023-09-25 (Mon, 25 Sep 2023)
Changed paths:
M .werks/10038
M .werks/10217
M .werks/10218
M .werks/10544
M .werks/10565
M .werks/10718
M .werks/10943
M .werks/11164
M .werks/11208
M .werks/1147
M .werks/11484
M .werks/11525
M .werks/11711
M .werks/11714
M .werks/11725
M .werks/11759
M .werks/11846
M .werks/11879
M .werks/11900
M .werks/1225
M .werks/12251
M .werks/12533
M .werks/12713
M .werks/12801
M .werks/12810
M .werks/12817
M .werks/12850
M .werks/13121
M .werks/13139
M .werks/13336
M .werks/13393
M .werks/13414
M .werks/13473
M .werks/13479
M .werks/13562
M .werks/13576
M .werks/13639
M .werks/13670
M .werks/13833
M .werks/1384
M .werks/13911
M .werks/1394
M .werks/13982
M .werks/14077
M .werks/14087
M .werks/14100
M .werks/14104
M .werks/14121
M .werks/14138
M .werks/14300
M .werks/14321
M .werks/14343
M .werks/14534
M .werks/14608
M .werks/14654
M .werks/14790
M .werks/14821
M .werks/15009
M .werks/15146
M .werks/15184
M .werks/15189
M .werks/15205
M .werks/15233
M .werks/15261
M .werks/15450
M .werks/15463
M .werks/15854
M .werks/15859
M .werks/16019
M .werks/16041
M .werks/1665
M .werks/1699
M .werks/1800
M .werks/1830
M .werks/1863
M .werks/1901
M .werks/1902
M .werks/1903
M .werks/220
M .werks/2256
M .werks/2277
M .werks/2373
M .werks/2443
M .werks/2487
M .werks/277
M .werks/2794
M .werks/2821
M .werks/2902
M .werks/3227
M .werks/344
M .werks/3616
M .werks/3940
M .werks/4018
M .werks/403
M .werks/4116
M .werks/4452
M .werks/4757
M .werks/5055
M .werks/5139
M .werks/5185
M .werks/557
M .werks/5584
M .werks/5633
M .werks/5701
M .werks/5785
M .werks/5823
M .werks/5930
M .werks/5944
M .werks/6098
M .werks/6185
M .werks/6239
M .werks/6425
M .werks/7075
M .werks/7088
M .werks/7185
M .werks/7195
M .werks/7205
M .werks/7214
M .werks/7287
M .werks/7503
M .werks/7514
M .werks/7776
M .werks/7778
M .werks/8025
M .werks/8066
M .werks/8124
M .werks/8558
M .werks/8704
M cmk/gui/werks.py
M cmk/utils/werks/__init__.py
M cmk/utils/werks/__main__.py
M cmk/utils/werks/announce/__init__.py
M cmk/utils/werks/collect.py
M cmk/utils/werks/convert.py
M cmk/utils/werks/mail/__init__.py
M cmk/utils/werks/werk.py
M cmk/utils/werks/werkv1.py
M cmk/utils/werks/werkv2.py
M tests/code_quality/test_werks.py
M tests/unit/cmk/utils/werks/test_werks.py
Log Message:
-----------
remove loading of werkv1: convert them to werkv2 before loading
this commit is quite big as multiple things have to be done at once:
* The parsing of v2/markdown werks is more strict compared to parsing
v1/nowiki werks. This means that we need to fix all HTML problems in
the existing nowiki werks.
* Since we will be converting the werks to markdown, we fixed the HTML
issues using markdown syntax. However, this also means that the
markdown syntax will be visible if it is merged independently of the
other changes in this commit.
* The nowiki/markdown mix will be resolved in a later commit when all
werks are converted to markdown.
* Previously, we had a namedtuple called "Werk" that defined a common
structure for both werkv1 and werkv2, allowing us to work with a
single data structure. But now, since we transform werkv1 before
loading it, we can directly work with "RawWerkV2" (which was renamed
to "Werk") as the differentiation between V1 and V2 Werks is no longer
prominent.
* We still parse (read the file, extract metadata and description)
werkv1, but we no longer load (validate metadata and put it into a
pydantic model) it. After parsing, it is transformed into a werkv2.
This is also why we remove the NoWiki type, that was used to signal
that the content it nowiki-formatted text. We now only handle markdown
formatted text, or html.
* Models from werkv1.py and werkv2.py are removed. Werkv1 models are
deleted, and werkv2 models are moved to werk.
Change-Id: I6f1af17f0d7aeb91fbfcb39c5b0d746843b9ca95