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
23 changes: 23 additions & 0 deletions src/dispatch/incident/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,29 @@ def incident_stable_status_flow(incident: Incident, db_session=None):
db_session,
)

# we bookmark the incident review document
plugin = plugin_service.get_active_instance(
db_session=db_session, project_id=incident.project.id, plugin_type="conversation"
)
if not plugin:
log.warning("Incident review document not bookmarked. No conversation plugin enabled.")
return

try:
plugin.instance.set_bookmark(
incident.conversation.channel_id,
resolve_attr(incident, "incident_review_document.weblink"),
title="Incident Review Document",
)
except Exception as e:
event_service.log_incident_event(
db_session=db_session,
source="Dispatch Core App",
description=f"Bookmarking the incident review document failed. Reason: {e}",
incident_id=incident.id,
)
log.exception(e)


def incident_closed_status_flow(incident: Incident, db_session=None):
"""Runs the incident closed flow."""
Expand Down