Skip to content

[refactor/#381] Post query/read model 책임 정리#393

Merged
Dimo-2562 merged 4 commits into
developfrom
refactor/#381
May 24, 2026
Merged

[refactor/#381] Post query/read model 책임 정리#393
Dimo-2562 merged 4 commits into
developfrom
refactor/#381

Conversation

@Dimo-2562
Copy link
Copy Markdown
Contributor

@Dimo-2562 Dimo-2562 commented May 24, 2026

❤️ 기능 설명

  • PostQueryService를 조회 orchestration 중심으로 단순화했습니다.
  • PostReadModelEnricher를 도입해 keyword / bookmark / thumbnail enrichment를 row 단위 책임으로 분리했습니다.
  • post 패키지 테스트를 @Nested 구조로 정리하고, controller integration test를 integration 패키지로 이동했습니다.
  • PostQueryService의 분기 선택 / cursor 계산 / auth 전달 회귀 테스트를 보강했습니다.

테스트 결과는 아래 Gradle 실행으로 확인했습니다.

  • ./gradlew test --tests '*PostQueryServiceTest' --tests '*PostReadModelEnricherTest' --tests '*PostKeywordLookupServiceTest' --tests '*PostLookupServiceTest'

swagger 테스트 성공 결과 스크린샷 첨부

연결된 issue

연결된 issue를 자동으로 닫기 위해 아래 {이슈넘버}를 입력해주세요.

close #381



✅ 체크리스트

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

@Dimo-2562 Dimo-2562 self-assigned this May 24, 2026
@Dimo-2562 Dimo-2562 added 🌟 REFACTOR 리팩터링 (기능 변화 X) 📝 domain:post 게시글 관련 labels May 24, 2026
@Dimo-2562 Dimo-2562 merged commit f43ba48 into develop May 24, 2026
1 check passed
@Dimo-2562 Dimo-2562 deleted the refactor/#381 branch May 24, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📝 domain:post 게시글 관련 🌟 REFACTOR 리팩터링 (기능 변화 X)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] Post query/read model 책임 정리

1 participant