Expose persistent collection gaps and public Congress links
Development CI / check-and-build (push) Successful in 2m56s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Successful in 2m31s

Retain bill and attachment failure reasons and derive retry counts from saved cursors. Show gap details and retry exhaustion in the collection console while preserving historical records and retry limits.

Convert Congress API bill links to public pages and cover diagnostics, mixed dated versions, persistent counts and legacy records with regression tests.
This commit is contained in:
eezd committed 2026-11-05 12:44:42 +08:00
1 parent dcad5b76a8
commit d5d350b7ec
8 files changed
+182 -14

No files matched your search

+14 -1
View File
@@ -19,7 +19,13 @@ export interface SourceInfo {
paused_until: string | null
collection_stats?: Record<string, number>
configuration_error?: string | null
history_cursor?: { history?: { scanned?: boolean }, realtime?: { entry: number } }
history_cursor?: {
history?: { scanned?: boolean }
realtime?: { entry: number }
document_retries?: Record<string, CollectionRetry>
attachment_retries?: Record<string, CollectionRetry>
bill_retries?: Record<string, CollectionRetry>
}
supports_history: boolean
history_target: string | null
history_position: string | null
@@ -30,6 +36,13 @@ export interface SourceInfo {
total_items: number
}
export interface CollectionRetry {
document: { url: string, canonical?: string }
attempts: number
next_at: number
error?: string
}
export interface SourcesInfo {
manager_alive: boolean
db_size_bytes: number