Skip to content

feat!: ONSPD August 2026, Scottish Parliament 2026 designation - #1393

Merged
cblanc merged 4 commits into
mainfrom
onspd_aug_2026
Sep 11, 2026
Merged

cblanc merged 4 commits into
mainfrom
onspd_aug_2026

Conversation

@cblanc

@cblanc cblanc commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Updates to the ONSPD August 2026 quarterly release (postcodesio-2026-09-08-1325.sql.gz), plus SPD 2026/2 and OS Open Names July 2026. Carries the April 2026 NHS ICB reorganisation (CM postcodes now map to NHS Essex ICB, E54000066) and restores CED population. Fixes ICB data out of date #1352, fixes CED #1330.
  • Breaking: /scotland/postcodes/:postcode moves scottish_parliamentary_region / scottish_parliamentary_constituency (and their codes) to the 2026 designation and drops the *_2021 fields - SPD 2026/2 no longer publishes the superseded 2021 boundaries. OpenAPI spec, docs and prebuilt site regenerated.
  • Test seed regenerated; centroid and tie-order drift reconciled in the outcodes/postcodes contract tests.

Test plan

  • make test - full suite against the regenerated seed (275/275 locally).
  • curl -sI $(cat latest) returns 200 (dump is live on S3).
  • Against a loaded dump: CM22 6QJ returns icb: NHS Essex Integrated Care Board (ICB data out of date #1352); postcodes with CEDs populated, e.g. SELECT count(*) FROM postcodes WHERE ced IS NOT NULL is ~810k (CED #1330); /scotland/postcodes/AB10 1XG serves 2026 SP fields with no *_2021 keys.
  • Post-merge: semantic-release cuts a major; rebuild and push the Dockerfile.pg db image manually.

🤖 Generated with Claude Code

https://claude.ai/code/session_0195FWjQNKqsSSeZuRyu8Lzi


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…021 fields

SPD 2026/2 folds the operative Scottish Parliament set into the postcode index as the 2026 vintage (codes identical to the 2025 set) and ships no 2021 data, so the superseded fields cannot be served. scottish_parliamentary_region and scottish_parliamentary_constituency (and their codes) now read the 2026 columns.

BREAKING CHANGE: scottish_parliamentary_region_2021, scottish_parliamentary_constituency_2021 and their codes counterparts are removed from /scotland/postcodes/:postcode.

Claude-Session: https://claude.ai/code/session_0195FWjQNKqsSSeZuRyu8Lzi
ONSPD August 2026, SPD 2026/2 and OS Open Names July 2026. Carries the April 2026 NHS ICB reorganisation (CM postcodes now map to NHS Essex ICB, E54000066) and restores CED population.

Seed and dw_postcodes.csv regenerated; centroid and tie-order drift reconciled in the outcodes/postcodes contract tests.

Fixes #1352
Fixes #1330

Claude-Session: https://claude.ai/code/session_0195FWjQNKqsSSeZuRyu8Lzi
info.version had drifted (18.0.0 vs the 19.1.0 release); this release is a major via the Scottish Parliament 2026 breaking change.

Claude-Session: https://claude.ai/code/session_0195FWjQNKqsSSeZuRyu8Lzi
Overview Data section now names the loaded vintages (ONSPD August 2026, OS Open Names July 2026, SPD 2026/2) instead of only deferring to the changelog. Bump these each data refresh.

Claude-Session: https://claude.ai/code/session_0195FWjQNKqsSSeZuRyu8Lzi
@cblanc
cblanc merged commit 193deba into main Sep 11, 2026
2 checks passed
@idealbot

Copy link
Copy Markdown
Member

🎉 This issue has been resolved in version 20.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

ICB data out of date CED

2 participants