Skip to content

Merge competition result sources safely#83

Merged
coder13 merged 1 commit into
betafrom
agent/fix-competition-results
Jul 11, 2026
Merged

Merge competition result sources safely#83
coder13 merged 1 commit into
betafrom
agent/fix-competition-results

Conversation

@coder13

@coder13 coder13 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • merge WCIF, WCA API, and WCA Live result sources without losing source metadata
  • match competitors using registrant ID, WCA user ID, and WCA ID before an ambiguity-safe name fallback
  • keep personal result ordering/names stable and clarify the results source note

Why

WCA Live can omit a registrant ID, and the previous name fallback could attach results to the wrong competitor when names were duplicated. WCA API matching could also select an earlier same-name person before the exact WCA ID. Broad result-object merging additionally retained stale dropped-attempt indexes after newer results replaced the attempts.

Impact

Results remain linked to the correct competitor, ambiguous rows stay safely unlinked, and newer WCIF/WCA Live attempts no longer inherit stale display metadata.

Validation

  • yarn test --runInBand (35 suites, 160 tests)
  • yarn check:type
  • yarn lint (0 errors; 4 pre-existing warnings)
  • yarn build

Match WCA Live and API results with authoritative identities and ambiguity-safe fallbacks. Preserve merged result metadata without carrying stale attempt indexes.
@netlify

netlify Bot commented Jul 11, 2026

Copy link
Copy Markdown

Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit c46529f
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6a52909f635346000888a2ff
😎 Deploy Preview https://deploy-preview-83--competition-groups.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 64
Accessibility: 84
Best Practices: 100
SEO: 96
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coder13 coder13 merged commit d6c5103 into beta Jul 11, 2026
7 checks passed
@coder13 coder13 deleted the agent/fix-competition-results branch July 11, 2026 18:52
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