-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: Period를 외부에서 생성된 상태로 받도록 수정 #793
Changes from 5 commits
7592705
fcc0565
875319e
b676d6b
6920268
62208d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -179,7 +179,7 @@ protected RecruitmentRound createRecruitmentRound() { | |||||||||
Recruitment recruitment = createRecruitment(ACADEMIC_YEAR, SEMESTER_TYPE, FEE); | ||||||||||
|
||||||||||
RecruitmentRound recruitmentRound = | ||||||||||
RecruitmentRound.create(RECRUITMENT_ROUND_NAME, START_DATE, END_DATE, recruitment, ROUND_TYPE); | ||||||||||
RecruitmentRound.create(RECRUITMENT_ROUND_NAME, START_TO_END_PERIOD, recruitment, ROUND_TYPE); | ||||||||||
|
||||||||||
return recruitmentRoundRepository.save(recruitmentRound); | ||||||||||
} | ||||||||||
|
@@ -194,7 +194,8 @@ protected RecruitmentRound createRecruitmentRound( | |||||||||
Money fee) { | ||||||||||
Recruitment recruitment = createRecruitment(academicYear, semesterType, fee); | ||||||||||
|
||||||||||
RecruitmentRound recruitmentRound = RecruitmentRound.create(name, startDate, endDate, recruitment, roundType); | ||||||||||
RecruitmentRound recruitmentRound = | ||||||||||
RecruitmentRound.create(name, Period.createPeriod(startDate, endDate), recruitment, roundType); | ||||||||||
Comment on lines
+197
to
+198
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion
현재 구현은
다음과 같이 메서드 시그니처를 변경하고 구현을 수정하는 것을 고려해보세요: protected RecruitmentRound createRecruitmentRound(
String name,
- LocalDateTime startDate,
- LocalDateTime endDate,
+ Period period,
Integer academicYear,
SemesterType semesterType,
RoundType roundType,
Money fee) {
Recruitment recruitment = createRecruitment(academicYear, semesterType, fee);
RecruitmentRound recruitmentRound =
- RecruitmentRound.create(name, Period.createPeriod(startDate, endDate), recruitment, roundType);
+ RecruitmentRound.create(name, period, recruitment, roundType);
return recruitmentRoundRepository.save(recruitmentRound);
} 이렇게 변경하면 PR의 목표인 "Period를 외부에서 생성된 상태로 받도록 수정"을 완전히 달성할 수 있습니다. 📝 Committable suggestion
Suggested change
|
||||||||||
return recruitmentRoundRepository.save(recruitmentRound); | ||||||||||
} | ||||||||||
|
||||||||||
|
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.
일관된 변경 승인 및 불일치 사항 재확인 필요
151-152행과 155행의 변경사항은 이전 세그먼트들과 일관되게
START_TO_END_PERIOD
를 사용하고 있어 적절합니다.하지만 159-162행은 이전 세그먼트에서 지적한 것과 동일한 문제가 있습니다:
Period.createPeriod
사용이 파일의 다른 부분과 일치하지 않습니다.ROUND_TWO_START_DATE
를 사용하고 있어 오타일 가능성이 있습니다.이 부분을 검토하고 필요한 경우 수정해 주시기 바랍니다.
Also applies to: 155-155, 159-162