Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MODIFY] 유저 탈퇴시 이벤트 기반으로 삭제해야하는 데이터 삭제 처리 로직 추가 #426

Merged
merged 25 commits into from
Nov 5, 2024

Conversation

kseysh
Copy link
Member

@kseysh kseysh commented Oct 31, 2024

📝 PR Summary

유저 탈퇴시 삭제해야 하는 데이터를 삭제하는 로직을 추가하였습니다.
데이터 삭제를 이벤트 기반으로 하여 강한 의존성 결합을 최소화하였습니다.
기존 전역 변수로 관리되던 EventPublisher 객체를 컴포넌트로 관리하도록 하여 테스트에 용이하도록 하였습니다.

🌴 Works

  • 유저 탈퇴 시 아래 항목들을 삭제하도록 변경
  • UserFortune
  • PokeHistory
  • SoptampUser
  • Stamp
  • Friend
  • Notification
  • PushToken

🌱 Related Issue

closed #336

🌵 PR 참고사항

  • Event 테스트 방안을 고안해봤는데 일단 SpringBootTest로 구현하여 테스트 속도가 조금 느려졌습니다..!

kseysh added 25 commits October 30, 2024 21:06
@kseysh kseysh added 🔨 Refactor 코드 개선 🔧 Modify 기능 수정 labels Oct 31, 2024
@kseysh kseysh requested a review from rlarlgnszx October 31, 2024 07:15
@kseysh kseysh self-assigned this Oct 31, 2024
Copy link

height bot commented Oct 31, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link
Contributor

@rlarlgnszx rlarlgnszx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오! Event 개념을 단순히 비동기 처리로직으로만 구현해서 잘못 알고계신분들이 많은데
제대로 Event로직을 작성하신것 같아요! 💯
수고하셨습니다.

@kseysh kseysh merged commit 14089b6 into dev Nov 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 Modify 기능 수정 🔨 Refactor 코드 개선 size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MODIFY] 유저 탈퇴 시 삭제되어야 하는 데이터들 모두 삭제하도록 수정
2 participants