-
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-7) review #8
Conversation
Caution Review failedThe pull request is closed. Walkthroughμλ‘μ΄ Changes
Poem
Tip We have updated our review workflow to use the Anthropic's Claude family of models. Please share any feedback in the discussion post on our Discord. 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: 0
Outside diff range, codebase verification and nitpick comments (1)
src/main/kotlin/org/meogo/domain/review/domain/Review.kt (1)
23-23
: λ³μ μλ λ μμ λ°μ΄ν° μ νμ μ¬μ©νλ κ²μ΄ μ’μ΅λλ€.
star
μμ±μ 리뷰μ λ³μ μ λνλ΄κΈ° μν΄Long
μΌλ‘ μ μλμμ΅λλ€. κ·Έλ¬λ λ³μ μλInt
λλShort
μ κ°μ λ μμ λ°μ΄ν° μ νμ μ¬μ©νλ κ²μ΄ λ μ μ ν μ μμ΅λλ€.λ³μ μ λ μμ λ°μ΄ν° μ νμ μ¬μ©νλ €λ©΄ μ΄ diffλ₯Ό μ μ©νμΈμ:
-val star: Long, +val star: Int,
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- src/main/kotlin/org/meogo/domain/review/domain/Review.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/review/repository/ReviewRepository.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/user/facade/UserFacade.kt (1 hunks)
- src/main/kotlin/org/meogo/domain/user/repository/UserRepository.kt (1 hunks)
Files skipped from review due to trivial changes (1)
- src/main/kotlin/org/meogo/domain/user/facade/UserFacade.kt
Additional comments not posted (13)
src/main/kotlin/org/meogo/domain/review/repository/ReviewRepository.kt (1)
6-8
: μ μμ±λ 리ν¬μ§ν 리 μΈν°νμ΄μ€μ λλ€!
ReviewRepository
μΈν°νμ΄μ€λ Spring DataμRepository
μΈν°νμ΄μ€λ₯Ό μμνκ³ μμΌλ©°,Review
κ°μ²΄λ₯Ό μ μ₯νλsave
ν¨μλ₯Ό μ μνκ³ μμ΅λλ€. μΈν°νμ΄μ€μ ν¨μμ λͺ λͺ κ·μΉμ μ λ°λ₯΄κ³ μμ΅λλ€.src/main/kotlin/org/meogo/domain/user/repository/UserRepository.kt (4)
4-4
: μΈν°νμ΄μ€ μμ λ³κ²½μ΄ μ μ ν΄ λ³΄μ λλ€.
Repository
μμJpaRepository
λ‘ μμμ λ³κ²½ν κ²μ JPA κ΄λ ¨ κΈ°λ₯μ μΆκ°λ‘ μ 곡λ°μ μ μμ΄ μ’μ μ νμΌλ‘ 보μ λλ€. 4λ² λΌμΈμ import λ¬Έκ³Όλ μΌμΉνλ©°, μΈν°νμ΄μ€μ λ©μλμλ μν₯μ μ£Όμ§ μλ€μ.Also applies to: 7-7
8-8
:save
λ©μλκ° μ μ ν΄ λ³΄μ λλ€.
User
μν°ν°λ₯Ό 맀κ°λ³μλ‘ λ°μUser
μν°ν°λ₯Ό λ°ννλsave
λ©μλμ μκ·Έλμ²λJpaRepository
μΈν°νμ΄μ€μ μΌμΉνλ©° μ¬λ°λ₯΄κ² μμ±λμμ΅λλ€.
10-10
:findByAccountId
λ©μλκ° μ μ ν΄ λ³΄μ λλ€.
accountId
λ₯Ό 맀κ°λ³μλ‘ λ°μUser
μν°ν°λ₯Ό Optionalλ‘ λ°ννλfindByAccountId
λ©μλμ μκ·Έλμ²λ Spring Data JPAμ 쿼리 λ©μλ λͺ λͺ κ·μΉμ μ λ°λ₯΄κ³ μμΌλ©° μ¬λ°λ₯΄κ² μμ±λμμ΅λλ€.
Line range hint
12-12
:existsByAccountId
λ©μλκ° μ μ ν΄ λ³΄μ λλ€.
accountId
λ₯Ό 맀κ°λ³μλ‘ λ°μ boolean κ°μ λ°ννλexistsByAccountId
λ©μλμ μκ·Έλμ²λ Spring Data JPAμ 쿼리 λ©μλ λͺ λͺ κ·μΉμ μ λ°λ₯΄κ³ μμΌλ©° μ¬λ°λ₯΄κ² μμ±λμμ΅λλ€.src/main/kotlin/org/meogo/domain/review/domain/Review.kt (7)
10-29
: ν΄λμ€ μ μκ° μ¬λ°λ¦ λλ€!
@Entity
μ£Όμμ μ¬μ©νμ¬Review
ν΄λμ€λ₯Ό μν°ν° ν΄λμ€λ‘ μ μνμ΅λλ€. κΈ°λ³Έ μμ±μμ μμ±μ 리뷰μ μμ±μ λνλ΄λ κ² κ°μ΅λλ€.
13-15
: κΈ°λ³Έ ν€ μ μκ° μ¬λ°λ¦ λλ€!
@Id
μ£Όμμ μ¬μ©νμ¬id
μμ±μ κΈ°λ³Έ ν€λ‘ μ μνμ΅λλ€.@GeneratedValue
μ£Όμκ³ΌIDENTITY
μ λ΅μ λ°μ΄ν°λ² μ΄μ€μμ κ°μ μλμΌλ‘ μμ±ν¨μ λνλ λλ€.
17-17
: λ μ§ μμ±μ΄ μ¬λ°λ₯΄κ² μ μλμμ΅λλ€!
date
μμ±μ 리뷰μ λ μ§μ μκ°μ λνλ΄κΈ° μν΄LocalDateTime
μΌλ‘ μ μλμμ΅λλ€.
19-19
: μ¬μ©μ ID μμ±μ΄ μ¬λ°λ₯΄κ² μ μλμμ΅λλ€!
userId
μμ±μ 리뷰λ₯Ό μμ±ν μ¬μ©μμ κ³ μ μλ³μλ₯Ό λνλ΄κΈ° μν΄UUID
λ‘ μ μλμμ΅λλ€.
21-21
: νκ΅ ID μμ±μ΄ μ¬λ°λ₯΄κ² μ μλμμ΅λλ€!
schoolId
μμ±μ 리뷰μ κ΄λ ¨λ νκ΅μ μλ³μλ₯Ό λνλ΄κΈ° μν΄Int
λ‘ μ μλμμ΅λλ€.
25-25
: λ΄μ© μμ±μ΄ μ¬λ°λ₯΄κ² μ μλμμ΅λλ€!
content
μμ±μ 리뷰μ λ΄μ©μ λνλ΄κΈ° μν΄String
μΌλ‘ μ μλμμ΅λλ€.
27-27
: μ¬μ§ μμ±μ΄ μ¬λ°λ₯΄κ² μ μλμμ΅λλ€!
picture
μμ±μ 리뷰μ κ΄λ ¨λ μ νμ μ¬μ§μ λνλ΄κΈ° μν΄ nullableString
μΌλ‘ μ μλμμ΅λλ€.src/main/kotlin/org/meogo/domain/review/presentation/ReviewController.kt (1)
18-20
: μ½λ λ³κ²½ μ¬νμ΄ μΉμΈλμμ΅λλ€.
@PostMapping
μ£Όμμ μ¬μ©νμ¬ POST μμ²μ μ²λ¦¬νλλ‘ λ©μλκ° μ¬λ°λ₯΄κ² ꡬμ±λμμ΅λλ€.createReviewService
μexecute
λ©μλκ° POST μμ² λ³Έλ¬Έμμ μμ νReviewRequest
κ°μ²΄μ ν¨κ» νΈμΆλ©λλ€.
close #7
Summary by CodeRabbit
μ κ· κΈ°λ₯
Review
ν΄λμ€ μΆκ°.λ²κ·Έ μμ
리ν©ν λ§
UserRepository
μ λΆλͺ¨ νμ μ JPA μ μ© μΈν°νμ΄μ€λ‘ λ³κ²½νμ¬ κΈ°λ₯ ν₯μ.