fix(sports): tell FPA homonyms apart by licence instead of a 409 (BIT-31898) #131

Merged
spark merged 1 commits from fix/BIT-31898-fpa-associate-name-collision into main 2026-10-28 02:02:59 +00:00
Owner

Two different people can share the exact same full name in the FPA register. personFromFpaAssociate (full club register sync) and personFromFpaLicence (add-by-licence) both threw person_name_taken in that case — fpaAssociates only logged and swallowed it, silently dropping that associate from the sync.

The federation licence number is always free, so suffix it onto the name instead of giving up (same pattern linkSquadPerson already uses with a club abbreviation).

Fixes BIT-31898 (ERRCLUSTER 0b11a2bbda13).

  • Added a regression test covering two associates with the exact same name.
  • npx vitest run test/sports.test.ts passes (16/16).
  • tsc --noEmit clean.
Two different people can share the exact same full name in the FPA register. `personFromFpaAssociate` (full club register sync) and `personFromFpaLicence` (add-by-licence) both threw `person_name_taken` in that case — `fpaAssociates` only logged and swallowed it, silently dropping that associate from the sync. The federation licence number is always free, so suffix it onto the name instead of giving up (same pattern `linkSquadPerson` already uses with a club abbreviation). Fixes BIT-31898 (ERRCLUSTER 0b11a2bbda13). - Added a regression test covering two associates with the exact same name. - `npx vitest run test/sports.test.ts` passes (16/16). - `tsc --noEmit` clean.
spark added 1 commit 2026-10-28 01:50:24 +00:00
fix(sports): tell FPA homonyms apart by licence instead of a 409 (BIT-31898)
ci / rust (pull_request) Successful in 4m3s
ci / typescript (pull_request) Successful in 7m58s
018cefaf7a
Two different people can share the exact same full name in the FPA
register; personFromFpaAssociate (full club register sync) and
personFromFpaLicence (add-by-licence) both threw person_name_taken in
that case, which fpaAssociates only logged and swallowed, but which
silently dropped that associate from the sync. The federation's
licence number is always free for this, so suffix it onto the name
instead of giving up.

Paperclip-Agent: José Alves (urlKey jos-alves; id 11179220-3cec-4f0f-880d-2771ff64fce8)
Paperclip-Issue: BIT-31898
Paperclip-Run: aa809c11-1594-449d-bc49-93e96efbe4e5
paperclip-review-bot left a comment
Member

auto-approve: CI success on 018cefaf7a (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 018cefaf7aae (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success on 018cefaf7a (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 018cefaf7aae (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success on 018cefaf7a (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success on 018cefaf7aae (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-10-28 02:02:57 +00:00
spark merged commit 0b7af4f992 into main 2026-10-28 02:02:59 +00:00
Sign in to join this conversation.