[notifications] Implement feed.seal_lost notification type
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 34
- 派生
- 7
- 平均合并
- 2 天 22 小时
- 30 天内合并 PR
- 21
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MobilityData/mobility-feed-api 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
MobilityData/mobility-feed-api#1927 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
MobilityData/mobility-feed-api#1846 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
MobilityData/mobility-feed-api#1755 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
MobilityData/mobility-feed-api#1647 ·
维护者通常 2 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
MobilityData/mobility-feed-api#836 ·
维护者通常 2 天内回复
查看 MobilityData/mobility-feed-api 的全部 Issue
相似的 Issue
-
backend enhancement priority:P3
难度 2/5 1-3 小时 新手友好度 68/100
geolens-io/geolens#4161 ·
维护者通常 1 天内回复
-
pkg:clai2
难度 1/5 1 小时以内 新手友好度 75/100
pydantic/pydantic-ai#14845 ·
维护者通常 1 天内回复
-
Add a language未关闭good first issue
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 65/100
LearningCircuit/local-deep-research#9272 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 86/100
patrickballard/wheelgap#783 ·