Skip to content

Conversation

@Soundbar91
Copy link
Collaborator

🔍 개요

  • 이벤트 알림을 슬랙으로 전송하는 기능을 구현한다.

🚀 주요 변경 내용

이벤트 알림 로직 구현

  • 이벤트가 발생할 경우, 슬랙으로 알림이 가는 기능을 구현했습니다.

💬 참고 사항


✅ Checklist (완료 조건)

  • 코드 스타일 가이드 준수
  • 테스트 코드 포함됨
  • Reviewers / Assignees / Labels 지정 완료
  • 보안 및 민감 정보 검증 (API 키, 환경 변수, 개인정보 등)

@Soundbar91 Soundbar91 requested a review from dh2906 January 2, 2026 13:12
@Soundbar91 Soundbar91 self-assigned this Jan 2, 2026
@Soundbar91 Soundbar91 added the 기능 새로운 기능을 개발합니다. label Jan 2, 2026
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

⚠️ Checkstyle 위반 사항 발견

Checkstyle 검사에서 코딩 컨벤션 위반이 발견되었습니다.

📋 상세 리포트

Copy link
Contributor

@dh2906 dh2906 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!
메시지 알림 전송 실패 시 재시도하는 것도 있으면 좋을 듯 합니당

@@ -0,0 +1,9 @@
package gg.agit.konect.domain.user.event;

public record UserRegisterEvent(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이벤트는 이미 발생한 사건을 표현하므로, 네이밍은 과거형을 사용하는 것이 적절하다고 합니다!
링크

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 이런 네이밍 규칙이 있군요 👀

private final SlackNotificationService slackNotificationService;

@Async
@TransactionalEventListener(phase = AFTER_COMMIT)
Copy link
Contributor

@dh2906 dh2906 Jan 3, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

단순 궁금증인데 서비스 레이어에서 트랜잭션 메소드가 커밋되고 난 뒤 이벤트를 수행하는 구조가 맞나요??? 👀

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

트랜잭션이 정상적으로 커밋이 되면 이벤트를 수행하는 구조 맞습니다

* feat: 탈퇴 회원 보관을 위한 WithdrawnUser 엔티티 및 테이블 추가

* feat: 미납 회비 탈퇴 차단 예외 코드 추가

* refactor: 회원 탈퇴 로직 개선 (미납 회비 검증 및 탈퇴 회원 아카이빙)

* feat: 탈퇴 회원 1년 후 자동 삭제 배치 스케줄러 구현

* refactor: 미납 회비 검증 로직을 ClubMember 도메인 메소드로 이동

* refactor: 불필요한 WithdrawnUser 아카이브 기능 제거

* refactor: DB CASCADE 활용으로 회원 탈퇴 로직 단순화

* chore: 주석 삭제

* refactor: CASCADE로 대체된 불필요한 deleteByUserId 메소드 제거

* fix: 미납 회비 유효성 검증 메소드 네이밍 수정
@github-actions
Copy link

github-actions bot commented Jan 5, 2026

⚠️ Checkstyle 위반 사항 발견

Checkstyle 검사에서 코딩 컨벤션 위반이 발견되었습니다.

📋 상세 리포트

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

기능 새로운 기능을 개발합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants