fix: notification template preview and editor starter text disagree with what is actually sent
Los mantenedores suelen responder en 1 día
@Wikid82 ya está trabajando en esto.
Desde el 3/12/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
What
The template preview and the editor's starter text use different variables from the send path.
Where
backend/internal/services/notification_service.goRenderTemplaterenders against a flat map (used bynotification_provider_handler.goPreview andnotification_template_handler.go).- Sending uses the Hermes renderer, whose data is only
Title,Message,Time,EventTypeandData. frontend/src/pages/Notifications.tsx:315fills the editor with{{.HostName}},{{.HostIP}},{{.ServiceCount}},{{.Services}}.
Evidence
- With the Hermes
webhook.RenderPreview,{{.HostName}}and{{.Timestamp}}render as<no value>; unquoted missing values make invalid JSON. - From reading the code: a working send template such as
{{toJSON (index .Data "HostName")}}would fail in Preview, because the flat map has noDatakey.
Severity
Medium.
Suggested approach
Make Preview use the same renderer and data shape as sending, and update the editor starter text to match.
Found while working on #2141.
- Lenguaje dominante
- Go
- Estrellas
- 17
- Forks
- 2
- Merge medio
- 1 h 42 min
- PR fusionados (30 d)
- 173
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Wikid82/Charon
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Docs promise signed SLSA provenance that the image build does not producePosiblemente ocupada @Wikid82 la tomó hoy. Abiertoarchitecture documentation security ui
Wikid82/Charon#2152 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Orthrus agent images are not signed or SBOM-attestedPosiblemente ocupada @Wikid82 la tomó hoy. Abiertosecurity ssl testing
Wikid82/Charon#2151 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Registry prune deletes release image signatures and SBOM attestations on GHCR after 7 daysPosiblemente ocupada @Wikid82 la tomó hoy. Abiertocritical testing
Wikid82/Charon#2150 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Minor follow-ups from the country-allow-list local-network reviewPosiblemente ocupada @Wikid82 la tomó hoy. Abiertoarchitecture backend documentation frontend low
Wikid82/Charon#2149 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de Wikid82/Charon
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
agent:ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
turbot/flowpipe#1162 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
LifetimeRemaining divides by zero when expireAfter is 0s, producing NaN disruption costsPosiblemente ocupada @weirong-ui la tomó hoy. Abiertokind/bug needs-priority needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
kubernetes-sigs/karpenter#3728 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
compaction: redundant exclusion checks after inRangePosiblemente ocupada @moodbased la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
docker/mcp-registry#8199 ·
Los mantenedores suelen responder en 2 días