prop/test/microwaveprop_web
Graham McIntire 7c37bf67fe
refactor(web): drop the unreachable viewport_too_large guard
Raising the area cap to 4600 put it above the largest area clamp/1 can
emit (45° lat × 100° lon = 4500 sq deg), so :viewport_too_large became
unreachable and the 413 handlers in both cell controllers became dead
code.

Remove the cap, the error branch, the max_viewport_area_sq_deg/0
accessor and both payload_too_large/1 handlers. The clamp is what
bounds request cost: post-clamp nothing can ask for more than the full
grid (~92k cells, ~1.4 MB), which is materialized once per valid_time
and served from cache, so a global viewport costs no more than a fully
zoomed-out map.

Replaces the cap test with one asserting the clamp never lets absurd
input escape the supported extent — the property the guard was
standing in for.
2026-08-05 17:51:55 -05:00
..
api fix: resolve 391 Credo issues across codebase 2026-06-12 13:51:32 -05:00
controllers fix(weather): serve the fully zoomed-out viewport instead of 413ing it 2026-08-05 17:44:17 -05:00
live fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00
plugs Fix LiveView crashes and stabilize test suite 2026-08-01 09:26:47 -05:00
analytics_test.exs feat: harden /map analysis breakdown + move Plausible to root layout 2026-04-21 15:56:30 -05:00
grid_bounds_test.exs refactor(web): drop the unreachable viewport_too_large guard 2026-08-05 17:51:55 -05:00
live_helpers_test.exs refactor: deduplicate helpers and simplify Scorer 2026-04-28 14:14:34 -05:00
live_table_footer_test.exs Show windowed page list in live_table footer 2026-04-13 10:02:19 -05:00
location_resolver_test.exs refactor: deduplicate helpers and simplify Scorer 2026-04-28 14:14:34 -05:00
metrics_log_suppression_test.exs fix(web): suppress HEAD request logs 2026-04-22 16:50:58 -05:00
metrics_plug_test.exs test: push line coverage from 71.7% → 78.67% 2026-04-23 18:43:18 -05:00
skew_t_property_test.exs test(property): add property tests for terrain + atmospheric math 2026-04-21 13:56:39 -05:00
skew_t_test.exs fix: resolve all 281 credo issues across source and test files 2026-07-29 09:04:21 -05:00
telemetry_test.exs Fix LiveView crashes and stabilize test suite 2026-08-01 09:26:47 -05:00
user_auth_test.exs fix: prevent contacts_dedup_idx collisions in parallel async tests 2026-08-04 17:05:16 -05:00