Skip to content

#61 공통 조회 규칙 정리 및 내 참여 목록 조회 쿼리 - #63

Open
KimMonkey2945 wants to merge 1 commit into
feature/58from
feature/61
Open

KimMonkey2945 wants to merge 1 commit into
feature/58from
feature/61

Conversation

@KimMonkey2945

Copy link
Copy Markdown
Collaborator

close #N

작업 내용

  • 여러 조회가 같이 쓰는 규칙을 각자 제자리로 이동 (동작 변경 없음)
    • 화면 상태(마감 시각이 지난 OPEN은 CLOSED): 서비스 private → GroupPurchaseStatus.displayedAt
    • 같은 규칙의 SQL 조건: 쿼리 리포지토리 private → GroupPurchaseConditions(isOpenAt, isClosedAt, isCanceled, isDisplayedAs)
    • Redis 인원·단가 읽기 + 실패 시 빈 값 대체: 서비스 private → GroupPurchaseLiveReader
    • 빈 id 목록은 Redis 리포지토리가 이미 처리하므로 서비스의 중복 확인 제거
  • 내 참여 목록·개수 쿼리(ParticipationQueryRepository): participation JOIN group_purchase, member_id 조건, 최신 참여순
  • 화면 상태 필터(MyParticipationStatus): OPEN / CONFIRMED(정산 전 포함) / CANCELED(내가 취소 또는 판매자 취소)
  • 인덱스 추가 없음 — EXPLAIN에서 fk_participation_member로 정렬까지 처리(Backward index scan, filesort 없음)

테스트

  • 기존 테스트 수정 없이 통과 (서비스 단위 테스트는 생성자 인자만 변경 — 진짜 LiveReader에 mock 리포지토리)
  • 내 참여만 최신순·개수, 상태 필터 경계(정산 전 → CONFIRMED, 취소 후 마감 → CANCELED, 재참여 이력)

@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: 0e795d35-6457-4554-a026-2a08943e96a8

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

@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