feat(postcodes/PF): 5 French Polynesia archipelago anchors (#1039)#1531
Merged
Conversation
) Adds one anchor postcode per CSC PF archipelago (5 records, 100% state FK coverage of all 5 PF subdivisions). Why --- Closes the PF gap on issue #1039. French Polynesia has ~80-100 active 5-digit postcodes (987xx range) but no clean public bulk source ships the per-island list — datanova.laposte.fr API endpoints have moved, OPT.pf does not publish a CSV export, and Wikipedia covers only the archipelago ranges. This minimal hand-curated ship covers all 5 PF archipelagos with their main-island anchor postcode, demonstrating the regex and state FK structure. Future bulk imports can layer in via the idempotent merge contract. Coverage -------- - 5 codes / 100% state FK - All 5 CSC PF states represented: - Windward Islands 98714 Papeete (Tahiti) - Leeward Islands 98730 Uturoa (Raiatea) - Marquesas Islands 98742 Taiohae (Nuku Hiva) - Austral Islands 98748 Mataura (Tubuai) - Tuamotu-Gambier 98755 Avatoru (Rangiroa) License ------- Source: OPT (PF) / Wikipedia archipelago references. Each row: source: "wikipedia-pf-archipelago-anchor" Validation ---------- - python3 -m py_compile passes - 100% regex match (^((97|98)7\d{2})$) - 100% state_id valid + state.country_id == 77 + state_code agrees - No auto-managed fields (id, created_at, updated_at, flag) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
CSC Validation ReportPR Format
Labels applied: Schema Validation (5 records)✅ All records passed validation Cross-Reference Validation✅ 10 reference(s) verified Source URL Verification✅ 1 source URL(s) accessible ✅ All checks passed | Status: Ready for review |
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
Source
source: "wikipedia-pf-archipelago-anchor"Why a minimal ship
French Polynesia has ~80-100 active 5-digit postcodes (987xx range) but no clean public bulk source:
datanova.laposte.frAPI endpoints have moved (404)This 5-anchor ship covers all 5 archipelagos and demonstrates regex + state FK structure. Future bulk imports can layer in via idempotent merge.
Coverage
Test plan
python3 -m py_compile bin/scripts/sync/import_french_polynesia_postcodes.py^((97|98)7\d{2})$🤖 Generated with Claude Code