Skip to content

Conversation

@HoyeongJeon
Copy link
Collaborator

@HoyeongJeon HoyeongJeon commented May 4, 2025

✅ PR 유형

어떤 변경 사항이 있었나요?

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

📝 작업 내용

  • 편지 모아보기 응답에 scheduleId 도 추가
  • 잘못 사용한 페이지네이션 메서드 변경

✏️ 관련 이슈


🎸 기타 사항 or 추가 코멘트

Summary by CodeRabbit

  • 신규 기능

    • 편지 미리보기 응답에 일정 ID(scheduleId) 항목이 추가되었습니다.
  • 기능 개선

    • 커플에게 도착한 편지 목록 조회 시, 파트너별이 아닌 커플 전체 대상으로 조회하도록 변경되었습니다.
    • 편지 목록 조회 시 페이지네이션(페이징) 요청이 적용되어, 원하는 범위의 편지만 받아볼 수 있습니다.
  • 기타

    • 더 이상 사용되지 않는 API 경로 상수(LETTERS_TO_ME)가 제거되었습니다.

@HoyeongJeon HoyeongJeon self-assigned this May 4, 2025
@coderabbitai
Copy link

coderabbitai bot commented May 4, 2025

Walkthrough

이 변경사항은 커플에게 도착한 편지 목록을 조회하는 로직을 전면적으로 수정합니다. 기존에는 특정 파트너를 기준으로 편지를 필터링했으나, 이제는 커플 전체를 대상으로 편지를 조회하도록 변경되었습니다. 이에 따라 레포지토리, 서비스 계층의 메서드 시그니처와 쿼리가 수정되었으며, 파라미터와 반환 타입도 일부 변경되었습니다. 또한, 편지 미리보기 응답 객체에 scheduleId 필드가 추가되었고, API 경로 상수 중 사용되지 않는 값이 제거되었습니다.

Changes

파일/경로 변경 요약
.../repository/LetterRepository.kt, .../service/LetterService.kt 편지를 특정 파트너가 아닌 커플 전체 대상으로 조회하도록 메서드명, 파라미터, 반환 타입 수정
.../dto/response/LetterPreviewResponse.kt scheduleId: Long? 필드 추가 및 팩토리 메서드(of)에 해당 필드 값 할당 로직 추가
.../facade/ReadLetterFacade.kt 편지 목록 조회 시 서비스 계층 메서드 호출 방식 및 파라미터 전달 방식 변경(페이지네이션 적용)
.../presentation/ApiPath.kt 사용하지 않는 LETTERS_TO_ME 상수 제거

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant ReadLetterFacade
    participant LetterService
    participant LetterRepository

    Client->>ReadLetterFacade: getLetterListToCouple(readLettersToMePaginationRequest)
    ReadLetterFacade->>LetterService: findAllToCouple(couple, readLettersToMePaginationRequest)
    LetterService->>LetterRepository: findAllToCouple(coupleId, key, take)
    LetterRepository-->>LetterService: List<Letter>
    LetterService-->>ReadLetterFacade: List<Letter>
    ReadLetterFacade-->>Client: LetterPreviewResponse + pagination info
Loading

Possibly related PRs

  • Issue: (#47) 나에게 온 편지 조회 #48: 파트너별 편지 조회 및 페이지네이션 기능을 추가하는 PR로, 이번 변경에서 해당 기능이 커플 전체 조회로 대체되거나 직접적으로 수정됨.

Poem

🐰
커플 편지 한아름,
파트너 구분 없이 쏙쏙 모아,
미리보기엔 일정 ID도 첨가!
상수는 정리, 코드도 산뜻,
토끼는 오늘도 깡총깡총
새로워진 편지함에
사랑을 담아요.


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4687c85 and 927d003.

📒 Files selected for processing (3)
  • src/main/kotlin/gomushin/backend/schedule/domain/repository/LetterRepository.kt (1 hunks)
  • src/main/kotlin/gomushin/backend/schedule/domain/service/LetterService.kt (1 hunks)
  • src/main/kotlin/gomushin/backend/schedule/facade/ReadLetterFacade.kt (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/main/kotlin/gomushin/backend/schedule/facade/ReadLetterFacade.kt
  • src/main/kotlin/gomushin/backend/schedule/domain/repository/LetterRepository.kt
  • src/main/kotlin/gomushin/backend/schedule/domain/service/LetterService.kt
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@HoyeongJeon HoyeongJeon requested a review from kimyeoungrok May 4, 2025 06:05
@HoyeongJeon HoyeongJeon force-pushed the issue/#81-edit-letters-to-me-response branch from 4687c85 to 927d003 Compare May 4, 2025 06:13
@HoyeongJeon HoyeongJeon merged commit 7d1efc9 into main May 4, 2025
1 check passed
@HoyeongJeon HoyeongJeon deleted the issue/#81-edit-letters-to-me-response branch May 4, 2025 10:22
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.

내게 온 편지 모아보기 응답에 스케쥴 ID 추가

3 participants