Repository navigation
fix: Spring 백엔드 호환을 위한 owner_name 추가 및 커밋 시간 KST 변환 제거 - #467
Merged
Merged
Conversation
- repository/models.py: GithubRepoCommits에 owner_name 필드 추가 (v_github_repo_commits VIEW에 추가된 owner_name 컬럼과 매핑) - user/views.py: get_commit_repos()에서 owner_name 포함하여 조회, ProfileRepoView/ProfileActivityView에서 repo pair를 (owner_name, repo_name)으로 변경 (기존 git 8000 hub_id 기반 매핑에서 실제 owner_name 기반으로 수정) - user/update_act.py: time_to_seconds()의 +9 UTC 변환 제거 (Spring이 KST로 커밋 시간을 저장하므로 추가 변환 불필요) 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 개요
Spring 백엔드 전환 이후 발생한 두 가지 문제를 수정합니다.
가이드라인 & 최근 기여활동 페이지에 데이터가 표시되지 않는 문제: v_github_repo_commits VIEW의 github_id가 레포 소유자 login을 반환하는 반면, v_github_repo_stats의 github_id도 owner_name이라 두 VIEW 간 매핑이 깨져 데이터를 찾지 못하는 문제 해결
대시보드 기여성향 분석(커밋 시간대) 9시간 오차 문제: Spring 백엔드가 커밋 시간을 KST로 저장하는데 기존 코드가 추가로 +9시간 변환을 적용하여 발생
🛠 작업 내용
osp/repository/models.py: GithubRepoCommits에 owner_name 필드 추가 (v_github_repo_commits VIEW 컬럼 매핑)
osp/user/views.py: get_commit_repos()에서 owner_name 포함 조회, ProfileRepoView/ProfileActivityView에서 repo pair를 (github_id, repo_name) → (owner_name, repo_name) 기반으로 변경
osp/user/update_act.py: time_to_seconds()의 +9 UTC→KST 변환 제거 (Spring이 KST로 저장하므로 불필요)
🖼 스크린샷 (선택)
🔗 연관된 이슈
Spring 백엔드 전환 관련 호환성 이슈
❓ 기타 의견