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

πŸ„ :: (Meogo-16) delete review #17

Merged
merged 2 commits into from
Sep 5, 2024
Merged

πŸ„ :: (Meogo-16) delete review #17

merged 2 commits into from
Sep 5, 2024

Conversation

meltapplee
Copy link
Member

@meltapplee meltapplee commented Sep 5, 2024

close #16

Summary by CodeRabbit

  • New Features

    • 리뷰 μ‚­μ œ κΈ°λŠ₯이 μΆ”κ°€λ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ‚¬μš©μžλŠ” 이제 리뷰λ₯Ό ID둜 μ‚­μ œν•  수 μžˆμŠ΅λ‹ˆλ‹€.
  • Bug Fixes

    • μ‚¬μš©μžμ™€ 리뷰의 μ†Œμœ κΆŒμ„ ν™•μΈν•˜μ—¬, κΆŒν•œμ΄ μ—†λŠ” μ‚¬μš©μžμ˜ μ‚­μ œλ₯Ό λ°©μ§€ν•˜λŠ” κΈ°λŠ₯이 κ°•ν™”λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
  • Documentation

    • μ˜ˆμ™Έ 처리 클래슀의 νŒ¨ν‚€μ§€κ°€ μž¬μ‘°μ •λ˜μ–΄ μ‚¬μš©μž κ΄€λ ¨ μ˜ˆμ™Έλ‘œ λΆ„λ₯˜λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

@meltapplee meltapplee added the κΈ°λŠ₯개발 make something label Sep 5, 2024
@meltapplee meltapplee self-assigned this Sep 5, 2024
Copy link

coderabbitai bot commented Sep 5, 2024

Walkthrough

λ³€κ²½ 사항은 리뷰 관리 μ‹œμŠ€ν…œμ— 리뷰 μ‚­μ œ κΈ°λŠ₯을 μΆ”κ°€ν•˜λŠ” κ²ƒμž…λ‹ˆλ‹€. ReviewController에 μƒˆλ‘œμš΄ μ‚­μ œ μ—”λ“œν¬μΈνŠΈκ°€ μΆ”κ°€λ˜μ—ˆμœΌλ©°, DeleteReviewServiceκ°€ ν†΅ν•©λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 이 μ„œλΉ„μŠ€λŠ” 리뷰λ₯Ό μ‚­μ œν•˜λŠ” κΈ°λŠ₯을 μ œκ³΅ν•˜λ©°, μ‚¬μš©μž κΆŒν•œμ„ ν™•μΈν•˜μ—¬ λ³΄μ•ˆμ„ κ°•ν™”ν•©λ‹ˆλ‹€. λ˜ν•œ, κ΄€λ ¨ μ˜ˆμ™Έ 클래슀의 νŒ¨ν‚€μ§€ ꡬ쑰가 λ³€κ²½λ˜μ–΄ μ½”λ“œμ˜ λͺ…확성이 ν–₯μƒλ˜μ—ˆμŠ΅λ‹ˆλ‹€.

Changes

파일 경둜 λ³€κ²½ μš”μ•½
src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt 리뷰 μ‚­μ œλ₯Ό μœ„ν•œ μƒˆλ‘œμš΄ μ—”λ“œν¬μΈνŠΈμ™€ λ©”μ„œλ“œ μΆ”κ°€. DeleteReviewService 톡합.
src/main/kotlin/org/meogo/domain/review/repository/ReviewRepository.kt deleteById(id: Long) λ©”μ„œλ“œ μΆ”κ°€, 리뷰 μ‚­μ œ κΈ°λŠ₯ ν™•μž₯.
src/main/kotlin/org/meogo/domain/review/service/DeleteReviewService.kt 리뷰 μ‚­μ œ κΈ°λŠ₯을 μ œκ³΅ν•˜λŠ” μ„œλΉ„μŠ€ 클래슀 μΆ”κ°€. μ‚¬μš©μž κΆŒν•œ 확인 및 μ˜ˆμ™Έ 처리 포함.
src/main/kotlin/org/meogo/domain/review/service/ModifyReviewService.kt UserMisMatchException의 import 경둜 λ³€κ²½.
src/main/kotlin/org/meogo/domain/user/exception/UserMisMatchException.kt νŒ¨ν‚€μ§€ μ„ μ–Έ λ³€κ²½: org.meogo.domain.review.exceptionμ—μ„œ org.meogo.domain.user.exception으둜 이동.

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?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a 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

Commits

Files that changed from the base of the PR and between 28153f1 and ad4db95.

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λ₯Ό λ°˜ν™˜ν•˜λŠ” 것이 μ μ ˆν•©λ‹ˆλ‹€.

@meltapplee meltapplee merged commit b379d1a into main Sep 5, 2024
2 checks passed
@meltapplee meltapplee deleted the 16-delete-review branch September 5, 2024 11:07
@coderabbitai coderabbitai bot mentioned this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

리뷰 μ‚­μ œ
1 participant