Skip to content

Commit 60fab8e

Browse files
committed
Provide more context in details page
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent a33eeeb commit 60fab8e

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

compliance-monitor/monitor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ def reload_static_config(*args, do_ensure_schema=False):
883883
verdict=verdict_filter,
884884
verdict_check=verdict_check_filter,
885885
markdown=markdown,
886+
validity_symbol=ASTERISK_LOOKUP.get,
886887
)
887888
reload_static_config(do_ensure_schema=True)
888889
signal.signal(signal.SIGHUP, reload_static_config)

compliance-monitor/templates/details.md.j2

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
Note: testcase occurrences inside scope versions are marked
1+
Testcase occurrences inside scope versions are marked
22
bold "**X**" for required testcases (target _main_) and
33
plain "x" for recommended testcases (with the specific target in the tooltip).
44

5+
Version numbers are suffixed by a symbol depending on state:
6+
\* for _draft_, † for _warn_ (soon to be deprecated), and †† for _deprecated_.
7+
58
{% if results | length > 1 %}
69
Jump to
710

@@ -31,7 +34,10 @@ No recent test results available.
3134
{% if bucket -%}
3235
### {{cat}} testcases
3336

34-
| testcase id |{% for version in scope_result.relevant %} {{ version }} |{% endfor %} description |
37+
{% if res == -1 %}Note: recommended testcases (marked lower-case x) do not count into the
38+
overall result of a version.{% endif %}
39+
40+
| testcase id |{% for version in scope_result.relevant %} {{ version }}{{ scope_result.versions[version].validity | validity_symbol }} |{% endfor %} description |
3541
|---|{% for version in scope_result.relevant %}---|{% endfor %}---|
3642
{% for testcase_id in bucket -%}
3743
{% set res = scope_result.results[testcase_id] if testcase_id in scope_result.results else dict(result=0) -%}

0 commit comments

Comments
 (0)