Skip to content

Commit e6079e9

Browse files
committed
Simplify subject detail view
Signed-off-by: Matthias Büchse <matthias.buechse@alasca.cloud>
1 parent 84ddd88 commit e6079e9

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

compliance-monitor/templates/details.md.j2

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
Testcase occurrences inside scope versions are marked
2-
"X" for required testcases (target _main_) and
3-
"(x)" for recommended testcases (with the specific target in the tooltip).
4-
51
Version numbers are suffixed by a symbol depending on state:
62
\* for _draft_, † for _warn_ (soon to be deprecated), and †† for _deprecated_.
73

@@ -29,29 +25,22 @@ No recent test results available.
2925

3026
{% else %}
3127

32-
{% for cat, val in (('FAILED', -1), ('Aborted', 0), ('Missing', None), ('Passed', 1)) -%}
33-
{% set bucket = scope_result.buckets[val] -%}
34-
{% if bucket -%}
35-
### {{cat}} testcases
36-
37-
{% if val == -1 %}Note: recommended testcases (marked "(x)") do not count into the
38-
overall result of a version.{% endif %}
28+
The columns labeled _(rec)_ contain recommended testcases for the scope version named in the preceding column header.
3929

40-
| testcase id |{% if val is not none %} reported on |{% endif %}{% for version in scope_result.relevant %} {{ version }}{{ scope_result.versions[version].validity | validity_symbol }} |{% endfor %} description |
41-
|---|{% if val is not none %}---|{% endif %}{% for version in scope_result.relevant %}---|{% endfor %}---|
30+
| testcase id | result |{% for version in scope_result.relevant %} {{ version }}{{ scope_result.versions[version].validity | validity_symbol }} | (rec) |{% endfor %} description |
31+
|---|---|{% for version in scope_result.relevant %}---|---|{% endfor %}---|
32+
{% for cat, val in (('FAILED', -1), ('MISSING', None), ('inconclusive', 0), ('passed', 1)) -%}
33+
{% set bucket = scope_result.buckets[val] -%}
4234
{% for testcase_id in bucket -%}
4335
{% set testcase = scope_result.testcases[testcase_id] -%}
4436
{% set res = scope_result.results[testcase_id] if testcase_id in scope_result.results else dict(result=0) -%}
4537
| [{{ testcase_id }}]({{ testcase.url }}) {# -#}
46-
{%- if val is not none -%}
47-
| {% if res.report %}[{{ res.checked_at | short_isodate }}]({{ report_url(res.report, version, testcase_id) }}) { title="{{ res.report }} {{ res.checked_at }}" }{% endif %} {# -#}
48-
{%- endif %}{# val is not none -#}
38+
| {{cat}}{% if res.report %} ([{{ res.checked_at | short_isodate }}]({{ report_url(res.report, version, testcase_id) }})) { title="{{ res.report }} {{ res.checked_at }}" }{% endif %} {# -#}
4939
{% for version in scope_result.relevant %}| {%
5040
set tgt = scope_result.versions[version].tc_target[testcase_id]
51-
%}{% if tgt == 'main' %}X { title="main" }{% elif tgt %}(x) { title="{{ tgt }}" }{% endif %} {% endfor -%}
41+
%}{% if tgt == 'main' %}X { title="main" }{% endif %} | {% if tgt and tgt != 'main' %}x { title="{{ tgt }}" }{% endif %} {% endfor -%}
5242
| {{ testcase.description | trim }} |
53-
{% endfor %}{# testcase #}
54-
{% endif %}{# bucket nonempty -#}
43+
{% endfor %}{# testcase -#}
5544
{% endfor %}{# categories #}
5645

5746
{% endif %}{# results available -#}

0 commit comments

Comments
 (0)