osint-dashboard/alembic/versions
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Sirius DevOps ca1c73e1a6 news: per-article proximate geolocation + GET /api/news/blips
Every graded article now carries best-effort geo on article_scores:
- parse_map_scores extracts Location/Lat/Lon/Confidence per block
  (clamp_coords-validated; Unknown -> no geo; never invent a place)
- place-name-only blocks resolve via a vendored offline GeoNames
  gazetteer (cities15000 + admin1 + country->capital), confidence approx
- nullable location_name/lat/lon/location_confidence columns (alembic
  014, single head; idempotent ensure_tables mirror) + partial bbox index
- GET /api/news/blips: frozen contract, dedup by article id (latest geo
  wins), finite coords only, created_at DESC, bbox/since/limit, default
  1000 max 5000, public read like /api/news/map
- critical/high map pins, ticker, grading thresholds, dedupe unchanged

Tests: 50 new summarizer geo tests (161 total), 18 new blips API
contract tests; alembic upgrade heads proven on fresh DBs both start
orders; forced batch on test DB yielded 10 non-critical blips with geo.

Card: t_bc15eb53
2026-11-19 22:50:59 -05:00
..
001_initial.py Fix SQLAlchemy 2.0 count().filter(); add search_vector trigger for full-text search 2026-07-07 18:32:02 -04:00
002_cameras.py Fix alembic migration fork: chain 002_cameras after 002_fires 2026-08-24 15:44:05 -04:00
002_fires.py Add NASA FIRMS active-fire ingest + /api/fires; API keys management page 2026-08-24 15:37:42 -04:00
003_news.py Add news pipeline: hourly scraper + Gemini summarizer in compose 2026-08-24 17:28:46 -04:00
004_camera_enum.py Migration 004 fix: pg_type catalog table, not pg_typname 2026-08-24 21:29:25 -04:00
005_news_items.py feat: add news_items table and summary model column 2026-08-28 17:06:55 -04:00
005_phase2.py feat: lean-Pi WS fan-out, geofences, DVR playback, fire/aircraft correlation 2026-08-28 09:35:18 -04:00
006_merge_phase2_news.py fix: merge alembic heads so the dashboard stops crash-looping 2026-08-28 18:29:06 -04:00
007_event_dedup.py fix: pipeline reliability — WS, summarizer, ingest, health 2026-08-28 21:49:05 -04:00
008_summary_kind.py feat: 23:00 daily news recap; prompts drop futures 2026-08-28 22:53:31 -04:00
009_vessels.py fix(map): geofence delete, vessel snapshots, sentinel cache, news briefs 2026-08-29 20:40:27 -04:00
010_bbox_gist.py fix(ops): pin TiTiler digest, GIST bbox indexes, single uvicorn worker 2026-09-01 00:47:06 -04:00
011_geofence_alerts_fence.py feat(geofence): watch list, filtered hit log, fence snapshot 2026-09-01 01:24:36 -04:00
012_article_scores.py feat(summarizer): score articles in the map phase, brief only the important ones 2026-11-13 21:47:30 -05:00
013_article_scores_duplicate_of.py feat(summarizer): collapse syndicated wire copies before selection 2026-11-13 22:14:44 -05:00
014_article_scores_geo.py news: per-article proximate geolocation + GET /api/news/blips 2026-11-19 22:50:59 -05:00