feat(scottish): expose 2025 Scottish Parliament constituency and region#1366
Merged
Conversation
Point `latest` at postcodesio-2026-06-10-1135 and regenerate the test seed from it (the new dump carries the SPD Scottish Parliament 2025 columns). The refreshed data shifts outcode centroids and nearest-neighbour ordering by a few metres, so reconcile the queries.outcodes / queries.postcodes contract expectations to match.
The Second Review of Scottish Parliament Boundaries (SSI 2025/285) took effect at the 7 May 2026 Holyrood election - boundaries and names changed. Serve the 2025 designation at the canonical scottish_parliamentary_constituency / _region fields and move the superseded 2021 values to _2021 suffixed fields (names and codes), matching the house style of top-level = latest vintage. Closes the API half of #1348.
Rebuild static/openapi.{json,yaml}, docs/api/*.api.mdx, and the full build/
site from source: picks up the Scottish Parliament 2025 fields plus a
previously unregenerated outcode admin_county example.
Member
|
🎉 This issue has been resolved in version 19.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surfaces the new 2025 Scottish Parliament boundaries (SPC25/SPR25) on
/scotland/postcodes/:postcode, the API half of #1348.scottish_parliamentary_constituency/scottish_parliamentary_region(and theircodes.*) now serve the 2025 designation; the superseded 2021 values move to_2021suffixed fields - matching the house style of top-level = latest vintage. Second Review of Scottish Parliament Boundaries (SSI 2025/285), effective at the 7 May 2026 Holyrood election - boundaries and names changed.latest→postcodesio-2026-06-10-1135(the dump that carries the 2025 columns) and the test seed regenerated from it.queries.outcodes/queries.postcodescontract expectations updated to match (captured from ground truth).static/openapi.*,docs/api/*.api.mdx, and the full docusaurusbuild/.Commits are ordered to build incrementally: data refresh → feature → regenerated docs.
Notes
feat:): the top-level constituency/region values change 2021→2025 but the field shape is additive (_2021added), consistent with a routine boundary-vintage update.postcodesio/public/postcodesio-2026-06-10-1135.sql.gz).Test plan
tsccleanS16000151/ North East ScotlandS17000026, 2021 retained as_2021