8000 Develop by lmatarodo Β· Pull Request #471 Β· SKKU-OSP/SKKU-OSP Β· GitHub
[go: up one dir, main page]

Skip to content

Develop - #471

Merged

lmatarodo merged 16 commits into
mainfrom
develop

Conversation

@lmatarodo
Copy link
Copy Markdown
Contributor

πŸ“Œ 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)λ₯Ό ν˜ΈμΆœν•˜μ—¬ 등둝해야 ν•©λ‹ˆλ‹€.

lmatarodo and others added 16 commits March 26, 2026 16:13
…, 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>
< 8000 div data-view-component="true" class="TimelineItem TimelineItem--condensed">
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에 μœ μ € μžλ™ 등둝
@lmatarodo
lmatarodo requested a review from Curamy April 17, 2026 07:40
@lmatarodo
lmatarodo merged commit 28ad25a into main Apr 17, 2026
1 check passed
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