Skip to content

v0.1.7: NFIP canvas staging, county FIPS normalization, dataset error cleanup

Choose a tag to compare

@cyanheads cyanheads released this 10 Jun 18:20
v0.1.7
421996e

NFIP canvas staging, county FIPS normalization, dataset error cleanup

NFIP query results now page to the full matching set before staging to canvas (bounded by 50k cap), so canvas SQL aggregations see the complete dataset. Three related fixes land together.

Fixed:

  • fema_search_nfip canvas staging pages the full matching result set via $skip, not just limit rows; input.limit controls the inline preview only; truncated reflects cap-hit vs. exhaustion; canvas_id/canvas_table omitted when not spilled (#5)
    • OpenFEMA 503 HTML responses now classify as retryable ServiceUnavailable instead of unknown_dataset
    • Canvas pagination drops $orderby (sorted deep pagination times out upstream; SQL ORDER BY runs at query time)
  • fema_search_nfip county code auto-normalizes 3-digit codes to 5-digit state+county FIPS when state is provided (#6)
  • fema_query_dataset unknown-dataset error no longer leaks transport detail; data.reason contract unchanged (#10)

63 tests pass; bun run devcheck clean.