feat: 홈 요약 카운트 API - #164
Merged
Merged
Conversation
공유 카운트는 링크가 아니라 시술기록 기준 distinct 다. 링크 하나가 기록 여러 개를 담을 수 있고 같은 기록을 여러 링크로 공유할 수도 있어, 링크를 세면 시술 기록 수와 단위가 어긋난다.
This was referenced Sep 3, 2026
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 /me/summary추가 — 시술 기록·분석 완료 기록·후보 스타일·공유 중 기록 수작업 목적
이 카운트를 내려주는 엔드포인트가 없어 화면이 목록 API 를 조합해 숫자를 만들고 있고,
그 결과 공유 카운트가 링크 수를 세고 분석 카운트는 만들 방법이 없어 0 으로 표시된다.
집계 규칙을 서버 한 곳에 둬 화면마다 정의가 갈리는 것도 막는다.
테스트 방법
핵심은 "링크 3개가 기록 2개를 가리켜도
shared_record_count는 2" 다. 그 밖에 한 기록에성공 분석이 여러 건일 때, 후보 스타일만 담은 링크일 때, 철회·만료된 링크일 때, 남의
데이터가 섞일 때를 각각 고정했다.
체크리스트
기타 사항
shared_record_count는 공유 링크 수가 아니라 살아있는 공유에 포함된 시술기록 수다.링크 하나가 기록 여러 개를 담을 수 있고 기록 없이 후보 스타일만 담을 수도 있어,
링크를 세면 시술기록 수와 단위가 어긋난다.
영속성 내부를 재사용할 이유가 없다 — 공개 조회의
SharedContentJdbcAdapter와 같은 판단.