chore: keep notification provider type lists in one place

Abierto
#2,133 0 comentarios 0 reacciones 1 asignado Ver en GitHub

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

backend frontend low

What

The list of provider types that use JSON templates is kept by hand in two places that differ: frontend/src/pages/Notifications.tsx:23-28 (supportsJSONTemplates, eight types) and backend/internal/services/notification_service.go:139-146 (same eight plus generic). The frontend supported-type list (SUPPORTED_NOTIFICATION_PROVIDER_TYPES) is likewise separate from the backend's isSupportedNotificationProviderType.

Severity

Low (maintenance: a new provider type has to be added in several places).

Suggested approach

Derive the frontend checks from one exported constant (or serve the lists from the backend), and add a test that keeps frontend and backend lists in step.

Found while planning the notification delivery fix (#2103, #2104, #2101).

Lenguaje dominante
Go
Estrellas
17
Forks
2
Merge medio
1 h 42 min
PR fusionados (30 d)
173

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Wikid82/Charon

Todos los issues de Wikid82/Charon

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.