Conversation
…, repo stats - GithubIssues: github_issues → v_github_issues (Spring github_issue JOIN) - GithubPulls: github_pulls → v_github_pulls (Spring github_pull_request JOIN) - GithubRepoStats: github_repo_stats → v_github_repo_stats (Spring github_repository) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: replace Scrapy tables with Spring MySQL VIEWs for issues, pulls…
GithubRepoStats의 db_table을 v_github_repo_stats로 변경한 이후 extra(where=...) 절의 하드코딩된 테이블명이 맞지 않아 대시보드 API 500 에러 발생하던 문제 수정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Scrapy 수집 데이터(github_stats_yymm) 대신 Spring 배치 집계 데이터(github_monthly_stats)를 읽도록 변경 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…syymm Feat/spring scrapy replace statsyymm
Scrapy github_repo_commits 테이블 대신 Spring github_commit 기반 VIEW 사용 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
v_github_issues, v_github_pulls, v_github_repo_commits, v_github_repo_stats는 Spring github_account.github_login_username JOIN으로 자동 반영되므로 별도 UPDATE 불필요 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…commits Feat/spring scrapy replace repocommits
- 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)으로 변경 (기존 github_id 기반 매핑에서 실제 owner_name 기반으로 수정) - user/update_act.py: time_to_seconds()의 +9 UTC 변환 제거 (Spring이 KST로 커밋 시간을 저장하므로 추가 변환 불필요) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…it-time fix: Spring 백엔드 호환을 위한 owner_name 추가 및 커밋 시간 KST 변환 제거
- 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>
…compat fix: github_repo_contributor Spring VIEW 대체 및 커밋 수 필터 수정
github_id 변경 시 OSP 테이블만 업데이트하면 Spring DB와 불일치가 발생하여 VIEW(v_github_repo_commits 등) 기반 화면에서 데이터 누락이 생기는 문제 수정. OSP 업데이트 완료 후 Spring PATCH API를 호출하여 github_account.github_login_username도 함께 변경. Spring API 호출 실패 시 경고 로그만 남기고 OSP 업데이트는 정상 완료되도록 격리. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: GithubIdChange 시 Spring API 호출하여 github_login_username 동기화
신규 가입자가 GitHub 데이터 수집 대상에서 누락되는 문제 수정. OSP SignUpView 완료 후 GitHub API로 numeric ID/node ID 조회 후 Spring /api/auth/signup 호출하여 Spring DB에 동기화. Spring 등록 실패 시에도 OSP 가입은 정상 처리. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
feat: OSP 회원가입 시 Spring DB에 유저 자동 등록
Curamy
approved these changes
Apr 17, 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.
📌 PR 개요
OSP 신규 회원가입 시 Spring DB에 유저가 등록되지 않아 GitHub 데이터 수집 대상에서 누락되는 문제를 수정했습니다.
🛠 작업 내용
common/views.py SignUpView.post() 완료 후 _register_to_spring() 호출 추가
_register_to_spring() 함수 구현: GitHub API로 numeric ID / node_id 조회 후 Spring /api/auth/signup 호출하여 Spring student_account / github_account 테이블에 동기화
Spring 등록 실패 시에도 OSP 가입은 정상 처리 (best-effort, 예외 무시)
🔍 문제 원인
Spring 수집기는 자체 student_account / github_account 테이블을 기준으로 6시간마다 GitHub 데이터를 수집합니다. OSP 회원가입 시 이 테이블에 유저가 추가되지 않아, 신규 가입자의 GitHub 활동이 대시보드에 영구적으로 반영되지 않는 문제가 있었습니다.
❓ 기타 의견
이미 가입되어 있으나 Spring DB에 누락된 기존 유저는 수동으로 Spring API(POST /api/auth/signup)를 호출하여 등록해야 합니다.