fix: update attendee workflows with new meeting URL on booking reassignment #25375
+195
−12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
When a booking is reassigned to a new host in round-robin scheduling, the meeting URL changes but previously only
EMAIL_HOSTworkflows were updated with the new URL. This caused attendees to receive workflow notifications (emails, SMS, WhatsApp) containing the old host's meeting link.This PR extends
handleWorkflowsUpdateto also reschedule:EMAIL_ATTENDEEworkflowsSMS_ATTENDEEworkflowsWHATSAPP_ATTENDEEworkflowsThe fix follows the existing pattern: create a new reminder with updated event data (including the new meeting URL), then delete the old reminder.
Note:
EMAIL_ADDRESS,SMS_NUMBER, andWHATSAPP_NUMBERworkflows are intentionally not updated, as these are generic broadcast workflows that may not be booking-participant-specific.Visual Demo (For contributors especially)
N/A - This is a backend change affecting workflow notification content. The fix ensures the
{meeting_url}variable in workflow templates resolves to the correct URL after reassignment.Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
EMAIL_ATTENDEEworkflow with{meeting_url}in the templateSMS_ATTENDEEworkflow with{meeting_url}in the template (if SMS is configured)Human Review Checklist
evt.attendees?.[0]for attendee info is correct for reassignment scenariosseatReferenceUidshould be passed to SMS/WhatsApp schedulersChecklist
Link to Devin run: https://app.devin.ai/sessions/ac8247cbf0b444d59a142cf2cab00ed7
Requested by: [email protected] (@joeauyeung)