fix(cameras): stop publishing discovery rows as events #57

Merged
sirius merged 2 commits from wt/t_f6e95af9 into master 2026-11-17 19:55:51 +00:00
Owner

Summary

  • publish_new_cameras() no longer JetStream-publishes events.camera messages. A scrape cycle therefore inserts 0 new events rows with source_type=camera.
  • The cameras table upsert in run_cycle() is unchanged. GET /api/cameras, snapshots, and HLS are untouched.
  • Existing camera rows already in events are left in place.

Why

The HUD event list was camera-index noise (Open camera (UCSD) and friends). The cameras table is the index; the map layer already reads GET /api/cameras and filters source_type !== 'camera' off the event blips.

Consumers checked

  • Only writer of source_type=camera on this branch was publish_new_cameras() in app/run_camera_service.py. The masscan publisher was already removed on master (#45).
  • The ingester still pull-subscribes events.> (including events.camera) and would insert a message if one arrived. Nothing else publishes that subject.
  • /ws/live is AIS/ADS-B/geofence, not camera discovery. No separate alert subscriber on events.camera.

Test plan

  • pytest tests/test_event_ingest.py tests/test_camera_publish.py -q — 7 passed
  • git grep -n "Open camera" -- app/run_camera_service.py prints nothing

Do not merge from this card. Known-red CI step docker login 127.0.0.1:3000 is pre-existing.

## Summary - `publish_new_cameras()` no longer JetStream-publishes `events.camera` messages. A scrape cycle therefore inserts 0 new `events` rows with `source_type=camera`. - The cameras table upsert in `run_cycle()` is unchanged. `GET /api/cameras`, snapshots, and HLS are untouched. - Existing camera rows already in `events` are left in place. ## Why The HUD event list was camera-index noise (`Open camera (UCSD)` and friends). The cameras table is the index; the map layer already reads `GET /api/cameras` and filters `source_type !== 'camera'` off the event blips. ## Consumers checked - Only writer of `source_type=camera` on this branch was `publish_new_cameras()` in `app/run_camera_service.py`. The masscan publisher was already removed on master (#45). - The ingester still pull-subscribes `events.>` (including `events.camera`) and would insert a message if one arrived. Nothing else publishes that subject. - `/ws/live` is AIS/ADS-B/geofence, not camera discovery. No separate alert subscriber on `events.camera`. ## Test plan - [x] `pytest tests/test_event_ingest.py tests/test_camera_publish.py -q` — 7 passed - [x] `git grep -n "Open camera" -- app/run_camera_service.py` prints nothing Do not merge from this card. Known-red CI step `docker login 127.0.0.1:3000` is pre-existing.
Camera scrapes still upsert the cameras table. They no longer
JetStream-publish events.camera messages, which the ingester was
inserting as HUD event spam.
Merge branch 'master' into wt/t_f6e95af9
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 6s
386118153e
sirius merged commit 386118153e into master 2026-11-17 19:55:51 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/osint-dashboard!57
No description provided.