Skip to content

Commit

Permalink
Ensure that previous case members are added to incident tactical grou…
Browse files Browse the repository at this point in the history
…p when escalating (#4887)
  • Loading branch information
whitdog47 authored Jun 27, 2024
1 parent fed6fed commit c5f1925
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dispatch/case/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,16 @@ def common_escalate_flow(
participant_emails=[participant.individual.email],
)

# Add the participant to the incident tactical group if active
if participant.active_roles:
group_flows.update_group(
subject=incident,
group=incident.tactical_group,
group_action=GroupAction.add_member,
group_member=participant.individual.email,
db_session=db_session,
)

if case.has_channel:
# depends on `incident_create_flow()` (we need incident.name), so we invoke after we call it
send_escalation_messages_for_channel_case(
Expand Down

0 comments on commit c5f1925

Please sign in to comment.