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
8 changes: 4 additions & 4 deletions src/dispatch/plugins/dispatch_slack/case/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
from dispatch.enums import EventType, SubjectNames, UserRoles, Visibility
from dispatch.event import service as event_service
from dispatch.exceptions import ExistsError
from dispatch.incident.type.service import get_by_name as get_type_by_name
from dispatch.incident.priority.service import get_by_name as get_priority_by_name
from dispatch.individual.models import IndividualContactRead
from dispatch.participant import flows as participant_flows
from dispatch.participant import service as participant_service
Expand Down Expand Up @@ -1534,8 +1536,6 @@ def handle_escalation_submission_event(
):
"""Handles the escalation submission event."""

from dispatch.incident.type.service import get_by_name

case = case_service.get(db_session=db_session, case_id=int(context["subject"].id))
ack_handle_escalation_submission_event(ack=ack, case=case)

Expand All @@ -1556,15 +1556,15 @@ def handle_escalation_submission_event(

incident_type = None
if form_data.get(DefaultBlockIds.incident_type_select):
incident_type = get_by_name(
incident_type = get_type_by_name(
db_session=db_session,
project_id=case.project.id,
name=form_data[DefaultBlockIds.incident_type_select]["name"],
)

incident_priority = None
if form_data.get(DefaultBlockIds.incident_priority_select):
incident_priority = get_by_name(
incident_priority = get_priority_by_name(
db_session=db_session,
project_id=case.project.id,
name=form_data[DefaultBlockIds.incident_priority_select]["name"],
Expand Down
Loading