prop/lib/microwaveprop_web
Graham McIntire 2d9e5a2d1f
Make the map timeline read .ntms files authoritatively
Two related fixes so the main map reliably picks up new binary
propagation score files as soon as PropagationGridWorker writes them.

1. Propagation.available_valid_times/1 previously preferred ScoreCache
   over ScoresFile, using the cache as an index of what was available.
   The cache is a lazy ETS of whatever hours have been fetched or
   broadcast, which is a strict subset of what's on disk. A new
   forecast hour landing on disk while the cache was warm with older
   entries was invisible to the timeline until the cache happened to
   catch up. Read directly from ScoresFile so the disk store is the
   source of truth.

2. Add Propagation.scores_at_fresh/3 that always reads the .ntms file
   and overwrites the cache entry, and use it from MapLive's
   propagation_updated handler. PropagationGridWorker publishes the
   cache_refresh on `propagation:cache` and the timeline ping on
   `propagation:updated` as separate PubSub broadcasts, so by the time
   MapLive runs through scores_at the ScoreCache GenServer may not
   have processed the refresh yet — fetch_bounds then returns the
   previous chain's bytes. scores_at_fresh takes disk as the source
   of truth for the refresh path and warms the cache as a side effect
   so subsequent readers see the new data.
2026-04-14 17:42:30 -05:00
..
components Admin-only nav dropdown 2026-04-12 17:07:07 -05:00
controllers Serve /contacts/map payload via HTTP endpoint, parallel hydrate 2026-04-12 13:10:51 -05:00
live Make the map timeline read .ntms files authoritatively 2026-04-14 17:42:30 -05:00
plugs fix enrichment 2026-04-02 15:30:41 -05:00
endpoint.ex Suppress health check request logs 2026-04-06 11:55:01 -05:00
gettext.ex initial 2026-03-28 11:28:47 -05:00
live_table_footer.ex Show windowed page list in live_table footer 2026-04-13 10:02:19 -05:00
router.ex live_table polish + status page cleanup 2026-04-12 18:19:41 -05:00
skew_t.ex Add skew-T log-P diagram to the contact detail page 2026-04-14 16:52:23 -05:00
telemetry.ex initial 2026-03-28 11:28:47 -05:00
user_auth.ex Beacon power in mW, settings tweaks 2026-04-08 12:45:35 -05:00