Repository navigation
[SCRUM-210] 미동의 사용자 가입 처리와 약관 동의 API 구현 - #116
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
yeonhwa55
approved these changes
Nov 30, 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.
티켓
specs/social-login/spec.md변경 요약
0006:users.terms_version·terms_agreed_at,login_attempts.terms_version을 NULL 허용으로 바꿨습니다.terms_version없이도 로그인을 시작합니다. 빈 값은invalid_request, 허용하지 않는 버전은terms_outdated입니다.terms_version이 없으면 신규 가입자를 미동의로 만듭니다. 기존 가입자는 마지막 로그인 시각만 갱신해 동의 기록을 유지합니다. 값이 있으면(배포된 앱) 이전처럼 기록합니다.terms_outdated입니다. 같은 버전을 다시 보내면 처음 동의 시각이 유지됩니다. 탈퇴를 요청한 사용자는 바꾸지 않고 401입니다.openapi.yaml)는 바뀌지 않았습니다. 209([SCRUM-209] 로그인 최초 가입 동의 API 명세 추가 #113)에 적었던 A26·A27의 명세와 동작 차이가 이번에 해소됩니다.머지·배포 전 확인
0006을 적용해야 합니다. 적용 전에는terms_version없는 로그인이 실패합니다..github·infra검색에서 자동 적용 단계는 찾지 못했습니다.terms_version이 NULL인 로그인 요청은 삭제합니다. 미동의 사용자가 있으면 되돌리기가 실패하며, 계정을 자동으로 지우지 않습니다.terms_version을 없애는 SCRUM-211은 183과 함께 또는 그 뒤에 배포해야 합니다.확인 방법
pnpm check통과 (파이썬 1136개 통과, 170개 건너뜀)backendCI(PostGIS) 통과: 843개 통과, 건너뜀 없음. 로컬에는 PostgreSQL이 없어 마이그레이션 테스트와 DB 테스트는 CI에서 확인했습니다.tests/auth/test_login_flow.py:terms_version이 있을 때와 없을 때의 로그인 (가짜 DB·공급자)tests/users/test_router.py: A34의 200·401·422·503tests/auth/test_login_db.py: 미동의 가입, 동의 유지, 버전 변경, 같은 요청 두 번, 탈퇴 요청tests/test_migrations.py: NULL 허용, 되돌리기 두 경우체크리스트
pnpm check통과users·login_attempts·12장)packages/bridge) 변경 없음🤖 Generated with Claude Code