-
Notifications
You must be signed in to change notification settings - Fork 4
Refactor/put project #296
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/put project #296
Changes from all commits
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 |
|---|---|---|
|
|
@@ -118,7 +118,6 @@ public Project update( | |
| String name, | ||
| String description, | ||
| ProjectStatusCode statusCode, | ||
| String contractNumber, | ||
| LocalDate plannedStartDate, | ||
| LocalDate plannedEndDate, | ||
| LocalDate startDate, | ||
|
|
@@ -132,7 +131,6 @@ public Project update( | |
| this.projectType = ProjectType; | ||
| this.projectStatusCode = statusCode; | ||
| this.bnsManager = bnsManager; | ||
| this.contractNumber = contractNumber; | ||
| this.plannedStartDate = plannedStartDate; | ||
| this.plannedEndDate = plannedEndDate; | ||
| this.startDate = startDate; | ||
|
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. 코드 리뷰 결과는 다음과 같습니다:
이 외에도, 전체적인 코드 구조와 다른 메소드나 클래스와의 관계를 고려하여 추가적인 피드백을 받을 수 있을 것입니다. |
||
|
|
||
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.
코드 리뷰를 진행해보겠습니다.
속성 제거:
contractNumber필드가Request와Response클래스에서 제거되었습니다. 이 변경이 불필요한 경우(예를 들어, 계약 번호가 여전히 필요하다면), 누락으로 인해 데이터 누락이나 링크 문제가 발생할 수 있습니다. 이 부분에서 요구사항 변경이나 기존의 기능이 여전히 필요한지 다시 확인해야 합니다.데이터 무결성: 만약
contractNumber를 제거하면서 비즈니스 로직이나 데이터베이스에서 관련 제약 조건이 있다면, 그런 제약이 이제 불필요해졌는지 확인해야 합니다. 관련 데이터가 제대로 처리되지 않을 위험이 있습니다.주석 처리: 클래스 속성에 대한 주석이 잘 작성되어 있습니다. 다만, 더 복잡한 비즈니스 로직이 있는 경우, 각 변수의 활용도 및 변화되는 맥락에 대해 추가적인 주석을 남기는 것이 좋습니다.
자료형 및 포맷: LocalDate는 잘 사용되고 있으나, 날짜와 관련된 다른 포맷이 자주 필요할 수 있습니다. 가능한 경우, 날짜 관련 함수를 추가하여 유연성을 높일 수 있습니다.
에러 핸들링: 프로젝트 업데이트 시 발생할 수 있는 오류를 적절히 처리하는지 확인해야 합니다. 예를 들어, null 체크나 데이터 유효성 검사를 통해 사용자에게 친숙한 에러 메시지를 제공하는 것이 중요합니다.
종합적으로,
contractNumber제거에 따른 영향 및 데이터 무결성 검토가 필요하고, 코드의 전반적인 안정성을 높이기 위해 추가적인 에러 핸들링이나 주석 강화를 고려해야 합니다.