E-Mail-Benachrichtigungen: Lagebild vs. Recherche unterscheiden
Template passt Text je nach incident_type an: - adhoc: "Neues Lagebild - Benachrichtigung" / "Neuigkeiten zur Lage" - research: "Recherche - Benachrichtigung" / "Neuigkeiten zur Recherche" incident_type wird durch die gesamte Notification-Kette durchgereicht. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -320,7 +320,8 @@ async def _create_notifications_for_incident(
|
||||
|
||||
async def _send_email_notifications_for_incident(
|
||||
db, incident_id: int, incident_title: str, visibility: str,
|
||||
created_by: int, tenant_id: int, notifications: list[dict]
|
||||
created_by: int, tenant_id: int, notifications: list[dict],
|
||||
incident_type: str = "adhoc",
|
||||
):
|
||||
"""Sendet E-Mail-Benachrichtigungen basierend auf individuellen Nutzer-Abos.
|
||||
|
||||
@@ -378,6 +379,7 @@ async def _send_email_notifications_for_incident(
|
||||
incident_title=incident_title,
|
||||
notifications=filtered_notifications,
|
||||
dashboard_url=dashboard_url,
|
||||
incident_type=incident_type,
|
||||
)
|
||||
try:
|
||||
await send_email(prefs["email"], subject, html)
|
||||
@@ -1342,7 +1344,8 @@ class AgentOrchestrator:
|
||||
)
|
||||
# E-Mail-Benachrichtigungen versenden
|
||||
await _send_email_notifications_for_incident(
|
||||
db, incident_id, title, visibility, created_by, tenant_id, db_notifications
|
||||
db, incident_id, title, visibility, created_by, tenant_id, db_notifications,
|
||||
incident_type=incident_type,
|
||||
)
|
||||
|
||||
# Refresh-Log abschließen (mit Token-Statistiken)
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren