Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/dispatch/incident/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
from dispatch.ticket.models import TicketCreate

from .messaging import (
get_suggested_document_items,
# get_suggested_document_items,
send_incident_closed_information_review_reminder,
send_incident_commander_readded_notification,
send_incident_created_notifications,
Expand All @@ -51,7 +51,7 @@
send_incident_participant_announcement_message,
send_incident_rating_feedback_message,
send_incident_review_document_notification,
send_incident_suggested_reading_messages,
# send_incident_suggested_reading_messages,
send_incident_update_notifications,
send_incident_welcome_participant_messages,
)
Expand Down Expand Up @@ -1029,11 +1029,12 @@ def incident_create_flow(*, organization_slug: str, incident_id: int, db_session
# we send the welcome messages to the participant
send_incident_welcome_participant_messages(user_email, incident, db_session)

# NOTE: Temporarily disabled until an issue with the Dispatch resolver plugin is resolved
# we send a suggested reading message to the participant
suggested_document_items = get_suggested_document_items(incident, db_session)
send_incident_suggested_reading_messages(
incident, suggested_document_items, user_email, db_session
)
# suggested_document_items = get_suggested_document_items(incident, db_session)
# send_incident_suggested_reading_messages(
# incident, suggested_document_items, user_email, db_session
# )

# wait until all resources are created before adding suggested participants
for individual, service_id in individual_participants:
Expand Down Expand Up @@ -1629,11 +1630,12 @@ def incident_add_or_reactivate_participant_flow(
# we send the welcome messages to the participant
send_incident_welcome_participant_messages(user_email, incident, db_session)

# NOTE: Temporarily disabled until an issue with the Dispatch resolver plugin is resolved
# we send a suggested reading message to the participant
suggested_document_items = get_suggested_document_items(incident, db_session)
send_incident_suggested_reading_messages(
incident, suggested_document_items, user_email, db_session
)
# suggested_document_items = get_suggested_document_items(incident, db_session)
# send_incident_suggested_reading_messages(
# incident, suggested_document_items, user_email, db_session
# )

return participant

Expand Down