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: 지원서 수정 기능 구현 #266

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

Chocochip101
Copy link
Member

작업 내용

  • 지원서 수정 기능을 구현했습니다.

관련 이슈

PR 체크리스트

  • 테스트는 모두 통과했나요?
  • 빌드는 성공했나요?
  • 코드 포맷팅을 진행했나요?
  • PR 내부의 예시는 삭제하셨나요?

@Chocochip101 Chocochip101 added feature 새로운 기능 backend 백엔드 labels Aug 5, 2024
@Chocochip101 Chocochip101 self-assigned this Aug 5, 2024
@Chocochip101 Chocochip101 changed the title feat: 지원서 수정 기능 구현 feat-be: 지원서 수정 기능 구현 Aug 5, 2024
Copy link
Contributor

github-actions bot commented Aug 5, 2024

📌 Test Coverage Report

Overall Project 64.23%
Files changed 100% 🍏

File Coverage
ApplicantController.java 100% 🍏
ApplicantUpdateRequest.java 100% 🍏
ApplicantService.java 100% 🍏
Applicant.java 63.71% 🍏

Copy link
Contributor

github-actions bot commented Aug 5, 2024

1722864831.806699

@woowacourse-teams woowacourse-teams deleted a comment from github-actions bot Aug 6, 2024
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

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.

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

// then
Optional<Applicant> changedApplicant = applicantRepository.findById(applicant.getId());
assertAll(
() -> assertThat(changedApplicant).isNotNull(),
Copy link
Member

Choose a reason for hiding this comment

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

isPresent() vs isNotNull()

옵셔널이 비어있지 않은지 확인하려면 어느 것이 더 명확하다고 생각하시나요?
저는 전자요. ㅎ ㅎ 초코칩 생각도 궁금합니다.

Copy link
Member Author

Choose a reason for hiding this comment

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

assertThat에서도 있는지 몰랐네요. isPresent는 Optional에 한정헤서 쓴다는 가정하에 있기에, 저도 전자가 가독성이 좋은것 같아요.

String toChangeName = "도비";
String toChangeEmail = "dev.dobby@gmail.com";
String toChangePhone = "010111111111";
applicantRepository.save(createApplicantDobby());
Copy link
Member

Choose a reason for hiding this comment

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

음 save를 생략해도 된다고 생각하는데, 어떻게 생각하시나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

필요없는 로직이네요. 삭제했습니다.

@Chocochip101 Chocochip101 merged commit 65fd6f6 into be/develop Aug 6, 2024
20 checks passed
@Chocochip101 Chocochip101 deleted the be-262-APPL_PATCH_01 branch August 6, 2024 08:16
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.

3 participants