-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BE] refactor: 초기 데이터 설정시 중복 삽입 방지, 선택지 최대 개수 적용 #405
[BE] refactor: 초기 데이터 설정시 중복 삽입 방지, 선택지 최대 개수 적용 #405
Conversation
Test Results48 tests 48 ✅ 2s ⏱️ Results for commit 3cae680. ♻️ This comment has been updated with latest results. |
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.
작은 의견과 함께 approve
@@ -37,10 +39,15 @@ public class DatabaseInitializer { | |||
@PostConstruct | |||
@Transactional | |||
void setup() { | |||
// 템플릿이 이미 존재하면 종료 | |||
if (templateRepository.existsById(1L)) { |
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.
기본으로 사용할 템플릿이 추후 변경될 것을 고려하여 id를 상수로 빼서 관리하는 것은 어떨까요?
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.
#405 (comment)
산초의 피드백으로 적용해보려고해요!
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.
짱짱~ 고민을 많아 하셨네요
private static final String CATEGORY_TEXT_QUESTION = "위에서 선택한 사항과 관련된 경험을 구체적으로 적어 주세요."; | ||
private static final int KEYWORD_CHECKBOX_MIN_COUNT = 1; | ||
private static final int KEYWORD_CHECKBOX_MAX_COUNT = 3; |
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.
아주 좋아용
@@ -37,10 +39,15 @@ public class DatabaseInitializer { | |||
@PostConstruct | |||
@Transactional | |||
void setup() { | |||
// 템플릿이 이미 존재하면 종료 | |||
if (templateRepository.existsById(1L)) { |
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.
[테드 의견도 좋고 그냥 말해보는 의견]
요 부분은 templateRepository.findAll().size() > 1 이렇게 가져가도 좋을 것 같아요 ㅎㅎ
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.
오오 좋습니다! 반영 완료!
🚀 어떤 기능을 구현했나요 ?
🔥 어떻게 해결했나요 ?
📝 어떤 부분에 집중해서 리뷰해야 할까요?
📚 참고 자료, 할 말