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

사용자의 플레이리스트 삭제 API 추가 #368

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

sk000801
Copy link
Member

@sk000801 sk000801 commented Jan 9, 2024

Issue

Overview

  • DB에서 해당 playlist 부분 삭제
  • DB에서 music_playlist 테이블에 있는 레코드 중 해당 playlist에 담긴 음악 부분 모두 삭제
  • 트랜잭션 추가 (중간에 Error 터졌을 때 롤백 되는 것을 확인)
  • 정상적으로 동작할 때 DB에 playlist 테이블에서 해당 플레이리스트가 삭제되고, music_playlist 테이블에서 해당 플레이리스트의 음악 행들이 삭제됨을 확인

Screenshot

  • 삭제 할 플레이리스트와, 그 안에 담긴 음악 정보
    스크린샷 2024-01-09 152218
    스크린샷 2024-01-09 152227
  • 삭제가 정상적으로 이뤄졌을 때
    스크린샷 2024-01-09 153118
  • 중간에 에러가 발생했을 때 (롤백)
    스크린샷 2024-01-09 153739

To Reviewers

로직이 이상하거나 추가해야 될 부분이 있으면 말해주세요!

* DB에서 playlist 열 삭제
* DB에서 music_playlist에 있는 음악 중 해당 playlist에 담긴 음악 열 모두 삭제
@sk000801 sk000801 added ✨ feat 기능 개발 🖥 server server labels Jan 9, 2024
@sk000801 sk000801 added this to the ⏯️ playlist milestone Jan 9, 2024
@sk000801 sk000801 self-assigned this Jan 9, 2024
@sk000801 sk000801 requested a review from khw3754 as a code owner January 9, 2024 06:52
Copy link
Collaborator

@khw3754 khw3754 left a comment

Choose a reason for hiding this comment

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

예외처리도 꼼꼼하게 해주신 것 같아요! 👍

@sk000801 sk000801 merged commit 6daaca1 into develop Jan 9, 2024
1 check passed
@sk000801 sk000801 deleted the server/feature/366 branch January 9, 2024 07:12
@sk000801 sk000801 linked an issue Jan 9, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 기능 개발 🖥 server server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

재생목록 삭제
2 participants