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

feat-be: 지원폼 답변 제출 기능 #213

Merged
merged 25 commits into from
Aug 1, 2024
Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 31, 2024

Original issue description

목적

지원자 입장에서 지원폼 답변을 제출하는 기능을 구현합니다.

작업 세부사항

  • 지원폼 제출 기능
  • 추후에 이메일을 전송 기능도 붙이 가능성 존재

참고 사항

아래의 별표줄 밑에 요구사항 ID만 작성해주세요. Prefix 금지!


APP_ADD_01

closes #212

@github-actions github-actions bot added backend 백엔드 feature 새로운 기능 labels Jul 31, 2024
@github-actions github-actions bot added this to the 스프린트 2.0 milestone Jul 31, 2024
@Chocochip101 Chocochip101 marked this pull request as ready for review July 31, 2024 12:31
@Chocochip101 Chocochip101 requested a review from xogns1514 July 31, 2024 12:31
Copy link
Contributor Author

1722429097.121259

Copy link
Contributor Author

📌 Test Coverage Report

Overall Project 66.28% -3.03%
Files changed 77.34%

File Coverage
DashboardService.java 100% 🍏
ApplyFormNotFoundException.java 100% 🍏
PersonalDataProcessingException.java 100% 🍏
ApplyFormController.java 100% 🍏
ApplyFormService.java 100% 🍏
ApplicantCreateRequest.java 100% 🍏
AnswerCreateRequest.java 100% 🍏
ApplyFormSubmitRequest.java 100% 🍏
InternalServerException.java 100% 🍏
QuestionType.java 92% -8% 🍏
ApplyForm.java 67.89% -32.11%
Question.java 50.55% -6.59%
Dashboard.java 29.82% 🍏
QuestionNotFoundException.java 0%
DataLoader.java 0% -7.81%

Copy link
Contributor

@HyungHoKim00 HyungHoKim00 left a 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/DataLoader.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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[질문] submit은 지원자 입장에서 제출하는 것 같은데, uri는 빈 질문지를 볼 수 있도록 되어있네요. 의도된 부분인가요?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제출 후에 어떤 applyForm으로 제출했는지 클라이언트에게 알려주기 위해 작성했습니다.


Process firstProcess = processRepository.findAllByDashboardId(applyForm.getDashboard().getId()).stream()
.min(Comparator.comparingInt(Process::getSequence))
.orElseThrow(InternalServerException::new);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[질문] 500번 응답을 주는 이유가 뭔가요?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

대시보드 생성 시점에서 적어도 하나의 프로세스(서류 제출)가 존재하지 않는다면 서버의 오류라고 판단했습니다.

Copy link
Member

@cutehumanS2 cutehumanS2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고 많으셨습니다. 👍
간단한 코멘트 남겼으니 확인 부탁드립니다.

Copy link
Contributor

@HyungHoKim00 HyungHoKim00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@xogns1514 xogns1514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다 초코칩~
테스트 관련해서 코멘트 하나 남겨두었습니다.

Copy link
Contributor

@xogns1514 xogns1514 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Chocochip101 Chocochip101 merged commit f21fb03 into be/develop Aug 1, 2024
4 checks passed
@Chocochip101 Chocochip101 deleted the be-212-APP_ADD_01 branch August 1, 2024 02:25
Chocochip101 added a commit that referenced this pull request Aug 12, 2024
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend 백엔드 feature 새로운 기능
Projects
Status: 완료
Development

Successfully merging this pull request may close these issues.

5 participants