Skip to content

321 hotfix: 회원 탈퇴 시 강의 평가 보존 및 사용자 익명화 - #322

Merged
kimhoeyun merged 5 commits into
mainfrom
hotfix/321
Jul 22, 2026
Merged

321 hotfix: 회원 탈퇴 시 강의 평가 보존 및 사용자 익명화#322
kimhoeyun merged 5 commits into
mainfrom
hotfix/321

Conversation

@kimhoeyun

@kimhoeyun kimhoeyun commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

변경 사항

  • 회원 탈퇴 시 UserStudent 행을 삭제하지 않고 익명화하도록 변경했습니다.
    • User의 이메일, 프로필 정보, 포털 연동 정보, 동기화 시각을 제거합니다.
    • is_deleted=true, deleted_at을 설정합니다.
    • Student 이름을 탈퇴한 사용자입니다.로 변경하고, 학번을 deleted_{UUID}로 교체합니다.
  • 강의평가와 강의평가 태그는 기존 student_id FK를 유지한 채 보존합니다.
  • 소셜 계정, 해당 사용자의 모든 Refresh Token, 수강·학적·졸업진행 데이터를 삭제합니다.
  • 탈퇴 후 남아 있는 Access Token도 사용할 수 없도록 비활성 사용자 인증을 차단합니다.
  • User.student 연관관계에서 CascadeType.REMOVE를 제거했습니다.
  • 같은 학번으로 재가입하면 새 User와 새 Student가 생성되며, 기존 익명화 학생의 강의평가와 연결되지 않도록 했습니다.

테스트

  • ./gradlew test --stacktrace --no-daemon 통과.
  • 강의평가와 태그가 있는 사용자 탈퇴 후 익명화 및 평가 보존을 검증하는 통합 테스트를 추가했습니다.
  • 소셜 계정 및 전체 Refresh Token 삭제를 검증했습니다.
  • 같은 학번 재가입 시 과거 강의평가와 분리되는 것을 검증했습니다.

참고 사항

  • 개발 서버와 개발 DB에서 실제 탈퇴 흐름을 확인했습니다.
    • 사용자·학생 개인정보 및 포털 연동 정보 익명화 확인.
    • 강의평가 5건과 태그 4건 보존 확인.
    • 소셜 계정, Refresh Token, 수강·학적·졸업진행 데이터 0건 확인.

P1: 꼭 반영해주세요 (Request changes)
P2: 적극적으로 고려해주세요 (Request changes)
P3: 웬만하면 반영해 주세요 (Comment)
P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
P5: 그냥 사소한 의견입니다 (Approve)

🔗 Related Issue

Closes #321

@kimhoeyun kimhoeyun self-assigned this Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 4e04bb15-6398-46b1-9ac8-8ff2a4f03998

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/321

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@kimhoeyun kimhoeyun added the 🐞 BugFix Something isn't working label Jul 22, 2026
@kimhoeyun
kimhoeyun merged commit fe0f3ec into main Jul 22, 2026
6 checks passed
@kimhoeyun
kimhoeyun deleted the hotfix/321 branch July 22, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 BugFix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants