Skip to content

Coverage: no ratio when the supplier lists no documents - #337

Merged
joepio merged 1 commit into
mainfrom
claude/project-thread-i9z6xh
Oct 5, 2026
Merged

joepio merged 1 commit into
mainfrom
claude/project-thread-i9z6xh

Conversation

@joepio

@joepio joepio commented Oct 5, 2026

Copy link
Copy Markdown
Member

Before: a coverage check where the supplier listed 0 documents in the window published ratio: 1, which reads as complete. Leiden, Zaanstad and Purmerend show exactly that in /api/status while their newest content ends in March 2022, December 2022 and June 2025.

After: ratio is null when supplierDocuments is 0, the same "unknown" a failed check already gives. The numbers stay as measured.

The ratio of 0 held over 0 says nothing about completeness. It is also what a source looks like when it publishes through a module we do not read or elsewhere altogether.

How: toSourceCoverage in web/status_api.ts returns null instead of 1, with a test in tests/coverage_check.test.ts. SourceCoverage docs in src/types.ts and API.md describe the new case.

Refs the question from Sander Bakker's forwarded mail on Notubiz, Parlaeus and Velsen.


Generated by Claude Code

A check of 0 supplier documents published ratio 1, which read as complete.
Leiden, Zaanstad and Purmerend show exactly that while their content ends in
2022 or 2025. The ratio is now null in that case, like for a failed check.
@joepio
joepio marked this pull request as ready for review October 5, 2026 10:57
@joepio
joepio merged commit 377cf1a into main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants