-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: 이달의 현황 및 피드 랭킹 API 응답 필드 "개수 -> 가중치 점수"로 변경 #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KoSeonJe
merged 9 commits into
develop
from
refactor/DDING-000-feed-monthly-status-score
Feb 23, 2026
+356
−100
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
14c7080
refactor: [DDING-000] 이달의 현황 API 응답 필드를 가중치 점수로 변경하고 저번 달 순위 추가
KoSeonJe fa3fb3e
test: [DDING-000] 이달의 현황 가중치 점수 및 저번 달 순위 테스트 수정/추가
KoSeonJe 4059aed
docs: [DDING-000] CLAUDE.md 테스트/PR 컨벤션 보강 및 리뷰 스킬 추가
KoSeonJe 7d296b6
refactor: [DDING-000] 코드 리뷰 반영 - 가중치 계산 Service 이동 및 Swagger 설명 간결화
KoSeonJe e1ef80e
fix: [DDING-000] E2E 테스트 필드명 변경 반영 (feedCount→feedScore 등)
KoSeonJe cd74c48
fix: [DDING-000] createEmpty fallback에서 lastMonthRank 유실 버그 수정
KoSeonJe 0ba7a30
refactor: [DDING-000] Admin 피드 랭킹 API 응답 필드 Score로 통일
KoSeonJe 5bde7e7
refactor: [DDING-000] 가중치 계산을 Response에서 Service로 이동
KoSeonJe df9ada5
refactor: [DDING-000] 변수명 명확화 및 CLAUDE.md 변수명 지침 추가
KoSeonJe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,88 @@ | ||
| --- | ||
| name: review-fix-plan | ||
| description: | | ||
| 코드 리뷰 후 수정 계획 문서를 생성하는 스킬. | ||
| 코드 리뷰 결과를 구조화된 마크다운 문서로 docs/local/ 하위에 저장한다. | ||
| "리뷰 문서 만들어줘", "코드리뷰 정리해줘", "/review-fix-plan" 요청 시 사용. | ||
| --- | ||
|
|
||
| # Review Fix Plan | ||
|
|
||
| 코드 리뷰 결과를 **문제상황 → 문제원인 → 해결 방법 → 결과** 4단계 구조로 정리하여 | ||
| `docs/local/` 하위에 마크다운 문서로 저장한다. | ||
|
|
||
| ## When to Use | ||
|
|
||
| - 코드 리뷰 수행 후 이슈를 문서로 정리하고 싶을 때 | ||
| - "리뷰 문서 만들어줘", "코드리뷰 정리해줘" 요청 시 | ||
| - "/review-fix-plan" 슬래시 커맨드 입력 시 | ||
| - PR 리뷰 후 수정 사항을 추적하고 싶을 때 | ||
|
|
||
| ## Process | ||
|
|
||
| 1. **리뷰 결과 수집**: 현재 대화에서 발견된 코드 리뷰 이슈 파악 | ||
| - 각 이슈의 심각도 판단 (CRITICAL / WARNING / LOW) | ||
| - 관련 파일과 코드 위치 식별 | ||
|
|
||
| 2. **문서 작성**: 아래 템플릿에 맞춰 각 이슈를 정리 | ||
|
|
||
| 3. **파일 저장**: `docs/local/{도메인}-review-fixes.md` 경로에 저장 | ||
| - 기존 파일이 있으면 덮어쓰기 (같은 PR/작업 단위) | ||
|
|
||
| 4. **완료 보고**: 저장된 파일 경로를 사용자에게 알림 | ||
|
|
||
| ## Template | ||
|
|
||
| ```markdown | ||
| # {작업명} 코드 리뷰 이슈 분석 ({날짜}) | ||
|
|
||
| ## 수정 파일 | ||
|
|
||
| - `{파일 경로 1}` | ||
| - `{파일 경로 2}` | ||
|
|
||
| --- | ||
|
|
||
| ## [{심각도 코드}] {위치} — {이슈 한줄 요약} | ||
|
|
||
| **심각도**: {이모지} {CRITICAL | WARNING | LOW} | ||
|
|
||
| **문제 상황**: {어떤 동작이 문제인지 사용자 관점에서 서술} | ||
|
|
||
| **문제 원인**: {왜 이 문제가 발생했는지 코드 레벨에서 분석} | ||
|
|
||
| ```java | ||
| // AS-IS — 문제 코드 | ||
| {기존 코드} | ||
| ``` | ||
|
|
||
| **해결 방법**: {구체적인 수정 방안 서술} | ||
|
|
||
| ```java | ||
| // TO-BE — 개선 코드 | ||
| {수정 코드} | ||
| ``` | ||
|
|
||
| **결과**: {수정 완료 여부, 수정 후 기대 효과} | ||
|
|
||
| --- | ||
|
|
||
| ## 패턴 정리 | ||
|
|
||
| | 상황 | 패턴 | | ||
| |------|------| | ||
| | {이번 리뷰에서 얻은 교훈} | {재발 방지를 위한 규칙} | | ||
| ``` | ||
|
|
||
| ## Severity Guide | ||
|
|
||
| | 코드 | 이모지 | 기준 | | ||
| |------|--------|------| | ||
| | C-N | 🔴 CRITICAL | 잘못된 데이터 반환, 런타임 에러, 보안 취약점 | | ||
| | W-N | 🟡 WARNING | 성능 저하, 중복 코드, 유지보수 위험 | | ||
| | L-N | 🟢 LOW | dead code, 네이밍, 스타일 | | ||
|
|
||
| ## Naming Convention | ||
|
|
||
| - 파일명: `{도메인}-review-fixes.md` (예: `feed-modify-existing-review-fixes.md`) | ||
| - 이슈 ID: `[{심각도 첫글자}-{번호}]` (예: `[C-1]`, `[W-2]`, `[L-1]`) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
src/main/java/ddingdong/ddingdongBE/domain/feed/service/dto/query/ClubFeedRankingQuery.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,30 @@ | ||
| package ddingdong.ddingdongBE.domain.feed.service.dto.query; | ||
|
|
||
| import ddingdong.ddingdongBE.domain.feed.repository.dto.MonthlyFeedRankingDto; | ||
| import lombok.Builder; | ||
|
|
||
| @Builder | ||
| public record ClubFeedRankingQuery( | ||
| int rank, | ||
| Long clubId, | ||
| String clubName, | ||
| long feedCount, | ||
| long viewCount, | ||
| long likeCount, | ||
| long commentCount, | ||
| long score | ||
| long feedScore, | ||
| long viewScore, | ||
| long likeScore, | ||
| long commentScore, | ||
| long totalScore | ||
| ) { | ||
|
|
||
| public static ClubFeedRankingQuery of(int rank, MonthlyFeedRankingDto dto, long score) { | ||
| public static ClubFeedRankingQuery of(int rank, Long clubId, String clubName, | ||
| long feedScore, long viewScore, long likeScore, long commentScore, long totalScore) { | ||
| return ClubFeedRankingQuery.builder() | ||
| .rank(rank) | ||
| .clubId(dto.getClubId()) | ||
| .clubName(dto.getClubName()) | ||
| .feedCount(dto.getFeedCount()) | ||
| .viewCount(dto.getViewCount()) | ||
| .likeCount(dto.getLikeCount()) | ||
| .commentCount(dto.getCommentCount()) | ||
| .score(score) | ||
| .clubId(clubId) | ||
| .clubName(clubName) | ||
| .feedScore(feedScore) | ||
| .viewScore(viewScore) | ||
| .likeScore(likeScore) | ||
| .commentScore(commentScore) | ||
| .totalScore(totalScore) | ||
| .build(); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
마크다운 린팅 경고 2건
정적 분석 도구가 두 가지 경고를 감지했습니다:
🔧 수정 제안
**해결 방법**: {구체적인 수정 방안 서술} + | 상황 | 패턴 | |------|------| | {이번 리뷰에서 얻은 교훈} | {재발 방지를 위한 규칙} | + -``` +```text🧰 Tools
🪛 markdownlint-cli2 (0.21.0)
[warning] 74-74: Tables should be surrounded by blank lines
(MD058, blanks-around-tables)
[warning] 75-75: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents