Skip to content

Commit

Permalink
Run transition flow to move to triage state (#4542)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitdog47 authored Mar 25, 2024
1 parent 4e213a8 commit 1742b52
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/dispatch/plugins/dispatch_slack/case/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,9 +828,16 @@ def handle_case_participant_role_activity(

# if a participant is active mark the case as being in the triaged state
case = case_service.get(db_session=db_session, case_id=context["subject"].id)

if case.status == CaseStatus.new:
case.status = CaseStatus.triage
db_session.commit()
case_flows.case_status_transition_flow_dispatcher(
case=case,
current_status=CaseStatus.triage,
db_session=db_session,
previous_status=case.status,
organization_slug=context["subject"].organization_slug,
)

case_flows.update_conversation(case, db_session)


Expand Down

0 comments on commit 1742b52

Please sign in to comment.