Skip to content

[chore] 운영서버로 배포 25/08/13#211

Merged
seongjunnoh merged 11 commits into
mainfrom
develop
Aug 13, 2025
Merged

[chore] 운영서버로 배포 25/08/13#211
seongjunnoh merged 11 commits into
mainfrom
develop

Conversation

@seongjunnoh

@seongjunnoh seongjunnoh commented Aug 13, 2025

Copy link
Copy Markdown
Collaborator

#️⃣ 연관된 이슈

closes #이슈번호

📝 작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)

📸 스크린샷

💬 리뷰 요구사항

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

📌 PR 진행 시 이러한 점들을 참고해 주세요

* P1 : 꼭 반영해 주세요 (Request Changes) - 이슈가 발생하거나 취약점이 발견되는 케이스 등
* P2 : 반영을 적극적으로 고려해 주시면 좋을 것 같아요 (Comment)
* P3 : 이런 방법도 있을 것 같아요~ 등의 사소한 의견입니다 (Chore)

Summary by CodeRabbit

  • 신규 기능
    • 팔로잉한 작성자 중 최근 피드를 올린 작성자 목록 조회 API 추가(/users/my-followings/recent-feeds). 최신 공개 피드 시점을 기준으로 정렬하며 최대 10명 반환. 제공 정보: 사용자 ID, 닉네임, 프로필 이미지 URL.
  • 문서
    • 신규 API에 대한 설명과 응답 스키마를 추가하여 API 문서화 개선.

seongjunnoh and others added 11 commits August 12, 2025 20:09
- 유저가 작성한 여러 공개 피드들 중, 가장 최근에 작성한 피드의 createdAt 기준으로 count + 정렬 되는지 확인하는 테스트 코드 추가
…-feed-writers-of-my-followings

[feat] 내가 팔로잉하는 유저들 중, 최근 공개 피드 작성한 유저 정보 조회 api 개발
@coderabbitai

coderabbitai Bot commented Aug 13, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

사용자가 팔로우한 작성자 중 최근 피드를 작성한 계정을 조회하는 신규 기능이 추가되었습니다. 컨트롤러에 GET /users/my-followings/recent-feeds 엔드포인트가 도입되고, 서비스/포트/리포지토리/매퍼/DTO가 연동되어 최근 작성자 목록을 조회·매핑합니다. 통합 테스트가 포함되었습니다.

Changes

Cohort / File(s) Summary
Controller
src/main/java/.../user/adapter/in/web/UserQueryController.java
신규 의존성(UserShowFollowingRecentWritersUseCase) 추가 및 GET /users/my-followings/recent-feeds 엔드포인트 도입. 와일드카드 임포트로 정리.
Response DTO
src/main/java/.../user/adapter/in/web/response/UserFollowingRecentWritersResponse.java
최근 작성자 응답 레코드 및 내부 레코드(RecentWriter: userId, nickname, profileImageUrl) 추가. Swagger 스키마 주석 포함.
Persistence Adapter & Repository
src/main/java/.../user/adapter/out/persistence/UserQueryPersistenceAdapter.java, .../repository/UserQueryRepository.java, .../repository/UserQueryRepositoryImpl.java
팔로잉의 최근 피드 작성자 조회 메서드 추가: findRecentFeedWritersOfMyFollowingsOrderByCreatedAtDesc. QueryDSL 조인/그룹/정렬/limit 구현. 어댑터에 위임 메서드 추가.
Mapper
src/main/java/.../user/application/mapper/UserQueryMapper.java
UserQueryDto → RecentWriter, 리스트 매핑, 리스트 → UserFollowingRecentWritersResponse 래핑 매핑 추가.
Ports (in/out) & DTO
src/main/java/.../user/application/port/in/UserShowFollowingRecentWritersUseCase.java, .../port/out/UserQueryPort.java, .../port/out/dto/UserQueryDto.java
인바운드 유스케이스 인터페이스 추가(showMyFollowingRecentWriters). 아웃바운드 포트에 최근 작성자 조회 메서드 추가. UserQueryDto에 @QueryProjection 3-파라미터 생성자 추가 및 일부 null 검증 완화.
Service
src/main/java/.../user/application/service/UserShowFollowingRecentWritersService.java
SIZE=10으로 제한하여 조회하고 매퍼로 응답 구성하는 읽기 전용 서비스 구현. 유스케이스 구현.
Tests
src/test/java/.../user/adapter/in/web/UserShowFollowingRecentWritersApiTest.java
통합 테스트 추가: 공개/비공개 필터링, 정렬 검증, 상한(10개) 검증, 최신 피드 기준 정렬 검증.

Sequence Diagram(s)

sequenceDiagram
  actor Client
  Client->>UserQueryController: GET /users/my-followings/recent-feeds (userId)
  UserQueryController->>UserShowFollowingRecentWritersService: showMyFollowingRecentWriters(userId)
  UserShowFollowingRecentWritersService->>UserQueryPort: findRecentFeedWritersOfMyFollowings(userId, size=10)
  UserQueryPort->>UserQueryPersistenceAdapter: delegate
  UserQueryPersistenceAdapter->>UserQueryRepository: findFeedWritersOfMyFollowingsOrderByCreatedAtDesc(userId, 10)
  UserQueryRepository->>DB: query (joins, group by, max(created_at), limit)
  DB-->>UserQueryRepository: List<UserQueryDto>
  UserQueryRepository-->>UserQueryPersistenceAdapter: List<UserQueryDto>
  UserQueryPersistenceAdapter-->>UserShowFollowingRecentWritersService: List<UserQueryDto>
  UserShowFollowingRecentWritersService->>UserQueryMapper: toRecentWriterResponses(dtos)
  UserQueryMapper-->>UserShowFollowingRecentWritersService: UserFollowingRecentWritersResponse
  UserShowFollowingRecentWritersService-->>UserQueryController: UserFollowingRecentWritersResponse
  UserQueryController-->>Client: BaseResponse<UserFollowingRecentWritersResponse>
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

🚀 deploy, 🛠️ feat

Suggested reviewers

  • hd0rable
  • buzz0331

Poem

꼬박꼬박 피드 냄새 맡는 토끼 한 마리
팔로잉 숲길 따라 최신 발자국을 추적해요 🥕
열 발짝까지만, 질서 정연히 줄을 서고
닉네임과 귀여운 얼굴, 바람처럼 기록하지요
오늘도 신상 작가들, 타임라인에 폴짝!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6572a3e and 910f78f.

📒 Files selected for processing (11)
  • src/main/java/konkuk/thip/user/adapter/in/web/UserQueryController.java (3 hunks)
  • src/main/java/konkuk/thip/user/adapter/in/web/response/UserFollowingRecentWritersResponse.java (1 hunks)
  • src/main/java/konkuk/thip/user/adapter/out/persistence/UserQueryPersistenceAdapter.java (1 hunks)
  • src/main/java/konkuk/thip/user/adapter/out/persistence/repository/UserQueryRepository.java (1 hunks)
  • src/main/java/konkuk/thip/user/adapter/out/persistence/repository/UserQueryRepositoryImpl.java (2 hunks)
  • src/main/java/konkuk/thip/user/application/mapper/UserQueryMapper.java (2 hunks)
  • src/main/java/konkuk/thip/user/application/port/in/UserShowFollowingRecentWritersUseCase.java (1 hunks)
  • src/main/java/konkuk/thip/user/application/port/out/UserQueryPort.java (1 hunks)
  • src/main/java/konkuk/thip/user/application/port/out/dto/UserQueryDto.java (1 hunks)
  • src/main/java/konkuk/thip/user/application/service/UserShowFollowingRecentWritersService.java (1 hunks)
  • src/test/java/konkuk/thip/user/adapter/in/web/UserShowFollowingRecentWritersApiTest.java (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch develop

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@github-actions

Copy link
Copy Markdown

Test Results

378 tests   378 ✅  30s ⏱️
111 suites    0 💤
111 files      0 ❌

Results for commit 910f78f.

@seongjunnoh seongjunnoh merged commit ac8f682 into main Aug 13, 2025
5 of 6 checks 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.

1 participant