feat(S15P11A705-308): 지도 마커 응답에 가장 최근에 담긴 컬렉션 id를 더한다 - #191
Open
minyongP wants to merge 1 commit into
Open
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
무엇
GET /v1/records/map응답items의 각 마커에latestCollectionId를 더한다.collection_record) 중 담은 시각 최신(created_at DESC, 동시각이면id DESC) 기준 Collection id — 컬렉션 내부 정렬(데이터모델 2.7)과 같은 기준이다.null, 컬렉션에서 뺀(소프트 삭제) 연결은 판단에서 제외.왜
프론트가 지도 마커 색상을 레코드가 담긴 컬렉션 기준으로 구분한다. 명세 개정: Team-PinLog/docs#48 (08 §4.2).
cc @tpals0409 @TrossYou — 마커 색상 구분용 필드가 응답에 추가됩니다. 응답 예시:
{ "recordId": 8801, "placeId": 5501, "name": "앤트러사이트 성수", "lat": 37.5447, "lng": 127.0557, "latestCollectionId": 7001 }어떻게
RecordLatestCollectionRepository신설 —DISTINCT ON으로 record별 최신 1건을 한 번에 모은다(마커별 반복 조회는 N+1). native라@SQLRestriction밖이므로deleted_at IS NULL을 직접 적었고, 제거 링크 제외를 테스트로 고정했다.MapMarkerResponse에 6번째 컴포넌트latestCollectionId추가. 마커 JPQL은 5-인자 보조 생성자를 그대로 쓴다.검증
RecordMapApiTests20/20 통과 (신규 4: 최신 컬렉션 id·미소속 null·제거 링크 제외·bbox 경로).FeedChannelPlanTests2건이 실패하나, origin/dev 기준선에서도 동일하게 재현된다(단독 실행은 통과 — 전체 실행 시 플래너 계획이 Incremental Sort를 버리는 순서/통계 의존). 이 브랜치와 무관한 기존 문제로, 별도 추적 예정. CI에서는 통과.🤖 Generated with Claude Code