Skip to content

feat: 기억 대결 생명주기 API 구현 (시작, 취소) - #5

Merged
pearseona merged 4 commits into
developfrom
feature/match-start-cancel
Jul 10, 2026
Merged

feat: 기억 대결 생명주기 API 구현 (시작, 취소)#5
pearseona merged 4 commits into
developfrom
feature/match-start-cancel

Conversation

@pearseona

Copy link
Copy Markdown
Collaborator

📝 개요

링 네비게이션의 대결 시작, 대결 취소 API 구현을 완료했습니다.

🛠️ 주요 변경 사항

  1. 대결 시작 (POST /api/v1/matches)

    • 동일 에피소드 간 대결 방지 및 DB 내 데이터 존재 유무 검증 추가
    • JPA findAllById 순서 불일치 문제를 stream filter 구조로 해결하여 순서 보장
    • MVP 검증 반영: 두 에피소드가 모두 로그인한 유저(memberId = 1L)의 소유인지, 상태가 AVAILABLE인지 검증
    • 대결 중에는 에피소드 상태를 무리하게 바꾸지 않고 AVAILABLE 유지 (결과 확정 시 변경 예정)
  2. 대결 취소 (DELETE /api/v1/matches/{matchId})

    • 본인이 생성한 IN_PROGRESS 상태의 대결만 취소 가능하도록 검증
    • 매치 데이터 삭제 처리 (에피소드 상태값 복구 비용 제거)

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 22f4b30a-8c6d-4a1b-a405-9a801eb2e013

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/match-start-cancel

Comment @coderabbitai help to get the list of available commands.

@pearseona
pearseona merged commit d1e900a into develop Jul 10, 2026
3 checks passed
@pearseona pearseona self-assigned this Jul 10, 2026
@pearseona pearseona changed the title feature: 기억 대결 생명주기 API 구현 (시작, 취소) feat: 기억 대결 생명주기 API 구현 (시작, 취소) Jul 10, 2026
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