From 44a67f1f0fdff66dff94f78c386035dd6463caf1 Mon Sep 17 00:00:00 2001 From: Klaus Date: Fri, 27 Feb 2026 12:08:10 +0900 Subject: [PATCH] =?UTF-8?q?fix(explorer):=20=EC=B1=84=EB=84=90=20=ED=9B=84?= =?UTF-8?q?=EC=9B=90=EC=9D=84=20=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=ED=9B=84=EC=9B=90=EB=9E=AD=ED=82=B9=20=EC=A7=91?= =?UTF-8?q?=EA=B3=84=EC=97=90=20=EB=B0=98=EC=98=81=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/20260227_채널후원후원랭킹반영.md | 14 ++++++++++++++ .../CreatorDonationRankingQueryRepository.kt | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 docs/20260227_채널후원후원랭킹반영.md diff --git a/docs/20260227_채널후원후원랭킹반영.md b/docs/20260227_채널후원후원랭킹반영.md new file mode 100644 index 00000000..42880bc9 --- /dev/null +++ b/docs/20260227_채널후원후원랭킹반영.md @@ -0,0 +1,14 @@ +- [x] Explorer 후원랭킹 집계 경로에서 후원 타입 필터 조건을 확인한다. +- [x] 크리에이터 프로필 후원랭킹 집계에 `CanUsage.CHANNEL_DONATION`을 반영하도록 쿼리를 수정한다. +- [x] 변경 범위와 연관된 테스트/검증(컴파일/테스트)을 실행한다. +- [x] 구현 완료 후 체크박스를 갱신하고 검증 기록(무엇을/왜/어떻게)을 남긴다. + +## 검증 기록 + +- 1차 구현 + - 무엇을: `CreatorDonationRankingQueryRepository`의 후원랭킹 조회/총원 집계 조건에 `CanUsage.CHANNEL_DONATION`을 추가했다. + - 왜: `ExplorerService.getCreatorProfile`의 후원랭킹이 기존 `DONATION`, `SPIN_ROULETTE`, `LIVE`만 포함해 채널 후원이 누락되고 있었기 때문이다. + - 어떻게: + - `lsp_diagnostics`로 Kotlin 파일 진단을 시도했지만, 현재 환경에 `.kt` LSP 서버가 없어 도구 기반 진단은 불가했다. + - `./gradlew test` 실행 결과: 성공 + - `./gradlew build -x test` 실행 결과: 성공 diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorDonationRankingQueryRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorDonationRankingQueryRepository.kt index 51e02323..35a13d1a 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorDonationRankingQueryRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/CreatorDonationRankingQueryRepository.kt @@ -42,6 +42,7 @@ class CreatorDonationRankingQueryRepository(private val queryFactory: JPAQueryFa useCan.canUsage.eq(CanUsage.DONATION) .or(useCan.canUsage.eq(CanUsage.SPIN_ROULETTE)) .or(useCan.canUsage.eq(CanUsage.LIVE)) + .or(useCan.canUsage.eq(CanUsage.CHANNEL_DONATION)) ) .and(buildDateRangeCondition(startDate, endDate)) ) @@ -70,6 +71,7 @@ class CreatorDonationRankingQueryRepository(private val queryFactory: JPAQueryFa useCan.canUsage.eq(CanUsage.DONATION) .or(useCan.canUsage.eq(CanUsage.SPIN_ROULETTE)) .or(useCan.canUsage.eq(CanUsage.LIVE)) + .or(useCan.canUsage.eq(CanUsage.CHANNEL_DONATION)) ) .and(buildDateRangeCondition(startDate, endDate)) )