[notifications] Implement feed.seal_lost notification type
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 34
- Fork
- 7
- Merge trung bình
- 2 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MobilityData/mobility-feed-api
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
MobilityData/mobility-feed-api#836 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của MobilityData/mobility-feed-api
Issue tương tự
-
backend enhancement priority:P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
geolens-io/geolens#4161 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pkg:clai2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
pydantic/pydantic-ai#14845 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add a languageĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
LearningCircuit/local-deep-research#9272 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
patrickballard/wheelgap#783 ·