Skip to content

Infer daily statistics failures from expected podcasts - #230

Merged
mre merged 1 commit into
mainfrom
statistics-inferred-daily-failures
Jul 22, 2026
Merged

Infer daily statistics failures from expected podcasts#230
mre merged 1 commit into
mainfrom
statistics-inferred-daily-failures

Conversation

@mre

@mre mre commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Fill all 90 daily bars by treating every podcast ever seen for an endpoint as expected each day.
  • Infer daily failures from missing successful updates instead of showing grey no-data bars.
  • Remove first-seen/grey-bar logic and the extra first-update query.
  • Keep a code comment documenting that updates only records successful imports.

Note

This intentionally treats missing successful updates as failures for dashboard purposes. That matches the rule that active podcasts are expected to run every endpoint daily, but it is still inferred from successes rather than explicit failure records.

Validation

  • npx jest src/api/StatusApi.test.ts src/db/StatusRepository.test.ts --runInBand
  • npm run build
  • npm run lint

@mre
mre merged commit 80d3b77 into main Jul 22, 2026
2 checks passed
@mre
mre deleted the statistics-inferred-daily-failures branch July 22, 2026 13:57
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.

1 participant