Skip to content

Data translation: staging-snapshot regions + per-change report rows - #2836

Merged
maebeale merged 3 commits into
mainfrom
maebeale/data-translation
Oct 25, 2026
Merged

maebeale merged 3 commits into
mainfrom
maebeale/data-translation

Conversation

@maebeale

@maebeale maebeale commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 lookup-table additions + report rows

Follow-ups from testing the address translation in staging: more regions translate, and the cleanup's report lists every change so records can be checked before writing.

  • New regions that name a single country, from the prod snapshot of addresses with no country:
    • Gauteng → South Africa, Accra → Ghana, Tamil Nadu/Rajasthan → India, Lahore → Pakistan.
    • Montserrado (and "Monnserrado") → Liberia.
    • Matabeleland North (and "Matebeleland") → Zimbabwe.
    • Yorkshire, E/East Sussex → United Kingdom.
  • Still left for a person to decide: Christchurch, Essex, Salamanca, Amsterdam, West Indies — each names more than one place.
  • data:translate_addresses lists every change as a CSV row in its saved report, dry run included: record, person/organization/submission ids, field, before, after.
    • VERBOSE=true also prints the rows.
  • People search by country moved to Search people by their address country #2837.

🤖 Generated with Claude Code

maebeale and others added 2 commits October 24, 2026 21:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… Nadu, Lahore…)

Staging's snapshot showed these states on addresses that can carry no country; each
names only one country, so they translate instead of landing in the hand-fix list.
Places that name several (Christchurch, Essex, Salamanca, Amsterdam) stay for a person.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale maebeale changed the title WIP: Data translation — staging follow-ups Data translation: regions from the staging snapshot Oct 25, 2026
@maebeale maebeale changed the title Data translation: regions from the staging snapshot Data translation: staging-snapshot regions + search people by country Oct 25, 2026
A dry run's totals don't let anyone check individual records before writing; each
change is now a CSV row (person/organization/submission ids, field, before, after) in
the saved report, and on the console with VERBOSE=true.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/data-translation branch from 04eb51c to c7e8ffa Compare October 25, 2026 08:15
@maebeale maebeale changed the title Data translation: staging-snapshot regions + search people by country Data translation: staging-snapshot regions + per-change report rows Oct 25, 2026
@maebeale
maebeale marked this pull request as ready for review October 25, 2026 08:29
@maebeale
maebeale merged commit ddd8c5b into main Oct 25, 2026
3 checks passed
@maebeale
maebeale deleted the maebeale/data-translation branch October 25, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant