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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Two different people can share the exact same full name in the FPA register.
personFromFpaAssociate(full club register sync) andpersonFromFpaLicence(add-by-licence) both threwperson_name_takenin that case —fpaAssociatesonly 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
linkSquadPersonalready uses with a club abbreviation).Fixes BIT-31898 (ERRCLUSTER 0b11a2bbda13).
npx vitest run test/sports.test.tspasses (16/16).tsc --noEmitclean.auto-approve: CI success on
018cefaf7a(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
018cefaf7a(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
018cefaf7a(gitea_auto_approve_open_prs_once.py)