Repository navigation
fix :: PICNIC 상태 등록 시 자동 상태 복구 불가 버그 수정 - #674
Hidden character warning
Conversation
1. ResetStatusService의 @transactional(readOnly = true) 제거 - readOnly = true로 인해 flush가 되지 않아 모든 상태 리셋이 DB에 반영되지 않던 문제 수정 2. ResetAttendanceService에서 PICNIC 보존 조건 제거 - PICNIC(현장체험학습)을 DROPOUT/EMPLOYMENT와 동일하게 영구 보존 처리하던 문제 수정 - 일일 리셋 시 ATTENDANCE로 정상 복구되도록 변경 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 56 minutes and 41 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
문제 원인
PICNIC(현장체험학습)으로 상태 변경 후 매일 21:00에 실행되는 리셋 스케줄러가 동작하지 않는 버그 두 가지가 겹쳐 있었습니다.
Bug 1:
ResetStatusService—@Transactional(readOnly = true)로 인한 리셋 불가readOnly = true로 설정 시 JPA의 FlushMode가 MANUAL로 강제되어saveAll()호출이 있어도 실제 DB에 커밋되지 않았습니다. PICNIC뿐 아니라 모든 상태 리셋이 동작하지 않는 근본 원인이었습니다.Bug 2:
ResetAttendanceService— PICNIC 출석 상태를 영구 보존 처리퇴학(DROPOUT)·취업(EMPLOYMENT)은 영속성 유지가 맞지만, 현장체험학습(PICNIC)은 하루짜리 상태이므로 다음날 ATTENDANCE로 돌아와야 합니다.
영향 범위
ScheduleService.resetTable()(매일 21:00 실행) 내resetStatusUseCase.reset()+resetAttendanceUseCase.resetAttendance()정상화Test plan
reset()호출 시 Status가 ATTENDANCE로 변경되는지 확인🤖 Generated with Claude Code