-
Notifications
You must be signed in to change notification settings - Fork 3
Comprehensive workflow reminder management for booking lifecycle events #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: workflow-queue-base
Are you sure you want to change the base?
Conversation
…re still sent (#7232) * small UI fix * fix cancelling scheduled emails * improve comments * delete reminders for rescheduled bookings * add migration file * cancel rescheduled bookings immediately * remove immediate delete for request reschedule --------- Co-authored-by: CarinaWolli <[email protected]>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
User description
PR #5
PR Type
Bug fix, Enhancement
Description
Fix workflow reminders being sent for cancelled/rescheduled bookings
Implement deferred cancellation of scheduled email reminders via
cancelledflagUpdate reminder deletion functions to handle both immediate and deferred cancellation
Simplify reminder cleanup logic by removing batch promise accumulation
Add
workflowRemindersto booking queries for proper reminder managementDiagram Walkthrough
flowchart LR A["Booking Cancelled/Rescheduled"] --> B["Call deleteScheduled Reminder Functions"] B --> C{Immediate Delete?} C -->|Yes| D["Cancel via SendGrid API"] C -->|No| E["Mark as cancelled in DB"] E --> F["Email Reminder Scheduler Picks Up"] F --> G["Cancel via SendGrid API"] G --> H["Delete from DB"]File Walkthrough
4 files
Remove batch promise accumulation for reminder deletionAdd workflow reminder cancellation on booking rescheduleSimplify reminder cancellation on booking rescheduleUpdate reminder deletion calls with new function signatures3 files
Implement deferred email reminder cancellation logicAdd deferred cancellation and immediate delete modesUpdate SMS reminder deletion with database cleanup1 files
Simplify phone number verification UI logic1 files
Add cancelled boolean column to WorkflowReminder1 files
Add optional cancelled field to WorkflowReminder model