[notifications] Implement feed.seal_earned notification type
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend-api-design, databases
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 34
- Forks
- 7
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 22
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MobilityData/mobility-feed-api
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
MobilityData/mobility-feed-api#1927 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
MobilityData/mobility-feed-api#1846 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
MobilityData/mobility-feed-api#1755 · 1 reaction ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#1647 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MobilityData/mobility-feed-api#836 ·
Maintainers usually reply within 2 days
All issues in MobilityData/mobility-feed-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OStrama/weishaupt_modbus#216 ·
-
bug follow-up
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Retire stale Python-parity labels in Rust ingress and auth testsPossibly taken @github-actions claimed this today. Openfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
JoshCLWren/comic-pile#5874 · 2 comments ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area: community lane: free-agent priority: P1 roadmap type: task
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
velella-sh/offing#1046 ·
Maintainers usually reply within 1 day