[ Feature ] - 월간 AI 리포트 생성 후 구독자 자동 이메일 PDF 발송 - #161
Open
bigwaveBigwave wants to merge 1 commit into
Open
Conversation
bigwaveBigwave
requested review from
KSBoscoKim,
Kimd0ng,
SOOsuhyuncho,
hanjyoon01 and
shinh09
August 14, 2026 09:31
21 tasks
hanjyoon01
approved these changes
Aug 14, 2026
hanjyoon01
approved these changes
Aug 15, 2026
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.
• ## 관련 이슈
작업 사항
월간 AI 리포트 저장 완료 후 구독자에게 PDF를 자동 이메일로 발송하도록 구현했습니다.
배치 실행 시점에 supportsFeature(userId, Feature.AI_REPORT)로 구독 권한을 확인합니다.
가입 이메일이 없거나 구독 권한이 없는 사용자는 자동 발송을 생략합니다.
저장된 리포트를 다시 조회한 뒤 기존 PDF 생성 및 이메일 발송 로직을 재사용합니다.
자동 발송 실패가 리포트 저장 결과를 롤백하거나 다음 사용자 처리를 중단하지 않도록 예외를 격리했습니다.
수동·자동 발송이 PDF, 제목, 본문 및 첨부파일 구성 로직을 공유하도록 공통화했습니다.
자동 발송 실패 로그에 안전한 failureCode만 기록하고 이메일, 금융정보, SMTP 인증정보, 원본 예외 메시지 및 stack trace가 노출되지 않도록 했습니다.
실제 Spring 트랜잭션 프록시를 사용하는 통합 테스트를 추가했습니다.
리포트 조회, PDF 생성 및 SMTP 발송 실패 로그의 보안 회귀 테스트를 추가했습니다.
실제 메일 설정 파일이 Git에 포함되지 않도록 .gitignore 규칙을 추가했습니다.
참고 사항