Skip to content

Improve Professor Slot Visibility + Prevent Sending Invitations Without Enough Slots #1767

@Abi107717

Description

@Abi107717

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 features

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions