[notifications] Implement feed.seal_lost notification type
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reading the notification event, subscription, and delivery code to find how events are created and dispatched. Implement the seal status transition as the source of truth, creating one feed.seal_lost event only when a feed loses Seal status, with the provider, optional name, loss date, and triggering criterion. Done means dispatch can match the event to active subscriptions and track delivery per event, subscription, and channel without duplicate notifications.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the problem
Implement the feed.seal_lost notification type for cases where a feed loses the Seal of Reliability in the Mobility Database. Members want to be notified when a feed they care about no longer meets the quality threshold.
Proposed solution
When a feed loses the Seal of Reliability, use the seal status change as the source of truth for the feed.seal_lost notification.
A notification should be created only when a feed transitions out of Seal status, 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 lost, and which criterion prompted the change.
To support this:
Notification event table
When a feed loses the Seal, create a notification_event record with notification_type = feed.seal_lost. 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_lost
- feed.seal_revoked
- feed.quality_threshold_missed
- Lingua principale
- Python
- Stelle
- 34
- Fork
- 7
- Merge medio
- 3g 3h
- PR unite (30g)
- 22
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MobilityData/mobility-feed-api
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
MobilityData/mobility-feed-api#1927 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
MobilityData/mobility-feed-api#1846 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
MobilityData/mobility-feed-api#1755 · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MobilityData/mobility-feed-api#1647 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
MobilityData/mobility-feed-api#836 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di MobilityData/mobility-feed-api
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OStrama/weishaupt_modbus#216 ·
-
bug follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Retire stale Python-parity labels in Rust ingress and auth testsForse già presa @github-actions l’ha presa oggi. Apertafactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
JoshCLWren/comic-pile#5874 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
area: community lane: free-agent priority: P1 roadmap type: task
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
velella-sh/offing#1046 ·
I maintainer di solito rispondono entro 1 giorno