-
Notifications
You must be signed in to change notification settings - Fork 0
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/53 #54
Merged
Merged
Refactor/53 #54
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: UMC Dev CI/CD # workflow 이름 | ||
name: PicTalk dev CD # workflow 이름 | ||
|
||
on: # 이벤트 설정 | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ spring: | |
|
||
jpa: | ||
hibernate: | ||
ddl-auto: create-drop | ||
ddl-auto: update | ||
show-sql: true | ||
properties: | ||
hibernate: | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
코드에서 잘못된 부분이나 수정이 필요한 부분, 그리고 리팩토링할 수 있는 부분을 검토한 결과는 다음과 같습니다:
DDL Auto 설정 변경:
ddl-auto: create-drop
은 개발 환경에서 테스트할 때 유용하지만, 프로덕션 환경에서는 데이터가 잃어버릴 수 있습니다.update
로 바뀌었으나, 만약 운영 환경에서는 별도로 데이터 마이그레이션을 관리하는 것이 좋습니다. 따라서, 실제 프로덕션 환경에서는none
으로 설정하고, Liquibase나 Flyway와 같은 도구를 사용하여 데이터베이스 스키마 마이그레이션을 관리하는 것을 추천합니다.show-sql:
show-sql: true
는 SQL 쿼리를 콘솔에 출력하는데 유용할 수 있으나, 프로덕션 환경에서는 성능 문제나 보안상의 이유로false
로 설정하는 것이 좋습니다. 필요한 경우 로깅 프레임워크를 통해 로그 레벨을 조정할 수 있습니다.Indentation 및 코드 포맷팅:
properties
아래의 인덴트가 올바르지 않습니다. YAML 문법에서는 계층 구조에 따라 들여쓰기가 중요하므로, 올바르게 맞춰줘야 합니다.이러한 점들을 보완하여 다음과 같이 수정할 수 있습니다:
추가적인 개선 사항으로,
hibernate
에 필요한 속성이나 동작을 명시적으로 추가하여, 설정 파일의 가독성을 높이거나 명확하게 하는 것도 좋은 방법입니다.