Repository navigation
fix: github_repo_contributor Spring VIEW 대체 및 커밋 수 필터 수정 - #468
Merged
Merged
Conversation
- repository/models.py: GithubRepoContributor db_table을 github_repo_contributor → v_github_repo_contributor로 변경 (Spring github_account_repository 기반 VIEW로 대체) - rank/views.py: GithubRepoCommits 필터를 github_id → owner_name으로 수정 (v_github_repo_commits의 github_id는 커밋 작성자이므로 레포 소유자 기준 조회는 owner_name 사용) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
📌 PR 개요
github_repo_contributor 테이블을 Spring 백엔드 기반 VIEW로 대체하고, 랭킹 페이지 학생 기여 정보 모달의 커밋 수 조회 필터를 수정합니다.
🛠 작업 내용
osp/repository/models.py: GithubRepoContributor db_table을 github_repo_contributor → v_github_repo_contributor로 변경
Spring github_account_repository + github_account + github_repository JOIN 기반 VIEW로 대체
osp/rank/views.py: GithubRepoCommits 필터를 github_id=owner_id → owner_name=owner_id로 수정
v_github_repo_commits의 github_id는 커밋 작성자 login이므로, 레포 소유자 기준 조회는 owner_name 사용해야 함
기존 코드에서 Commits가 항상 0으로 표시되던 문제 수정
🖼 스크린샷 (선택)
N/A
🔗 연관된 이슈
Spring 백엔드 전환 관련 호환성 이슈
❓ 기타 의견