fix(health): ignore future article timestamps; flag unset vessel/FIRMS keys #59

Merged
sirius merged 1 commit from wt/t_ceb74e64 into master 2026-11-17 19:56:21 +00:00

2026-11-14

Sirius DevOps
fix(health): ignore future article timestamps; flag unset vessel/FIRMS keys
/api/health articles.age_s used max(timestamp) with no future-date filter,
so rows ahead of now() reported a negative age. Use the same closed window
as the news list (timestamp <= now(); NULL timestamps are not fresh). If
every non-null timestamp is in the future, age_s is null and ok is false.

GET /api/stats keeps existing counters and adds feeds.vessels.configured
and feeds.fires.configured from non-empty api_keys values only. The stored
value is never returned.
2026-11-14 00:34:39 -05:00