[Feat] 특정 피드 상세 조회 기능 개발 [0.11.2]#516
Merged
joohyun1996 merged 7 commits intodevelopfrom Jan 28, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
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
GetSpecificFeedResponseDTO for returning detailed feed information - Implemented
getSpecificFeed(Long feedId)endpoint atGET /api/v1/feeds/{feedId} - Added repository method that returns
Optional.empty()when feed not found, with service layer throwingFEED_NOT_FOUNDerror - Added
FEED_NOT_FOUNDerror 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.
src/main/java/com/project200/undabang/feed/controller/FeedQueryController.java
Show resolved
Hide resolved
src/main/java/com/project200/undabang/feed/dto/response/GetSpecificFeedResponse.java
Show resolved
Hide resolved
src/main/java/com/project200/undabang/feed/repository/impl/FeedRepositoryImpl.java
Outdated
Show resolved
Hide resolved
dlchdaud123
reviewed
Jan 28, 2026
src/main/java/com/project200/undabang/feed/repository/impl/FeedRepositoryImpl.java
Show resolved
Hide resolved
Contributor
|
수고하셨습니다. |
dlchdaud123
previously approved these changes
Jan 28, 2026
The base branch was changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝작업 내용
이전 개발한 모든 피드 목록 조회에서 하나의 피드를 선택하여 특정 피드 상세 조회 기능을 개발하였습니다.
이전 개발한 기능에서 특정 피드만 선택하면 되므로, 특별한 기능을 추가하지는 않았습니다.
특이사항은 커밋 411496c 에서 레포지토리에서 만약 해당 피드의 값이 없을 경우 Optional.Emtpy()를 반환하여 Service 코드에서 ErrorCode.FEED_NOT_FOUND를 반환하도록 설정하였습니다.
피드 사진이 없는 경우는 빈 리스트가 반환되므로 문제가 없음을 확인하였습니다.
스크린샷 (선택)
API 응답 사진: (API 응답 스크린샷을 첨부해주세요.)

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







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

Closes #500