-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Feature
Copy link
Labels
taskTasks related to TumApply which are not whole featuresTasks related to TumApply which are not whole features
Description
Description
When an applicant books the last available slot, the system must check if there are other invited applicants left without a slot. If so, the professor needs an immediate email alert.
Scenario:
- There are 2 invited applicants and 1 available slot.
- Applicant A books the last slot.
- Slots count drops to 0.
- System checks: Is there still an invited applicant without a booking? -> Yes (Applicant B).
- Action: Send warning email to Professor.
Tasks
Trigger mail Trigger o nly when InterviewBookingService.bookSlot() is called (Applicant self-service).
Logic:
Transaction: Booking is successful.
Check: remaining_future_slots == 0?
Check: pending_invitees > 0?
If both YES: Send Email to Professor.
Body: "The last slot changed to 'booked', but there are still candidates waiting. Please create more slots."
Acceptance Criteria
Professor gets notified
Metadata
Metadata
Assignees
Labels
taskTasks related to TumApply which are not whole featuresTasks related to TumApply which are not whole features