-
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
[feat] 질문 생성(ai 제외) 및 최신 질문 조회 완료 #30
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.
굿입니당ヽ(•̀ω•́ )ゝ
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.
👍 확인 부탁드립니다~
// @PostMapping("/rooms/{roomId}/questions") | ||
// public ResponseEntity<Void> createQuestion( | ||
// @UserId Long userId, | ||
// @PathVariable Long roomId | ||
// ) { | ||
// URI uri = URI.create("/question/" + questionService.create(userId, roomId).toString()); | ||
// return ResponseEntity.created(uri).build(); | ||
// } |
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.
이쪽 부분이 잘 이해가 안 가는데 어떤식으로 동작하는건가요?
cron으로 돌릴거라면 API가 굳이 필요하지 않을 것 같은데 질문 강제 생성인가요?
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.
테스트해본다고 스케줄설정 전 했던건데 까먹고 안지웠네용
} else { | ||
return period.getYears() > 0 || period.getMonths() > 0; | ||
} |
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.
이거 else문은 어떤걸 확인하기 위한건가요?
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.
한 달 이상 또는 일 년 이상 차이날 경우 getDays를 했을 때 4보다 작게 나오는 경우가 있어서 이에 대한 예외처리 입니다
import org.mockito.MockitoAnnotations; | ||
|
||
|
||
public class QuestionServiceTest { |
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.
다 좋은데 가독성 좋게 사이 줄바꿈이 있으면 남들이 보고 이해하기에 더 좋을 것 같아요!
Related issue 🛠
Work Description ✏️
Uncompleted Tasks 😅
To Reviewers 📢
질문 생성을 할 때 12시 마다 모든 방의 사람들에게 질문을 생성하면 트래픽이 엄청날 것 같은데 나중에 모여서 얘기해봐요(ai까지 쓰면 엄청날듯)