Skip to content

Conversation

@fehmer
Copy link
Member

@fehmer fehmer commented Jan 20, 2026

No description provided.

@monkeytypegeorge monkeytypegeorge added the backend Server stuff label Jan 20, 2026
Removed console log statement during user migration.
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 21, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 21, 2026
@Miodec Miodec requested a review from Copilot January 21, 2026 09:43
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 21, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes an issue where users without the personalBests field in the database would cause problems when loaded through getUser or getUserByName. The fix introduces a migration function that ensures these users get an initialized personalBests structure.

Changes:

  • Added migrateUser helper function to initialize missing personalBests fields
  • Applied migration to getUser and getUserByName functions
  • Added comprehensive test coverage for the migration behavior
  • Reorganized imports alphabetically

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
backend/src/dal/user.ts Added migrateUser function and applied it to user retrieval functions; reorganized imports
backend/tests/integration/dal/user.spec.ts Added tests for missing personalBests scenarios; reorganized imports

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

@fehmer fehmer marked this pull request as draft January 21, 2026 09:57
@github-actions github-actions bot removed the waiting for review Pull requests that require a review before continuing label Jan 21, 2026
@fehmer fehmer marked this pull request as ready for review January 21, 2026 10:09
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 21, 2026
@Miodec Miodec merged commit 26dd5c4 into master Jan 21, 2026
13 checks passed
@Miodec Miodec deleted the feature/fix-user-missing-pb branch January 21, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants