-
Notifications
You must be signed in to change notification settings - Fork 4
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
커넥션풀 관련 설정 추가 + 회원탈퇴시 fk 관련 삭제 로직 추가 #784
Conversation
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.
깔끔하게 잘 구현해주셔서 사소한 것들 몇 가지 리뷰 남겼습니다 :)
PageRequest pageRequestB = PageRequest.of(1, 10); | ||
List<ReportActionAlarm> reportActionAlarmsB = reportActionAlarmRepository.findByMemberOrderByCreatedAtDesc( | ||
member, pageRequestB); |
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.
위와 동일합니다.
List<ReportActionAlarm> reportActionAlarms = reportActionAlarmRepository.findByMemberOrderByCreatedAtDesc( | ||
member, pageRequest); |
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.
List<ReportActionAlarm> reportActionAlarms = reportActionAlarmRepository.findByMemberOrderByCreatedAtDesc( | |
member, pageRequest); | |
List<ReportActionAlarm> reportActionAlarms = reportActionAlarmRepository | |
.findByMemberOrderByCreatedAtDesc(member, pageRequest); |
이렇게 개행 바꾸는 것은 어떨까요
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.
좋아요 자꾸 자동정렬이 이상하게 되네요
List<ReportActionAlarm> reportActionAlarmsA = reportActionAlarmRepository.findByMemberOrderByCreatedAtDesc( | ||
member, pageRequestA); |
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.
위와 동일합니다.
.as(new ParameterizedTypeReference<List<ReportActionAlarmResponse>>() { | ||
}.getType()); | ||
.as(new TypeRef<>() { | ||
}); |
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.
👍 👍
assertAll( | ||
() -> assertThat(memberRepository.findAll()).isEmpty(), | ||
() -> assertThat(reportActionAlarmRepository.findAll()).isEmpty() | ||
); |
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.
assertAll 대신 assertSoftly 써보는 것은 어떨까요.
개인적으로 그게 더 친절하게 안내해주더라구요.
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.
네 수정하도록 할께요~
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.
안녕하세요 루쿠 ㅎㅎ
늦은 시간까지 고생하셨습니다 👍🏻
몇 가지 작은 코멘트 남겼으니 확인해주시면 감사합니다 :)
@@ -9,8 +9,10 @@ | |||
|
|||
public interface ReportActionAlarmRepository extends JpaRepository<ReportActionAlarm, Long> { | |||
|
|||
List<ReportActionAlarm> findByMember(final Member member, final Pageable pageable); | |||
List<ReportActionAlarm> findByMemberOrderByCreatedAtDesc(final Member member, final Pageable pageable); |
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.
무슨말씀인지 잘 이해가 안되요 ㅠ
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.
auto increment 전략을 사용하고 있기에 id순이 생성순과 동일하고, id에는 PK 인덱스가 걸려있지만, createdAt에는 인덱스가 걸려있지 않아 인덱스가 걸려있는 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.
아하 어차피 id로 최신순으로 이미 정렬이 가능하니 id로 가져온다는 말씀이군요! 수정해보겠습니다!
reportActionAlarmRepository.deleteAllById(reportActionAlarmIds); | ||
} | ||
|
||
private void deleteNotices(final Member member) { |
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.
공지사항까지 챙겨주셔서 감사합니다 👍🏻
hikari: | ||
maximumPoolSize: ${MAXIMUM_POOL_SIZE} | ||
connectionTimeout: ${CONNECTION_TIMEOUT} | ||
maxLifetime: ${MAX_LIFETIME} |
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.
이외의 설정도 많았던 것 같은데 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.
그 이외의 설정값들은 default값이여서 따로 설정은 하지 않았습니다!
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.
다른 분들께서 리뷰를 잘 남겨주셔서 따로 남길 리뷰가 없네요!
이전에 남겼던 리뷰 반영까지 👍🏻
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.
고생하셨습니다 루쿠
ㅡ 쿠 ㅡ
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
관련 코드만 수정하시면 될 것 같아서 미리 approve 할께요 ~
마지막 기능까지 고생하셨습니다 ㅎㅎ 👍
🔥 연관 이슈
close: #767
📝 작업 요약
⏰ 소요 시간
30분
🔎 작업 상세 설명
🌟 논의 사항
Q. 이벤트리스너 테스트에서 @disable 을 붙인 이유는 깃허브 액션때문에 추가하신건가요?