-
Notifications
You must be signed in to change notification settings - Fork 6
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-be: 지원폼 답변 제출 기능 #213
Conversation
This reverts commit 314654a.
1722429097.121259 |
📌 Test Coverage Report
|
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.
고생 많으셨습니다 초코칩!! 간단한 리뷰와 질문들 남겨놓았으니, 확인 바랍니다.
backend/src/main/java/com/cruru/applyform/domain/ApplyForm.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/cruru/applyform/service/ApplyFormService.java
Outdated
Show resolved
Hide resolved
@PathVariable(name = "applyform_id") long applyFormId | ||
) { | ||
applyFormService.submit(request, applyFormId); | ||
return ResponseEntity.created(URI.create("/v1/applyform/" + applyFormId)).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.
[질문] submit은 지원자 입장에서 제출하는 것 같은데, uri는 빈 질문지를 볼 수 있도록 되어있네요. 의도된 부분인가요?
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.
제출 후에 어떤 applyForm으로 제출했는지 클라이언트에게 알려주기 위해 작성했습니다.
backend/src/test/java/com/cruru/applyform/controller/ApplyFormControllerTest.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/cruru/applyform/controller/dto/AnswerCreateRequest.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/cruru/applyform/service/ApplyFormService.java
Outdated
Show resolved
Hide resolved
backend/src/test/java/com/cruru/applyform/controller/ApplyFormControllerTest.java
Outdated
Show resolved
Hide resolved
|
||
Process firstProcess = processRepository.findAllByDashboardId(applyForm.getDashboard().getId()).stream() | ||
.min(Comparator.comparingInt(Process::getSequence)) | ||
.orElseThrow(InternalServerException::new); |
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.
[질문] 500번 응답을 주는 이유가 뭔가요?
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.
대시보드 생성 시점에서 적어도 하나의 프로세스(서류 제출)가 존재하지 않는다면 서버의 오류라고 판단했습니다.
2fda0a7
to
54605bd
Compare
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.
수고 많으셨습니다. 👍
간단한 코멘트 남겼으니 확인 부탁드립니다.
backend/src/main/java/com/cruru/applyform/exception/ApplyFormNotFoundException.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/cruru/applyform/service/ApplyFormService.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/cruru/question/exception/QuestionNotFoundException.java
Outdated
Show resolved
Hide resolved
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.
LGTM
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.
수고하셨습니다 초코칩~
테스트 관련해서 코멘트 하나 남겨두었습니다.
backend/src/test/java/com/cruru/applyform/domain/repository/ApplyFormRepositoryTest.java
Outdated
Show resolved
Hide resolved
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.
LGTM
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Do Yeop Kim <113661364+Dobby-Kim@users.noreply.github.com> Co-authored-by: Kwoun Ki Ho <fingercut3822@gmail.com>
Original issue description
목적
작업 세부사항
참고 사항
APP_ADD_01
closes #212