8000 fix: github_repo_contributor Spring VIEW 대체 및 커밋 수 필터 수정 by lmatarodo · Pull Request #468 · SKKU-OSP/SKKU-OSP · GitHub
[go: up one dir, main page]

Skip to content

fix: github_repo_contributor Spring VIEW 대체 및 커밋 수 필터 수정 - #468

Merged
lmatarodo merged 1 commit into
developfrom
fix/spring-contributor-commits-compat
Apr 7, 2026
Merged

lmatarodo merged 1 commit into
developfrom
fix/spring-contributor-commits-compat

Conversation

@lmatarodo
Copy link
Copy Markdown
Contributor

📌 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 백엔드 전환 관련 호환성 이슈

❓ 기타 의견

- 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>
@lmatarodo
lmatarodo requested a review from Curamy April 7, 2026 05:17
@Curamy Curamy left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@lmatarodo
lmatarodo merged commit 8a7f225 into develop Apr 7, 2026
@lmatarodo
lmatarodo deleted the fix/spring-contributor-commits-compat branch April 7, 2026 07:31
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

0