fix: mark incomplete legacy collections
Win Diagnostics CI All diagnostic checks passed.
Beffroi/win-diagnostics/pipeline/head This commit looks good Details

This commit is contained in:
Dandaedre 2026-09-16 02:50:15 +02:00
parent dc3e5f092c
commit cce15ebda6
Signed by: Dandaedre
GPG Key ID: 440C6592E8A26D99
1 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@
#let sections = (:)
#for pair in capture.sections.pairs() { sections.insert(pair.first(), normalize-section(pair.last())) }
#let complete = sections.len() > 0 and sections.values().all(section => section.status == "ok" and not section.truncated)
#let source-warnings = get(capture, "warnings", default: ()).map(str).filter(item => item.match(regex("\\S")) != none)
#let complete = sections.len() > 0 and sections.values().all(section => section.status == "ok" and not section.truncated) and source-warnings.len() == 0
#let collection-status = if complete { "complete" } else { "partial" }
#let selected = if version == 1 { ("recent_system_errors", "recent_application_errors") } else { ("recent_system_events", "recent_application_events") }
#let observations = ()
@ -130,7 +131,7 @@
}
}
#let warnings = get(capture, "warnings", default: ()).map(str).filter(item => item.match(regex("\\S")) != none)
#let warnings = source-warnings
#if not complete { warnings.push("Legacy capture collection is incomplete; finding confidence is capped at 50.") }
#warnings.push("Migrated analyser supports " + str(rules.len()) + " event rules and " + str(watchlist.len()) + " candidate watchlist entries; unmatched events remain unanalysed.")
#let clean-observations = observations.map(item => {