Skip to content

♻️ refactor(SurfPlayerRepository): enhance player retrieval logic wit… - #65

Merged
TheBjoRedCraft merged 1 commit into
version/26.2from
fix/offline-player-lookup
Oct 3, 2026
Merged

TheBjoRedCraft merged 1 commit into
version/26.2from
fix/offline-player-lookup

Conversation

@Timonso-1

Copy link
Copy Markdown
Contributor

This pull request updates the player name lookup logic and bumps the project version. The main change improves how players are searched by name, making the query case-insensitive and ensuring the most recently seen player is returned if there are duplicates.

Database query improvements:

  • The loadPlayerByName method in SurfPlayerRepository now performs a case-insensitive search by using lowerCase() on both the column and input, and orders results by lastSeen (most recent first), returning the most recently seen matching player.
  • Added imports for SortOrder and lowerCase to support the improved query.

Version update:

  • Bumped project version from 2.5.3 to 2.5.4 in gradle.properties.

@Timonso-1 Timonso-1 self-assigned this Oct 3, 2026
Copilot AI balanced review requested due to automatic review settings October 3, 2026 14:31

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

Copilot review overview

🟢 Approval recommended

The change is a small, correct, and self-contained improvement to the name lookup with a consistent version bump and no identified issues.

Review effort: Balanced
Findings: None

@TheBjoRedCraft TheBjoRedCraft 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.

lgfm

@TheBjoRedCraft
TheBjoRedCraft added this pull request to the merge queue Oct 3, 2026
Merged via the queue into version/26.2 with commit 2594305 Oct 3, 2026
1 check passed
@TheBjoRedCraft
TheBjoRedCraft deleted the fix/offline-player-lookup branch October 3, 2026 14:37
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