[notifications] Implement feed.seal_earned notification type
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- backend-api-design, databases
Línea de trabajo
Start by locating the seal status change handling and the notification event, subscription, and log models; the issue does not name specific files or tests. Trace how a feed transitions to earning the Seal and how the dispatcher processes events. Done means one feed.seal_earned event is created per status transition, with the stated feed and criterion details, and delivery tracking avoids duplicate notifications while allowing retries.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the problem
Implement the feed.seal_earned notification type for cases where a feed earns the Seal of Reliability in the Mobility Database. Members want to be notified when a feed they care about meets the quality threshold.
Proposed solution
When a feed earns the Seal of Reliability, use the seal status change as the source of truth for the feed.seal_earned notification.
A notification should be created only when a feed transitions to earning the Seal, not when the feed is simply re-evaluated with no change in status. The event should include feed provider, name if it exists, the day the Seal was earned, and which criterion prompted the change.
To support this:
Notification event table
When a feed earns the Seal, create a notification_event record with notification_type = feed.seal_earned. The dispatcher can then query new events, match them to active subscriptions, generate the digest based on cadence, and track delivery per user.
Tracking notifications per user
Use notification_event to track what happened, and notification_log to track delivery per user subscription.
Each notification_event should be created once for the seal status change. The dispatcher should match the event to active notification_subscription records and create/update one notification_log per notification_event_id + subscription_id + channel.
This allows the system to know which users already received the event, avoid duplicate notifications, and retry failed deliveries without resending to users who were already notified.
Alternatives you've considered
Polling-based detection
Query feeds where seal status changed since the last successful notification run. This is simpler, but it risks missed or duplicated notifications if the dispatcher fails or if delivery needs to be retried per user.
Additional context
Suggested notification codes:
- feed.seal_earned
- feed.seal_awarded
- feed.quality_threshold_met
- Lenguaje dominante
- Python
- Estrellas
- 34
- Forks
- 7
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 21
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin 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 MobilityData/mobility-feed-api
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
MobilityData/mobility-feed-api#1927 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
MobilityData/mobility-feed-api#1846 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
MobilityData/mobility-feed-api#1755 · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MobilityData/mobility-feed-api#1647 ·
Los mantenedores suelen responder en 2 días
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
MobilityData/mobility-feed-api#836 ·
Los mantenedores suelen responder en 2 días
Todos los issues de MobilityData/mobility-feed-api
Issues similares
-
backend enhancement priority:P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
geolens-io/geolens#4161 ·
Los mantenedores suelen responder en 1 día
-
pkg:clai2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
pydantic/pydantic-ai#14845 ·
Los mantenedores suelen responder en 1 día
-
Add a languageAbiertogood first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
LearningCircuit/local-deep-research#9272 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
patrickballard/wheelgap#783 ·