Skip to content

Conversation

@simount3
Copy link
Collaborator

@simount3 simount3 commented Oct 11, 2025

제목(필수): [TYPE]: 제목 예) [FEAT]: 회원가입 기능 추가

제목 규칙 자세히 보기
  • 형식: [TYPE]: 제목
  • 제한: 50자 이내, 첫 글자 대문자, 명령문
  • TYPE: FEAT FIX REFACTOR COMMENT STYLE TEST CHORE INIT

무엇을 / 왜

  • 무엇(What): 세션이 만료된 게스트 유저를 자동으로 삭제하는 스케줄러 구현
  • 왜(Why):
    • 게스트 로그인 후 세션 만료 시 DB에 불필요한 게스트 데이터가 누적되는 문제 해결
    • 자동화된 정리 프로세스를 통한 DB 관리 효율화

어떻게(요약) — 3줄 이내

  • session listener 제거
  • Redis의 세션을 조회하여 SecurityContext에서 활성 게스트 ID 추출
  • DB의 게스트 목록과 비교하여 세션이 없는 게스트만 필터링
  • 매 30분마다 자동 실행하며, 연관 엔티티(Scenario, Node 등)도 Cascade 삭제

영향 범위

  • API 변경
  • DB 마이그레이션
  • Breaking Change
  • 보안/권한 영향
  • 문서/가이드 업데이트 필요

체크리스트

  • 타입 라벨 부착 (FEAT/FIX/REFACTOR/COMMENT/STYLE/TEST/CHORE/INIT)
  • 로컬/CI 테스트 통과
  • 영향도 점검 완료
  • 주석/문서 반영(필요 시)

ToDo (선택)

  • 할 일 1
  • 할 일 2

스크린샷/증빙(선택)

이슈 연결 (자동)

Closes #99

@johnbosco0414
Copy link
Collaborator

제것이 merge가 먼저 되어서 pull을 다시한번 하신 후에 pr부탁드립니다. 번거롭게 해드려서 죄송합니다.

Copy link
Collaborator

@lcs9317 lcs9317 left a comment

Choose a reason for hiding this comment

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

고생하셨고 병합 최신 파일로 풀받으신 후에 다시 푸쉬 하시고 머지 하시면 될것 같습니다

Copy link
Collaborator

@johnbosco0414 johnbosco0414 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

@simount3 simount3 merged commit 486c8b0 into main Oct 11, 2025
3 checks passed
@simount3 simount3 deleted the session-listener branch October 11, 2025 18:02
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.

[FEAT]: 만료된 게스트 유저 자동 삭제 스케줄러

4 participants