Skip to content

Prevent duplicate entries in LbsLobby.Entry#360

Merged
inada-s merged 2 commits into
masterfrom
fix/entry-dedup
Mar 2, 2026
Merged

Prevent duplicate entries in LbsLobby.Entry#360
inada-s merged 2 commits into
masterfrom
fix/entry-dedup

Conversation

@inada-s

@inada-s inada-s commented Mar 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Entry() appended to EntryUsers without dedup check, allowing the same user to appear multiple times
  • This caused inflated GetLobbyMatchEntryUserCount() results and could lead to a user being picked multiple times in pickLobbyBattleParticipants()
  • Add early return in Entry() if the user is already in EntryUsers
  • Addresses review feedback from Fix nil pointer panics and bugs in lobby/room/battle code #359

Test plan

  • Added TestLbsLobby_Entry_NoDuplicate — calls Entry() twice with same user, verifies only one entry
  • Existing EntryCancel, EntryPicked, Exit tests still pass
  • make test / make lint clean

inada-s and others added 2 commits March 2, 2026 21:56
Entry() appended to EntryUsers without checking for duplicates.
This caused incorrect match entry counts and could lead to a user
being picked multiple times in lobby battle selection.

Add duplicate guard in Entry() so the same user cannot be added
to EntryUsers more than once.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The old bash uploader (codecov.io/bash) has been deprecated and now
returns an HTML error page, causing the CI upload step to fail.

Replace with codecov/codecov-action@v5.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@inada-s inada-s merged commit 1d5e531 into master Mar 2, 2026
2 checks passed
@inada-s inada-s deleted the fix/entry-dedup branch March 2, 2026 13:11
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