Skip to content

[refactor/#370] Activity ReadPost 슬라이스 분리 및 문서 정리#373

Merged
Dimo-2562 merged 3 commits into
developfrom
refactor/#370
May 5, 2026
Merged

[refactor/#370] Activity ReadPost 슬라이스 분리 및 문서 정리#373
Dimo-2562 merged 3 commits into
developfrom
refactor/#370

Conversation

@Dimo-2562
Copy link
Copy Markdown
Contributor

❤️ 기능 설명

  • ReadPostdomain/activity/readpost/... 슬라이스로 분리했습니다.
  • ReadPostCommandService, ReadPostQueryService, ReadPostConverter, ReadPostFirstReadPolicy로 읽기 저장/조회/첫 읽기 판별 책임을 정리했습니다.
  • SearchHistory는 기존 ActivityCommandService에 남기고, 통합 테스트도 ReadPostIntegrationTestActivityControllerIntegrationTest(SearchHistory 전용)로 분리했습니다.
  • docs/ddd-test-refactoring-roadmap.md, docs/test-gap-analysis.md, docs/ubiquitous-language/activity.md, docs/tactical-design.md를 현재 브랜치 구조 기준으로 갱신했습니다.
  • 스크린샷: 백엔드 리팩터링 PR이라 Swagger/UI 스크린샷은 없습니다. 대신 테스트 실행 결과를 아래에 첨부합니다.

테스트

  • ./gradlew test --tests "com.techfork.domain.activity.readpost.domain.ReadPostFirstReadPolicyTest" --tests "com.techfork.domain.activity.readpost.service.ReadPostCommandServiceTest" --tests "com.techfork.domain.activity.readpost.service.ReadPostQueryServiceTest" --tests "com.techfork.domain.activity.readpost.repository.ReadPostRepositoryTest"
  • ./gradlew integrationTest --tests "com.techfork.domain.activity.readpost.integration.ReadPostIntegrationTest"
  • ./gradlew test --tests "com.techfork.domain.activity.readpost.domain.ReadPostFirstReadPolicyTest" --tests "com.techfork.domain.activity.readpost.service.ReadPostCommandServiceTest"
  • ./gradlew integrationTest --tests "com.techfork.domain.activity.readpost.integration.ReadPostIntegrationTest" --tests "com.techfork.domain.activity.controller.ActivityControllerIntegrationTest" --tests "com.techfork.domain.activity.bookmark.integration.BookmarkIntegrationTest"

연결된 issue

close #370



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

  • ReadPostFirstReadPolicyreadpost/domain으로 분리한 방향과 Command/Query 경계가 적절한지 봐주세요.
  • SearchHistory를 이번 PR 범위 밖으로 두고 ActivityCommandService에 남긴 의도가 괜찮은지 봐주세요.

✅ 체크리스트

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

Dimo-2562 added 3 commits May 5, 2026 15:06
Constraint: PR #370의 리팩터링 결과와 설계 문서가 같은 용어/패키지 구조를 가리켜야 함
Rejected: ReadPost 동시성 이슈까지 함께 문서화 | 별도 후속 이슈 범위라 이번 PR 설명을 흐림
Confidence: high
Scope-risk: narrow
Directive: SearchHistory 슬라이스가 분리되면 Activity 문서의 남은 서비스/통합 테스트 설명을 다시 갱신할 것
Tested: 문서 링크/패키지명/테스트명 정합성 점검
Not-tested: 실행 결과 자체는 문서 변경 후 재실행하지 않음
@Dimo-2562 Dimo-2562 self-assigned this May 5, 2026
@Dimo-2562 Dimo-2562 added 🌟 REFACTOR 리팩터링 (기능 변화 X) 🎯 domain:activity 사용자 활동 관련 (읽은 게시글, 북마크, 검색 히스토리) labels May 5, 2026
@Dimo-2562 Dimo-2562 merged commit ff89857 into develop May 5, 2026
1 check passed
@Dimo-2562 Dimo-2562 deleted the refactor/#370 branch May 5, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎯 domain:activity 사용자 활동 관련 (읽은 게시글, 북마크, 검색 히스토리) 🌟 REFACTOR 리팩터링 (기능 변화 X)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REFACTOR] ReadPost 읽기 규칙 명시화 및 테스트 보강

1 participant