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: 평가 테이블에 평가자 이름 필드 추가 및 API 변경 #958

Merged
merged 4 commits into from
Dec 24, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Original issue description

목적

평가자 이름 필드 추가

작업 세부사항

  • Evaluation에 평가자 이름 필드 추가
  • 조회 API 응답에 이름 추가
  • 생성 API 요청에 이름 추가
  • 수정 API 요청에 이름 추가

참고 사항

  • 평가자 이름은 Evaluator로 하기로 아르와 합의 보았습니다.

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


EVAL_NAME_01

closes #957

@github-actions github-actions bot added backend 백엔드 feature 새로운 기능 labels Dec 17, 2024
@github-actions github-actions bot added this to the 스프린트 7.0 milestone Dec 17, 2024
Copy link
Contributor Author

1734436773.727529

Copy link
Contributor Author

1734436774.129299

@HyungHoKim00 HyungHoKim00 marked this pull request as ready for review December 17, 2024 12:02
Copy link
Member

@Chocochip101 Chocochip101 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~ 명오!

간단한 리뷰 남겼으니 확인해주세요 :)

@@ -81,8 +81,8 @@ private void runDataLoader() {
LocalDateTime endDate = LocalDateTime.of(2054, 10, 16, 10, 0, 0);
dashboardRepository.save(dashboard);
String description = """
<h2>2025 신입생 (7기) 선발 일정 </h2><p><br></p><ol><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span><strong>서류접수:</strong> 2024년 10월 6일(금) 오후 3시 ~ 10월 16일(월) 오전 10시</li><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span><strong>프리코스:</strong> 2024년 10월 19일(목) ~ 11월 15일(수)</li><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span><strong>1차 합격자 발표:</strong> 2024년 12월 11일(월) 오후 3시, 개별 E-mail 통보</li><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span><strong>최종 코딩 테스트:</strong> 2024년 12월 16일(토)</li><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span><strong>최종 합격자 발표:</strong> 2024년 12월 27일(수) 오후 3시, 개별 E-mail 통보 </li></ol><p><br></p><h2>2025 신입생 (7기) 교육 기간 </h2><p><br></p><ol><li data-list=\"bullet\"><span class=\"ql-ui\" contenteditable=\"false\"></span>2025년 2월 ~ 11월 (약 10개월) </li></ol>
Copy link
Member

Choose a reason for hiding this comment

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

매번 개행 때문에 변경되서 거슬리는군요. 다음에 이를 static 파일로 뺄 궁리를 해봐야겠네요.

@@ -33,6 +33,8 @@ public class Evaluation extends BaseEntity implements SecureResource {
@Column(name = "evaluation_id")
private Long id;

private String evaluator;
Copy link
Member

Choose a reason for hiding this comment

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

toString 재정의가 필요해보입니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

감 다잃었네요 ㅎㅎ;

Comment on lines 60 to 62
evaluation.getContent().equals(request.content())
&& evaluation.getScore().equals(request.score())
&& evaluation.getEvaluator().equals(request.evaluator())
Copy link
Member

@Chocochip101 Chocochip101 Dec 18, 2024

Choose a reason for hiding this comment

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

도메인 검증 로직으로 빼는건 어떤가요?

Suggested change
evaluation.getContent().equals(request.content())
&& evaluation.getScore().equals(request.score())
&& evaluation.getEvaluator().equals(request.evaluator())
evaluation.isContent(...) && evaluation.isScore(...) && evaluation.isEvaluator(...)

Copy link
Contributor

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.

👍

Comment on lines +7 to +9
@NotNull(message = "평가자 이름은 필수 값입니다.")
String evaluator,

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
Contributor

Choose a reason for hiding this comment

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

저는 개인적으로 현재는 필요하다고 생각합니당

Copy link
Member

@Chocochip101 Chocochip101 left a comment

Choose a reason for hiding this comment

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

깔끔해졌네요 :) 수고하셨습니다!

@HyungHoKim00 HyungHoKim00 merged commit 45273d9 into be/develop Dec 24, 2024
20 checks passed
@HyungHoKim00 HyungHoKim00 deleted the 957-be-EVAL_NAME_01 branch December 24, 2024 08:52
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