-
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
π :: (Meogo-16) delete review #17
Conversation
Walkthroughλ³κ²½ μ¬νμ 리뷰 κ΄λ¦¬ μμ€ν
μ 리뷰 μμ κΈ°λ₯μ μΆκ°νλ κ²μ
λλ€. Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt (3 hunks)
- src/main/kotlin/org/meogo/domain/review/repository/ReviewRepository.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/review/service/DeleteReviewService.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/review/service/ModifyReviewService.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/user/exception/UserMisMatchException.kt (1 hunks)
Files skipped from review due to trivial changes (1)
- src/main/kotlin/org/meogo/domain/user/exception/UserMisMatchException.kt
Additional comments not posted (7)
src/main/kotlin/org/meogo/domain/review/repository/ReviewRepository.kt (1)
13-13
: μλ‘μ΄ λ©μλdeleteById(id: Long)
μΆκ° μΉμΈ
ReviewRepository
μΈν°νμ΄μ€μdeleteById(id: Long)
λ©μλλ₯Ό μΆκ°ν κ²μ 리뷰 μν°ν°λ₯Ό μλ³μλ‘ μμ ν μ μλ κΈ°λ₯μ μ 곡νμ¬ CRUD μμ μ ν₯μμν΅λλ€. μ΄ λ³κ²½μ μ μ νλ©° κΈ°μ‘΄ κΈ°λ₯μ μν₯μ λ―ΈμΉμ§ μλ κ²μΌλ‘ 보μ λλ€.μλΉμ€ λ μ΄μ΄μμ μ΄ λ©μλμ ꡬνμ κ²μ¦νκ³ μ μ ν ν μ€νΈκ° μλμ§ νμΈνμΈμ.
src/main/kotlin/org/meogo/domain/review/service/ModifyReviewService.kt (2)
6-6
: μμΈ μ²λ¦¬μ μ¬κ΅¬μ±μ μΉμΈν©λλ€.
UserMisMatchException
μ μν¬νΈ κ²½λ‘κ° λ³κ²½λμμ΅λλ€. μ΄ λ³κ²½μ μμΈ μ²λ¦¬λ₯Ό λμ± λͺ ννκ² νκΈ° μν κ²μΌλ‘ 보μ λλ€. νλ‘μ νΈ μ 체μμ μ΄ μμΈμ μ¬μ©μ΄ μΌκ΄λκ² λ³κ²½λμλμ§ νμΈνλ κ²μ΄ μ’κ² μ΅λλ€.
Line range hint
17-27
: 리뷰 μμ κΈ°λ₯μ ꡬνμ μΉμΈν©λλ€.
modifyReview
λ©μλλ νΈλμμ κ΄λ¦¬μ μμΈ μ²λ¦¬λ₯Ό μ μ¬μ©νκ³ μμ΅λλ€. μ¬μ©μ μΈμ¦κ³Ό 리뷰 μ‘΄μ¬ μ¬λΆλ₯Ό 체ν¬νλ λ‘μ§μ΄ μ μ νκ² κ΅¬νλμ΄ μμΌλ©°, 보μμ μν΄ μ¬μ©μ IDκ° λ¦¬λ·° μμ μμ IDμ μΌμΉνλμ§ νμΈνλ μ λ μ μ²λ¦¬λμμ΅λλ€.src/main/kotlin/org/meogo/domain/review/service/DeleteReviewService.kt (1)
12-17
: ν΄λμ€ κ΅¬μ‘° λ° μμ‘΄μ± κ΄λ¦¬ μΉμΈ
DeleteReviewService
ν΄λμ€λ μμ‘΄μ± μ£Όμ μ ν΅ν΄ReviewRepository
,UserFacade
,UserRepository
λ₯Ό μ κ΄λ¦¬νκ³ μμ΅λλ€. μ΄λ μ μ§λ³΄μμ±κ³Ό ν μ€νΈ μ©μ΄μ±μ λμ΄λ μ’μ λ°©λ²μ λλ€.src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt (3)
7-7
: μ μ ν μλΉμ€ λ° μ΄λ Έν μ΄μ κ°μ Έμ€κΈ°
DeleteReviewService
κ° μλ‘κ² μΆκ°λμμΌλ©°, μ΄λ μμ κΈ°λ₯μ μ§μνκΈ° μν κ²μ λλ€. λͺ¨λ νμν μλΉμ€μ μ΄λ Έν μ΄μ μ΄ μ μ νκ² κ°μ Έμμ‘μ΅λλ€.Also applies to: 10-18
28-29
: ν΄λμ€ κ΅¬μ‘° λ° μμ±μ μΉμΈ
ReviewController
ν΄λμ€λ μμ±μ μ£Όμ μ μ¬μ©νμ¬ μμ‘΄μ±μ κ΄λ¦¬ν©λλ€.DeleteReviewService
κ° μλ‘κ² μΆκ°λ κ²μ λ¬Έμ κ΄λ¦¬ κΈ°λ₯μ νμ₯νλ λ° νμν λ³κ²½μ λλ€.
47-50
: μμ λ©μλ ꡬν μΉμΈ
delete
λ©μλλ@DeleteMapping("/delete")
λ°@ResponseStatus(value = HttpStatus.NO_CONTENT)
λ‘ μ μ νκ² μ΄λ Έν μ΄μ λμ΄ μμ΅λλ€. μμ μμ μ΄ μ±κ³΅μ μΌλ‘ μνλλ©΄ λ΄μ©μ΄ μλ μν μ½λ 204λ₯Ό λ°ννλ κ²μ΄ μ μ ν©λλ€.
close #16
Summary by CodeRabbit
New Features
Bug Fixes
Documentation