Replace ADS-B stub with real disabled/degraded source handling #7

Closed
opened 2026-05-17 11:21:51 +00:00 by MrSphay · 2 comments
Owner

Created from local project scan.

Current status: apis/sources/adsb.mjs contains a documented stub/no-data path. That is acceptable as a placeholder, but production health should not make a stub look equivalent to a live source.

Acceptance criteria:

  • When ADSB_API_KEY/RAPIDAPI_KEY is missing and public feed is unavailable, report ADS-B as disabled/degraded, not as live data.
  • Surface the source state in /api/health and /api/metrics.
  • Add docs for expected provider, API key, limits, and failure modes.
  • Add tests for key-missing, public-feed-failed, and RapidAPI-success cases.
Created from local project scan. Current status: apis/sources/adsb.mjs contains a documented stub/no-data path. That is acceptable as a placeholder, but production health should not make a stub look equivalent to a live source. Acceptance criteria: - When ADSB_API_KEY/RAPIDAPI_KEY is missing and public feed is unavailable, report ADS-B as disabled/degraded, not as live data. - Surface the source state in /api/health and /api/metrics. - Add docs for expected provider, API key, limits, and failure modes. - Add tests for key-missing, public-feed-failed, and RapidAPI-success cases.
Author
Owner

In Bearbeitung durch Codex auf Branch codex/issue-7-adsb-degraded. Scope: ADS-B Source-Zustand fuer fehlende Keys/Providerfehler schaerfen, Health/Metrics-kompatible Source-Daten beibehalten, gezielte Tests und Source-Doku. Keine README-weiten oder Docker-Aenderungen, damit parallele Branches sauber mergbar bleiben.

In Bearbeitung durch Codex auf Branch codex/issue-7-adsb-degraded. Scope: ADS-B Source-Zustand fuer fehlende Keys/Providerfehler schaerfen, Health/Metrics-kompatible Source-Daten beibehalten, gezielte Tests und Source-Doku. Keine README-weiten oder Docker-Aenderungen, damit parallele Branches sauber mergbar bleiben.
Author
Owner

PR geoeffnet: #11\n\nStatus: Umsetzung fuer Issue #7 ist fertig auf Branch codex/issue-7-adsb-degraded. ADS-B meldet jetzt disabled/degraded statt scheinbar live, Source-Health wertet diese Stati als degraded, Tests und Source-Doku sind ergaenzt. Lokale npm/node Tests nicht ausgefuehrt; Runner soll npm run test:unit pruefen.

PR geoeffnet: https://git.wilkensxl.de/MrSphay/intelligence-terminal/pulls/11\n\nStatus: Umsetzung fuer Issue #7 ist fertig auf Branch codex/issue-7-adsb-degraded. ADS-B meldet jetzt disabled/degraded statt scheinbar live, Source-Health wertet diese Stati als degraded, Tests und Source-Doku sind ergaenzt. Lokale npm/node Tests nicht ausgefuehrt; Runner soll npm run test:unit pruefen.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MrSphay/intelligence-terminal#7