Skip to content

#62 참여 취소 시 취소 주체(구매자·시스템) 저장 - #65

Open
KimMonkey2945 wants to merge 2 commits into
feature/61from
feature/62
Open

KimMonkey2945 wants to merge 2 commits into
feature/61from
feature/62

Conversation

@KimMonkey2945

Copy link
Copy Markdown
Collaborator

close #62

작업 내용

  • participation.canceled_by 컬럼 추가 (CanceledBy: BUYER / SELLER / SYSTEM, JOINED면 null)
  • 참여를 CANCELED로 바꾸는 두 쿼리가 취소 주체를 함께 기록
    • cancelJoined(구매자 참여 취소·재요청 마무리·Redis 없는 취소) → BUYER
    • cancelJoinedMembers(정산 대조에서 Redis에 없는 DB 참여 정리) → SYSTEM
  • 판매자 취소는 기존대로 참여 JOINED + 공동구매 CANCELED로 판정 (DB엔 SELLER를 저장하지 않음)
  • 내 참여 목록 Row·쿼리에 취소 주체 추가

배경

상태 조합(참여 CANCELED → 구매자 취소)으로 추론하면, 정산 대조가 정리한 참여가 구매자가 취소한 것처럼 보임. 취소하는 순간의 주체를 저장하도록 변경

테스트

  • 구매자 참여 취소·재요청 마무리 → BUYER, 정산 대조 정리 → SYSTEM

기타

  • 상세 응답 시각 비교를 JSON 형식(ISO_LOCAL_DATE_TIME)으로 변경 — LocalDateTime.toString()이 0초를 생략해 간헐적으로 실패하던 테스트 수정

@KimMonkey2945 KimMonkey2945 self-assigned this Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb37a8e7-6cb5-4032-9771-6f057f59e3e3

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
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

# Conflicts:
#	src/main/java/com/ttuk/participation/Participation.java
@sonarqubecloud

Copy link
Copy Markdown

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