Skip to content

feat: 기존 완주 기록 랭킹 백필 엔드포인트 - #250

Merged
unam98 merged 1 commit into
mainfrom
feature/ranking-backfill
Aug 17, 2026
Merged

feat: 기존 완주 기록 랭킹 백필 엔드포인트#250
unam98 merged 1 commit into
mainfrom
feature/ranking-backfill

Conversation

@unam98

@unam98 unam98 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

작업 배경

변경 사항

  • POST /internal/ranking/backfill: publicCourse가 있는 모든 기록을 순회하며 updateBestRecord 재실행
  • RecordRepository#findAllByPublicCourseIsNotNull 추가 (JOIN FETCH로 N+1 방지)
  • idempotent (ZADD LT) — 여러 번 실행해도 안전, 별도 인증 없음(파괴적 동작 없음)

Test Plan

  • ./gradlew test 통과
  • dev 배포 후 1회 실행해서 기존 기록 반영 확인

🤖 Generated with Claude Code

신규 랭킹 기능 배포 전에 이미 쌓여있던 Record는 updateBestRecord 훅을
거친 적이 없어 Redis 랭킹에 반영되지 않는다. POST /internal/ranking/backfill로
전체 기록을 1회성으로 재계산한다. ZADD LT라 여러 번 실행해도 안전하다.
@coderabbitai

coderabbitai Bot commented Aug 17, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 03fca015-a296-4e36-9c73-0c51ea6fa0d5


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

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

@unam98
unam98 merged commit 0a8a26e into main Aug 17, 2026
2 checks passed
@unam98
unam98 deleted the feature/ranking-backfill branch August 17, 2026 10:33
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.

2 participants