Skip to content
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

[feat] 특정 청첩장의 방명록 조회 API 구현 #24

Merged
merged 4 commits into from
Jan 22, 2025

Conversation

KyunghwanChoi
Copy link
Contributor

@KyunghwanChoi KyunghwanChoi commented Jan 20, 2025

개요

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • 버그 수정
  • CSS 등 사용자 UI 디자인 변경
  • 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • 코드 리팩토링
  • 주석 추가 및 수정
  • 문서 수정
  • 테스트 추가, 테스트 리팩토링
  • 빌드 부분 혹은 패키지 매니저 수정
  • 파일 혹은 폴더명 수정
  • 파일 혹은 폴더 삭제

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

📣 To Reviewers

CommentService의 예외처리 코드는 아직 invitationRepository가 구현되기 전이라 주석처리 해뒀습니다.

@KyunghwanChoi KyunghwanChoi added feat New feature or request 환이 labels Jan 20, 2025
@KyunghwanChoi KyunghwanChoi self-assigned this Jan 20, 2025
@KyunghwanChoi KyunghwanChoi linked an issue Jan 20, 2025 that may be closed by this pull request
2 tasks
Copy link
Contributor

Choose a reason for hiding this comment

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

제일 아래(38번 라인) 줄 : } 아래에 1칸 더 공백을 만들어 주시는 것을 권장드립니다. 저도 얼마 전 동구의 피드백으로 알게 되었는데 해당 빨간 - 표시는 "EOL(개행) 경고"로 파일의 끝(종료)에 개행이 없을 때 발생합니다.
만약 파일의 끝에 개행이 없다면 예기치 못한 문제가 발생할 수 도 있고 또한 파일을 구분할 때 도움이 되기도 합니다(아마 C언어에서 File I/O 부분 쪽에서 배웠을 겁니당). 그래서 인텔리제이에서 파일을 생성하실 때 자동으로 제일 아래에 개행이 추가되는 것을 보실 수 있으실 텐데 그것은 이 같은 문제를 미연에 방지하고자입니다.

Copy link
Contributor 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.

이번 변경사항에 관한 것은 아닌데 혹시 빌더 메서드랑 객체 생성 메서드 내부에 Invitation도 포함되어야 하지 않나요? Comments 엔티티가 Invitation 엔티티를 참조하니

Copy link
Contributor Author

Choose a reason for hiding this comment

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

깜빡하고 넣지 않은 것 같습니다ㅠㅠ 수정하겠습니다!

Copy link
Contributor

@dyk-im dyk-im left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 코드 모두 확인했고 수정이 필요한 부분 리뷰 남겼으니 확인 부탁드려요!

@PathVariable Long invitationId,
@RequestParam(defaultValue = "0") int page){

Page<CommentResponseDTO> comments = commentService.findAllCommentsByInvitationId(invitationId, page);
Copy link
Contributor

Choose a reason for hiding this comment

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

Page 객체로 받아오면 필요없는 정보들도 모두 가져와져서 isLast, pageNumber 등 page 객체에서 추출할 수 있는 부분을 추출한 List 형태로 변경하는게 좋을 것 같습니다! 그리고 page 사이즈는 1부터 시작하도록 하는 것이 사용하는 데 있어 정확할 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

해당 사항 반영해보았습니다! 확인 부탁드립니다

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

@dyk-im dyk-im changed the title [feat] #23 특정 청첩장의 방명록 조회 API 구현 [feat] 특정 청첩장의 방명록 조회 API 구현 Jan 21, 2025
Copy link
Contributor

@dyk-im dyk-im left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 수정사항 모두 확인했고 문제 없는 것으로 보입니다!

Copy link
Contributor

@leeseulgi0208 leeseulgi0208 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

@dyk-im dyk-im merged commit fd460bc into develop Jan 22, 2025
2 checks passed
@dyk-im dyk-im deleted the feat/#23-특정-청첩장의-방명록-조회-API branch January 22, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request 환이
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 특정 청첩장의 방명록 조회 API
4 participants