Skip to content

[Feat] 특정 피드 상세 조회 기능 개발 [0.11.2]#516

Merged
joohyun1996 merged 7 commits intodevelopfrom
feat/feed/get-specific-feed
Jan 28, 2026
Merged

[Feat] 특정 피드 상세 조회 기능 개발 [0.11.2]#516
joohyun1996 merged 7 commits intodevelopfrom
feat/feed/get-specific-feed

Conversation

@joohyun1996
Copy link
Contributor

📝작업 내용

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

이전 개발한 모든 피드 목록 조회에서 하나의 피드를 선택하여 특정 피드 상세 조회 기능을 개발하였습니다.

이전 개발한 기능에서 특정 피드만 선택하면 되므로, 특별한 기능을 추가하지는 않았습니다.
특이사항은 커밋 411496c 에서 레포지토리에서 만약 해당 피드의 값이 없을 경우 Optional.Emtpy()를 반환하여 Service 코드에서 ErrorCode.FEED_NOT_FOUND를 반환하도록 설정하였습니다.
피드 사진이 없는 경우는 빈 리스트가 반환되므로 문제가 없음을 확인하였습니다.

스크린샷 (선택)

API 응답 사진: (API 응답 스크린샷을 첨부해주세요.)
image

API 명세서 사진: (API 명세서 스크린샷을 첨부해주세요.)
image
image
image
image
image
image
image

테스트 커버리지 사진: (테스트 커버리지 스크린샷을 첨부해주세요.)
image

Closes #500

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a feature to retrieve detailed information for a specific feed by its ID, building upon the previously developed feed list retrieval functionality. The implementation follows a consistent pattern across all layers (Controller, Service, Repository) and includes comprehensive test coverage.

Changes:

  • Added GetSpecificFeedResponse DTO for returning detailed feed information
  • Implemented getSpecificFeed(Long feedId) endpoint at GET /api/v1/feeds/{feedId}
  • Added repository method that returns Optional.empty() when feed not found, with service layer throwing FEED_NOT_FOUND error
  • Added FEED_NOT_FOUND error code to centralized error handling
  • Updated API documentation and bumped version to 0.11.2-SNAPSHOT

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/main/java/com/project200/undabang/feed/controller/FeedQueryController.java Added REST endpoint to retrieve specific feed details by ID
src/main/java/com/project200/undabang/feed/service/FeedQueryService.java Added interface method for specific feed retrieval
src/main/java/com/project200/undabang/feed/service/impl/FeedQueryServiceImpl.java Implemented service logic for specific feed retrieval with error handling
src/main/java/com/project200/undabang/feed/repository/FeedRepositoryCustom.java Added repository interface method for specific feed query
src/main/java/com/project200/undabang/feed/repository/impl/FeedRepositoryImpl.java Implemented QueryDSL query to fetch feed details with member info and pictures
src/main/java/com/project200/undabang/feed/dto/response/GetSpecificFeedResponse.java Created response DTO with factory method to map from record and pictures
src/main/java/com/project200/undabang/common/web/exception/ErrorCode.java Added FEED_NOT_FOUND error code for missing feed scenarios
src/test/java/com/project200/undabang/feed/controller/FeedQueryControllerTest.java Added controller test with API documentation generation
src/test/java/com/project200/undabang/feed/service/impl/FeedQueryServiceImplTest.java Added comprehensive service layer tests covering success and error cases
src/test/java/com/project200/undabang/feed/repository/impl/FeedRepositoryImplTest.java Added repository tests for various scenarios including guest users and missing feeds
src/docs/asciidoc/index.adoc Updated API documentation index to include new endpoint
build.gradle Updated version from 0.11.1-SNAPSHOT to 0.11.2-SNAPSHOT

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlchdaud123
Copy link
Contributor

수고하셨습니다.

dlchdaud123
dlchdaud123 previously approved these changes Jan 28, 2026
Base automatically changed from feat/feed/get-all-member-feeds to develop January 28, 2026 13:11
@joohyun1996 joohyun1996 dismissed dlchdaud123’s stale review January 28, 2026 13:11

The base branch was changed.

@joohyun1996 joohyun1996 merged commit 2291bdc into develop Jan 28, 2026
@joohyun1996 joohyun1996 deleted the feat/feed/get-specific-feed branch January 28, 2026 13:18
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.

특정 피드 상세 조회 API

3 participants