Revert "[BE] SISC1-224 [FIX] 출석 라운드 관련 수정"#144
Conversation
This reverts commit a2772a6.
|
Caution Review failedThe pull request is closed. 수행 방식학생 체크인 기능을 추가하고 출석 세션의 시간 표현을 LocalTime에서 LocalDateTime으로 변경하며, 필드명을 단순화했습니다. AttendanceRoundResponse의 필드를 roundId와 roundDate로 이름을 변경하고, AttendanceSession의 상태 계산 및 시간 윈도우 검증 로직을 재구성했습니다. 변경 사항
Sequence Diagram(s)sequenceDiagram
participant Client
participant Controller as AttendanceController
participant Service as AttendanceService
participant DB as Database
participant UserService
Client->>Controller: POST /api/attendance/sessions/{id}/check-in
Controller->>Controller: Extract userId from auth
Controller->>Service: checkIn(sessionId, request, userId)
Service->>UserService: Validate user exists
alt User not found
Service-->>Controller: Exception
Controller-->>Client: Error response
end
Service->>DB: Fetch AttendanceSession
alt Session not found
Service-->>Controller: Exception
Controller-->>Client: Error response
end
Service->>Service: Verify check-in code
Service->>Service: Prevent duplicate check-ins
Service->>Service: Validate location (if required)
Service->>Service: Check time window (startsAt ≤ now ≤ endsAt)
Service->>Service: Determine status (PRESENT or LATE)
alt Validation fails
Service-->>Controller: Exception
Controller-->>Client: Error response
end
Service->>DB: Create & persist Attendance entity
Service-->>Controller: AttendanceResponse
Controller-->>Client: HTTP 201 Created
코드 리뷰 예상 소요 시간🎯 4 (복잡함) | ⏱️ ~60분 특히 주의 깊게 검토해야 할 사항:
관련 가능성이 있는 PR
권장 리뷰어
시
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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 |
Reverts #143
Summary by CodeRabbit
릴리스 노트
새로운 기능
개선 사항
테스트
✏️ Tip: You can customize this high-level summary in your review settings.