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

fix: 회원탈퇴 데이터 삭제 방식 변경 #241

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

char-yb
Copy link
Member

@char-yb char-yb commented Aug 28, 2024

🌱 관련 이슈

📌 작업 내용

  • 내부 의논을 통해 Soft -> Hard Delete로 변경

🙏 리뷰 요구사항

📚 레퍼런스

@char-yb char-yb added 🐛 bug/error 버그 및 에러 픽스 🥇 P1 급하고 꼭 필요한 이슈 labels Aug 28, 2024
@char-yb char-yb added this to the 3차 MVP milestone Aug 28, 2024
@char-yb char-yb self-assigned this Aug 28, 2024
@char-yb char-yb linked an issue Aug 28, 2024 that may be closed by this pull request
@Modifying
@Query(
"UPDATE MissionRecordBoost mrb SET mrb.deletedAt = CURRENT_TIMESTAMP WHERE mrb.member.id = :memberId")
@Query("DELETE FROM MissionRecordBoost mrb WHERE mrb.member.id = :memberId")
Copy link
Collaborator

Choose a reason for hiding this comment

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

회의때에는 부스터 갯수는 남겨두기로 했던 거 같은데 이렇게하면 부스터도 같이 날아가지않나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

넵 맞아용 미션 기록이 지워졌는데 굳이 부스트를 DB에 남길 필요가 없다고 생각했어용
추후 마이그레이션을 진행한다고 가정했을때에도 불필요한 데이터라 생각했습니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

음.. 그러면 피드에 뜨는 부스트갯수가 mission_record_boost에서가져오는 것 같은데 지우면 피드에 뜨는 숫자도 줄지않나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

아 내부적으로도 이야기 나왔었던 내용이네용
제가 놓쳤습니다..! 삭제 안되도록 수정할게요

Copy link

sonarcloud bot commented Aug 29, 2024

Copy link
Collaborator

@dbscks97 dbscks97 left a comment

Choose a reason for hiding this comment

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

LGTM

@char-yb char-yb merged commit 8f2368f into develop Aug 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug/error 버그 및 에러 픽스 🥇 P1 급하고 꼭 필요한 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 회원탈퇴 삭제 로직 수정
2 participants