Skip to content

Match returning people whose compound last name is respaced or shortened - #3147

Open
maebeale wants to merge 2 commits into
mainfrom
maebeale/registration-duplicate-prevention-fix
Open

maebeale wants to merge 2 commits into
mainfrom
maebeale/registration-duplicate-prevention-fix

Conversation

@maebeale

@maebeale maebeale commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

🤖 suggested review level: 3 Read 📖 contained change to the shared person-matching rule

"Smith-Jones" coming back as "Smith Jones" or "Smith" no longer creates a second person.

  • Email matcher (registrations, public forms, bulk payments, imports): last names match when one's parts are a subset of the other's.
    • Email and first name must still match, so the looser last name is safe.
    • Last-name check moved to Ruby; the SQL already narrows to one email.
  • Name-only matcher (spreadsheet rows without email): ignores space vs. hyphen only.
    • "Smith" alone doesn't match "Smith-Jones" here — too weak without an email.
  • DB unique index and model validation unchanged (still exact).

Features seed (optional)

  • Added a features seed

🤖 Generated with Claude Code

@maebeale
maebeale marked this pull request as ready for review December 4, 2026 03:59
maebeale and others added 2 commits December 3, 2026 22:59
"Smith-Jones" registering as "Smith Jones" or "Smith" with the same email
and first name becomes a second person.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Registrants drop or respace half a hyphenated last name, and each variant
became a new person. With the email and first name already agreeing, a
shared last-name part is enough; name-only matches ignore only the separator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maebeale
maebeale force-pushed the maebeale/registration-duplicate-prevention-fix branch from ef627e2 to c1ca8d8 Compare December 4, 2026 03:59
@maebeale
maebeale requested a review from jmilljr24 December 4, 2026 12:55
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.

2 participants