[Improvement] WP-MSG-04 상태 집계 규칙 고정 #178

Closed
opened 2026-02-24 06:33:28 +00:00 by seonkyu.kim · 0 comments
Owner

배경

PRD FR-MSG-006: "발송 상태 판정 규칙을 고정한다. 동일 메시지에 대해 목록/상세/통계의 상태값이 일치한다."

현재 문제

  • DetermineSendStatus() — MessageService에 private static으로 존재 → 재사용 불가
  • Repository 필터 — 동일 규칙을 인라인 Where 조건으로 중복 구현 (매직 스트링 사용)
  • 상태 문자열("complete", "pending", "failed")이 코드 전체에 산재

작업 내용

  • SendStatus static class 생성 (Domain/Enums) — 상수 3종 + Determine() 메서드
  • MessageService — DetermineSendStatus 제거 → SendStatus.Determine() 호출
  • MessageRepository — 매직 스트링 → SendStatus 상수 참조
  • MessageController — Swagger Description 보완
  • 빌드 확인
## 배경 PRD FR-MSG-006: "발송 상태 판정 규칙을 고정한다. 동일 메시지에 대해 목록/상세/통계의 상태값이 일치한다." ## 현재 문제 - `DetermineSendStatus()` — MessageService에 private static으로 존재 → 재사용 불가 - Repository 필터 — 동일 규칙을 인라인 Where 조건으로 중복 구현 (매직 스트링 사용) - 상태 문자열("complete", "pending", "failed")이 코드 전체에 산재 ## 작업 내용 - [x] `SendStatus` static class 생성 (Domain/Enums) — 상수 3종 + Determine() 메서드 - [x] MessageService — DetermineSendStatus 제거 → SendStatus.Determine() 호출 - [x] MessageRepository — 매직 스트링 → SendStatus 상수 참조 - [x] MessageController — Swagger Description 보완 - [x] 빌드 확인
seonkyu.kim self-assigned this 2026-02-24 06:33:36 +00:00
seonkyu.kim added this to the Phase 2: 메시지 + 통계 milestone 2026-02-24 06:33:39 +00:00
seonkyu.kim added the
Priority
Medium
Status
Available
Type
Improvement
labels 2026-02-24 06:33:41 +00:00
seonkyu.kim removed the
Status
Available
label 2026-02-25 06:07:38 +00:00
seonkyu.kim added the
Status
In Progress
label 2026-02-25 06:07:47 +00:00
seonkyu.kim added
Status
Done
and removed
Status
In Progress
labels 2026-02-25 06:34:29 +00:00
Sign in to join this conversation.
No description provided.