-
Notifications
You must be signed in to change notification settings - Fork 0
[25.04.19 / TASK-157] Feature: 배치, soft delete 기능과 is active false 의 추가로 이에 모든 조건에 해당 조건 추가 #25
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
Conversation
""" Walkthrough이번 변경에서는 Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 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.
코드 잘 읽었습니다!
is_active 속성만 추가된 수준이라 당장은 크게 리뷰할 부분이 없는 것 같네요;;
혹시나 제가 빼먹은 테스트 케이스, 엣지 케이스를 봐주면 너무 좋을 것 같아요! |
이전부터 큰 문제 아니면 사소한 오타 정도를 계속 보고 있었어서, 그 부분을 놓친 것 같네요. |
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.
코드 잘 봤습니다! 기준님 말씀대로 변경사항이 복잡하지 않아서 크게 문제될 부분은 없어 보입니다.
일단 Approve 하고 테스트 케이스 생각나면 추가로 말씀 드릴게요!
좋았던 점
- 간단한 테스트긴 하지만 테스트 케이스 설명이 명확하고 구조가 깔끔해서 가독성이 좋았습니다!
궁금한 점
mockPool.query.mockResolvedValue
에 들어가는 값 중 rows
, rowCount
를 제외한 나머지 필드는 테스트에서 의미가 있는 값은 아닌 것 같은데 다 작성하신 이유가 있을까요?
mockPool.query.mockResolvedValue({
rows: mockPosts,
rowCount: mockPosts.length,
command: '',
oid: 0,
fields: [],
} as QueryResult);
QueryResult
타입을 맞추시기 위함 같기도 한데, Partial<QueryResult>
로 우회하는 방법을 쓰면 명시성이 떨어질까요?
as
를 사용해서 그런지 Partial을 쓰지 않고 command
, oid
, fields
를 삭제해도 타입 에러가 뜨진 않네요.
|
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.
좋았던 점
- 전체적으로 createMockQueryResult()로 mock 처리가 잘 되어있어서 코드 일관성이 좋았던 것 같습니다!
PS. 부족한 테스트케이스 또는 엣지케이스는 현재까지 안 보이는 것 같습니다! 한 번 더 살펴보겠습니다~!!
🔥 변경 사항
🏷 관련 이슈
📸 스크린샷 (UI 변경 시 필수)
📌 체크리스트
Summary by CodeRabbit
버그 수정
테스트