release: 홈 요약 카운트 API·공유 만료 필터 - #167
Merged
Merged
Conversation
만료는 상태가 아니라 expires_at 비교로 판정하는 것이 이 도메인의 설계다. 목록 조회가 status 컬럼만 보고 있어 이미 열리지 않는 링크가 활성으로 잡혔다.
공유 카운트는 링크가 아니라 시술기록 기준 distinct 다. 링크 하나가 기록 여러 개를 담을 수 있고 같은 기록을 여러 링크로 공유할 수도 있어, 링크를 세면 시술 기록 수와 단위가 어긋난다.
fix: 활성 공유 목록에서 만료된 공유 제외
feat: 홈 요약 카운트 API
#160 의 파일 정리 수정이 main 에만 있어 develop 을 기준으로 파는 브랜치가 그 수정이 빠진 코드에서 출발하고 있었다.
chore: main 핫픽스를 develop 으로 역병합
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추가 — 홈 요약 타일 4종의 카운트를 질의 1회로 집계 (feat: 홈 요약 카운트 API #164)main핫픽스를develop으로 역병합 (chore: main 핫픽스를 develop 으로 역병합 #166)작업 목적
홈 화면 요약 타일이 서버 집계 없이 목록 API 를 조합해 숫자를 만들고 있어, 공유 카운트가
링크 수를 세고 분석 카운트는 0 으로 고정돼 있었다. 집계 규칙을 서버 한 곳에 둔다.
테스트 방법
체크리스트
기타 사항
GET /shares?status=ACTIVE의 결과 집합이 좁아진다. 응답 스키마는 그대로다.shared_record_count는 공유 링크 수가 아니라 살아있는 공유에 포함된 시술기록 수다./me/summary로 갈아타야 타일 숫자가 실제로 고쳐진다.