8000 fix: Spring 백엔드 호환을 위한 owner_name 추가 및 커밋 시간 KST 변환 제거 by lmatarodo · Pull Request #467 · SKKU-OSP/SKKU-OSP · GitHub
[go: up one dir, main page]

Skip to content

fix: Spring 백엔드 호환을 위한 owner_name 추가 및 커밋 시간 KST 변환 제거 - #467

Merged
lmatarodo merged 1 commit into
developfrom
fix/spring-view-compat-and-commit-time
Apr 7, 2026
Merged

lmatarodo merged 1 commit into
developfrom
fix/spring-view-compat-and-commit-time

Conversation

@lmatarodo
Copy link
Copy Markdown
Contributor

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

❓ 기타 의견

- 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>
@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 d5a0955 into develop Apr 7, 2026
@lmatarodo
lmatarodo deleted the fix/spring-view-compat-and-commit-time branch April 7, 2026 02:53
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