Skip to content

Conversation

@mmihye
Copy link
Member

@mmihye mmihye commented Jan 22, 2025

🚩 관련 이슈

📋 구현 기능 명세

  • 불필요한 로직 삭제
  • 지금 보내야하는 리마인더 가져오는 로직 변경

📌 PR Point

  • 무슨 이유로 어떻게 코드를 변경했는지
    1분마다 모든 리마인더 데이터를 가져와서 비교하는 로직보다 쿼리문에서 걸러서 가져오는것이 더 좋을것같아 그렇게 변경했습니다.

  • 어떤 부분에 리뷰어가 집중해야 하는지
    지금 remindDates가 배열을 String으로 저장하고 있어 natvieQuery를 사용했는데 날짜배열을 테이블 분리해야할지는 고민해봐야할것같습니다...흠..

  • 개발하면서 어떤 점이 궁금했는지
    reminder를 가져와서 user 처리할때 지연로딩 오류로 일단 EAGER로 바꿨는데,
    이건 쿼리에서 user 정보까지 한번에 가져오는 식으로 추후에 변경하는게 좋을지
    지금 이대로 가도 괜찮을지 고민이네요

@mmihye mmihye requested a review from sss4920 January 22, 2025 02:03
@mmihye mmihye self-assigned this Jan 22, 2025
Comment on lines +44 to +51

//한국 시간대로 변환
ZoneId koreaTimeZone = ZoneId.of("Asia/Seoul");
ZonedDateTime koreaTime = now.atDate(ZonedDateTime.now().toLocalDate()).atZone(koreaTimeZone);

//ZonedDateTime에서 LocalTime 추출
LocalTime koreaLocalTime = koreaTime.toLocalTime();

Copy link
Member Author

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
Contributor

@sss4920 sss4920 left a comment

Choose a reason for hiding this comment

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

굿굿! 수고하셨습니당 엄청 많은양이라 지우는거 쉽지않았을텐데 최고네용..

reminder를 가져와서 user 처리할때 지연로딩 오류로 일단 EAGER로 바꿨는데,
이건 쿼리에서 user 정보까지 한번에 가져오는 식으로 추후에 변경하는게 좋을지
지금 이대로 가도 괜찮을지 고민이네요

혹시 어디부분에서 지연로딩 오류가 났었는지 정확한 지점을 알수있을까욤?!

// TODO 플랫폼마다 별도의 설정이 필요한 경우 사용

// Android
public AndroidConfig TokenAndroidConfig(FCMPushRequestDto request) {
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 Author

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.

최곱니다 🤣

Comment on lines +44 to +51

//한국 시간대로 변환
ZoneId koreaTimeZone = ZoneId.of("Asia/Seoul");
ZonedDateTime koreaTime = now.atDate(ZonedDateTime.now().toLocalDate()).atZone(koreaTimeZone);

//ZonedDateTime에서 LocalTime 추출
LocalTime koreaLocalTime = koreaTime.toLocalTime();

Copy link
Contributor

Choose a reason for hiding this comment

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

그래도 많이 깔끔해졌네용 키키 시간 관련된 도메인을 하나 만들어서 빼는거 생각해봐도 좋을거같은데 같이 고민해봅시당

String title = "";
String body = "";

switch (randomNumber) {
Copy link
Contributor

Choose a reason for hiding this comment

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

보니까 스위치 문에서 title body가 엄청 겹쳐서 만들어지네욤 흠냐 ㅋㅋ
지금 드는 생각은 title, body를 담는 도메인을 만들어서 코드를 수정할 수 있을거같은데 저도 고민 좀 해보겠숩니당 ㅋㅋ

@sss4920 sss4920 merged commit 30df1b2 into develop Apr 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

알람 검증 로직 리펙토링

3 participants