Skip to content

[refactor/#378] Post aggregate 도메인 규칙 안전망 정리#389

Merged
Dimo-2562 merged 1 commit into
developfrom
refactor/#378
May 8, 2026
Merged

[refactor/#378] Post aggregate 도메인 규칙 안전망 정리#389
Dimo-2562 merged 1 commit into
developfrom
refactor/#378

Conversation

@Dimo-2562
Copy link
Copy Markdown
Contributor

❤️ 기능 설명

Post aggregate 리팩토링 전에 직접 노출된 핵심 규칙을 PostTest로 고정했습니다.

  • RssFeedItem -> Post.create(...) 생성 규칙 검증
  • updateSummaries(...) 검증
  • addKeyword(...), clearKeywords() 검증
  • viewCount는 기존 repository atomic update 경계를 유지

연결된 issue

close #378



🩷 Approve 하기 전 확인해주세요!

  • 이번 PR은 aggregate 안전망 추가에만 집중했고, summary pipeline / embedding projection 책임 정리는 포함하지 않았습니다.
  • updateSummary(...) 제거가 후속 이슈 영향 없이 안전한지 한 번 더 봐주세요.

✅ 체크리스트

  • PR 제목 규칙 잘 지켰는가?
  • 추가/수정사항을 설명하였는가?
  • 테스트 결과 사진을 넣었는가?
  • 이슈넘버를 적었는가?

테스트

  • ./gradlew test --tests 'com.techfork.domain.post.entity.PostTest'

#378은 summary pipeline/embedding projection 정리 전에
Post aggregate의 직접 노출 규칙을 테스트로 잠가 이후 리팩토링에서
의도치 않은 동작 변경을 빠르게 감지하려는 안전망 작업이다.

Constraint: viewCount 증가는 기존 repository atomic update 경계를 유지해야 함
Rejected: #379/#380 책임 정리를 이번 이슈에 포함 | 테스트 안전망 이슈 성격이 흐려짐
Confidence: high
Scope-risk: narrow
Directive: summary pipeline과 embedding projection 책임 이동은 후속 이슈에서 다뤄야 함
Tested: ./gradlew test --tests 'com.techfork.domain.post.entity.PostTest'
Not-tested: summary/embedding batch 리팩토링 경로에 대한 추가 회귀 검증
@Dimo-2562 Dimo-2562 merged commit b97e208 into develop May 8, 2026
2 checks passed
@Dimo-2562 Dimo-2562 deleted the refactor/#378 branch May 8, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Post aggregate 도메인 규칙 안전망 정리

1 participant