Skip to content

Bugfix/#275 migration preseason issues - #281

Merged
PhilipWoulfe merged 4 commits into
mainfrom
bugfix/#275-migration-preseason-issues
Jul 7, 2026
Merged

Bugfix/#275 migration preseason issues#281
PhilipWoulfe merged 4 commits into
mainfrom
bugfix/#275-migration-preseason-issues

Conversation

@PhilipWoulfe

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 7, 2026 14:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses preseason-related migration issues for the Phil 2025 CSV contract by ensuring preseason policy/tallies are available for scoring, normalizing preseason question keys across source offsets, and improving reconciliation matching so preseason diffs align correctly.

Changes:

  • Adds/updates migration tests covering Phil 2025 preseason policy-driven scoring and reconciliation matching by (QuestionKey, Subject).
  • Updates MigrationReconciliationService and MigrationLegacyScoreImporter to normalize preseason question keys and reconcile rows with differing source offsets.
  • Updates worker packaging/docs (Dockerfile + README) and E2E page object tab/pane selectors for the migration runs UI.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/F1.Infrastructure.Tests/Relational/MigrationImportRunServiceTests.cs Adds an end-to-end-ish relational test for preseason scoring with Phil policy; adjusts test importer behavior.
tests/F1.Infrastructure.Tests/Contracts/MigrationScoreRecalculatorTests.cs Adds a targeted test for preseason exact scoring when Phil policy is present.
tests/F1.Infrastructure.Tests/Contracts/MigrationReconciliationServiceTests.cs Adds coverage ensuring preseason rows with different source offsets reconcile by key/subject.
tests/F1.Infrastructure.Tests/Contracts/MigrationRaceSelectionParserTests.cs Tightens assertions around preseason answer normalization for a participant.
tests/F1.Infrastructure.Tests/Contracts/MigrationLegacyScoreImporterTests.cs Updates expected preseason question key mapping for Phil 2025 contract.
tests/F1.E2E.Tests/Pages/MigrationRunsPage.cs Refactors page object to use tab panes and ensures correct tab selection for waits.
src/F1.DataSyncWorker/Services/MigrationReconciliationService.cs Changes preseason diff keying/matching to use (QuestionKey, Subject) and improves ordering/row selection.
src/F1.DataSyncWorker/Services/MigrationLegacyScoreImporter.cs Normalizes preseason question keys for Phil 2025 points rows via contract offset mapping.
src/F1.DataSyncWorker/Services/MigrationImportOrchestrator.cs Adjusts execution order so preseason policy is imported before scoring.
src/F1.DataSyncWorker/Dockerfile Bundles data/imports/phil-2025 into the worker image at runtime.
README.md Documents container-bundled import files and how to override with host-managed files.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/F1.DataSyncWorker/Services/MigrationImportOrchestrator.cs
Comment thread tests/F1.E2E.Tests/Pages/MigrationRunsPage.cs
Comment thread tests/F1.E2E.Tests/Pages/MigrationRunsPage.cs
Comment thread tests/F1.E2E.Tests/Pages/MigrationRunsPage.cs
@PhilipWoulfe
PhilipWoulfe merged commit 22042cb into main Jul 7, 2026
8 checks passed
@PhilipWoulfe
PhilipWoulfe deleted the bugfix/#275-migration-preseason-issues branch July 7, 2026 15:01
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.

3 participants