Merged
Conversation
fetchPRSubmissions 가 status 'added' 와 'modified' 만 집계하여, 파일명 규칙을 맞추기 위한 rename PR(예: soobing3.ts → soobing.ts)에서 rename 된 풀이가 집계되지 않던 문제를 수정한다. 영향: 재참여자 또는 파일명 교체 이력이 있는 유저의 학습 현황 누적 풀이 수가 실제보다 적게 표시되던 버그. Co-Authored-By: sounmind <37020415+sounmind@users.noreply.github.com> Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
github | 77ee26b | Commit Preview URL Branch Preview URL |
Apr 20 2026, 01:13 PM |
sounmind
approved these changes
Apr 20, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
배경
#32 에서 기수 프로젝트 기반 학습 현황 집계를 도입했는데, 실제 운용 결과 soobing(본인) 계정의 cohort 7기 누적 풀이가 15개로 표시됨. 기대값은 26개 (실제 풀이 문제 수).
원인
fetchPRSubmissions가status === "added" || "modified"만 집계하는데, soobing 의 과거 PR #2556 (파일이름 user name과 동일하게 제출하지 않은 부분 수정) 은soobing3.ts→soobing.tsrename PR. rename 된 11개 파일이 모두 제외되어 카운팅에서 누락됨.변경
utils/learningData.js::fetchPRSubmissions의 status 필터에"renamed"추가.영향
filename= 새 이름) 기준으로 동작하므로, 새 이름이{problem}/{username}.{ext}패턴에 맞아야 집계됨 (의도된 동작)관련
Test plan
bun test— 54/54 통과 (기존 mock 에 rename 시나리오 없어 회귀 없음)