Repository navigation
fix: 마지막 멤버가 나가면 봇방장으로 넘기지 않고 방을 닫는다 - #316
Merged
Merged
Conversation
0명 방도 봇방장으로 넘기기만 해서, 하루 1번 유령방 삭제 배치가 지울 때까지 (정산 대기가 있으면 1주 넘게) 탐색·인기에 남고 남이 가입해 되살릴 수 있었다. 자진 탈퇴·회원 탈퇴·자동 강퇴에서 남는 활성 멤버가 없으면 삭제 표시한다 — 탐색·인기·상세·가입이 즉시 막히고, 이력과 실제 삭제는 같은 배치가 이어서 한다. 멤버가 1명 이상 남으면 지금처럼 봇방장 체제다. 이탈 탭은 닫힌 방도 기록으로 보여 준다. 이미 남아 있는 0명 방은 V14 로 닫는다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
문제 (stg QA 2026-10-15)
혼자 있던 그룹 방을 나가면 서버가 방을 봇방장으로 넘기기만 했다(
botOwnerActivated: true). 아무도 없는 방이 하루 1번(04:10) 도는 유령방 삭제 배치가 지울 때까지 탐색·인기에 남았다. 판정 대기·주차 점수 미마감이 있으면 삭제가 미뤄져 1주 넘게 남을 수 있고, 그동안 남이 가입해 되살릴 수도 있었다.변경
ChallengeMemberService#closeIfLastMember: 나가는 사람이 마지막 활성 멤버면 봇방장 전환·승계 알림 없이 방을 삭제 표시(deleted_at) 한다.leave)·회원 탈퇴/티어 게이트(leaveAllExternally)·자동 강퇴(AutomaticKickService) 세 경로 모두 같다.V14__close_empty_rooms.sql: 이미 0명인 채 남은 방을 같은 상태로 닫는다.앱 영향
botOwnerActivated: false. 그 방 상세·가입은 404CHALLENGE_NOT_FOUND.테스트
ChallengeLifecycleSpecIT: 마지막 멤버 탈퇴 → 봇방장 아님·닫힘·상세 404·가입 404·진행 중 목록 제외·이탈 탭 포함 / 다른 멤버가 남으면 봇방장·닫히지 않음./gradlew test1,458건 통과(V14 포함)🤖 Generated with Claude Code