Repository navigation
feat: 공유집(앨범) 목록 조회 응답에 앨범 추가순 사진 3장 썸네일 추가 - #100
Merged
Merged
Conversation
각 앨범 카드에 사진 3장 썸네일이 필요한데 응답에 관련 필드가 없어 추가. 그 앨범에 가장 먼저 추가된(사진 촬영 시각이 아니라 앨범 매핑 생성 시각 기준) 사진 순으로 최대 3장을 presigned URL로 내려준다. Swagger 예시 생성기의 고정 재귀 깊이 상한을 타입 방문 이력 기반 순환 감지로 교체해, 4단계 이상 중첩된 응답 필드도 실제 예시 값이 채워지도록 수정. Closes #99
5 tasks
jaehunshin-git
approved these changes
Jul 16, 2026
6 tasks done
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.
📌 Summary
thumbnails)을 추가했습니다.SharedAlbumPhoto.createdAt)입니다.✅ Tasks
SharedAlbumPhotoRepository에 앨범별 최초 추가 사진 조회 쿼리 추가SharedAlbumListResponse.Item에thumbnails필드 추가SharedAlbumService에서 썸네일 presign 매핑 로직 구현@Schema) 반영🔥 Troubleshooting
coalesce(photo.takenAt, photo.createdAt)(PHOTO-01과 동일한 정렬 키)로 재사용했는데, 코드 리뷰 중 PHOTO-07(기존 사진을 다른 앨범에 추가)을 쓰면 "앨범에 먼저 저장된 순서"와 "사진이 찍힌 순서"가 어긋난다는 걸 확인해SharedAlbumPhoto.createdAt(앨범 매핑 생성 시각) 기준으로 수정했습니다. 이 정렬 키는shared_album_photo(shared_album_id, created_at)인덱스로 커버돼 성능도 함께 개선됐습니다.thumbnails필드가 4단계 중첩(items→Item→thumbnails→Thumbnail)이라 Swagger 예시 생성기의 고정 depth 상한(3)에 걸려NullPointerException이 났습니다. 근본 원인이 하드코딩된 깊이 제한이라 판단해, 타입 방문 이력 기반 순환 감지로 교체했습니다(다른 컨트롤러의 기존 예시에는 영향 없음을 확인).📸 API Test Results
thumbnails3장이 채워져 표시되는 것 확인(수정 전에는 빈 배열)./gradlew test --rerun: 220개 통과, 실패 0개🔍 To Reviewer
SharedAlbumPhoto.createdAt(앨범 매핑 생성 시각) 기준 정렬이 "앨범에 가장 먼저 저장된 사진"이라는 기획 의도에 맞는지 확인해주세요.READY가 아닌 사진은 건너뛰고 채워 넣지 않는 정책(배열 길이가 0~3일 수 있음)이 프론트 요구사항과 맞는지 확인해주세요.