-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BE] feat: 리뷰 삭제 기능 구현 #735
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
연휴동안 고생하셨어요 오잉!
코멘트 확인해주세요
backend/src/main/java/com/funeat/review/application/ReviewService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/funeat/review/presentation/ReviewApiController.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어요 오잉 🥳
우가 코멘트랑 겹치지 않는 부분 코멘트 남겨서 확인해주세요~
#728 에서 여기에서 만든 메서드가 필요한데, 오잉의 코드 변경점이 많아서 오잉꺼 먼저 머지하고, 제꺼 PR 머지하는게 좋아보입니다!
backend/src/main/java/com/funeat/review/application/ReviewService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/funeat/review/exception/ReviewErrorCode.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/funeat/review/presentation/ReviewApiController.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/funeat/acceptance/review/ReviewAcceptanceTest.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/funeat/review/application/ReviewServiceTest.java
Show resolved
Hide resolved
backend/src/test/java/com/funeat/review/persistence/ReviewTagRepositoryTest.java
Outdated
Show resolved
Hide resolved
(기존) (개선) 참고 블로그 : https://aljjabaegi.tistory.com/681 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현재 reviewTag와 reviewFavorite은 다 단일키라 해당 메소드를 써도 괜찮다고 생각했습니다.
이렇게 나가더라구요??) deleteAllByIdInBatch vs JPQL 중 deleteAllByIdInBatch를 사용한 이유는 |
s3 이미지 삭제 로직에 스프링 이벤트 적용
기타
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
키워드 안붙인게 좀 많아서 여기에만 대표적으로 코멘트 남길게요~
나머지는 코멘트는 빠르게 반영할 수 있을 것 같아서 approve 할게요
고생하셨어요~
backend/src/test/java/com/funeat/acceptance/review/ReviewSteps.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/funeat/review/application/ReviewDeleteEventListener.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이벤트 도입이 처음이었는데, 너무 잘 구현해주신 것 같아요!!!
고생하셨어요 코멘트 한번 확인 부탁드려요
backend/src/main/java/com/funeat/review/application/ReviewService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 하나 더 남겼어요~
conflict 수정되면 다시 확인해보면 될 것 같아여
backend/src/main/java/com/funeat/review/application/ReviewService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
앞에서 리뷰 잘 해줘서 개행 관련 코멘트 하나 말고는 피드백 할 내용 없네요!
이벤트 적용하느라 고생하셨슴다~~~!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트가 많았는데 열심히 고민하신 것 같습니다 ㅎㅎ
고생하셨어요
Issue
✨ 구현한 기능
📢 논의하고 싶은 내용
기존 updateProductImage 메소드 질문 (리뷰 좋아요시 상품 이미지 업데이트)
우선 product를 파라미터로 받는 updateProductImage 메소드 추가해둔 상태
(기존 메소드는 reviewId를 파라미터로 받음)
이런식으로
db에서 review 관련 데이터 지우기,
product의 대표 이미지 갱신,
s3에서 관련 이미지 삭제가
한 트랜잭션에서 이루어지고 있습니다.
s3 관련 로직을 다른 트랜잭션으로 분리해야할까요?
리뷰를 삭제하려는 사용자가 리뷰 작성자가 아닐 때 던지는 에러입니다.
info로 memberId만 넘겨도 될까요?
🎸 기타
⏰ 일정