Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

fix(notifications): dispatcher ignores a subscription's feeds and sends every feed.url_updated event

オープン 初心者向け
#1,875 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

まず functions-python/tasks_executor/src/tasks/notifications/dispatch_notifications.py、特に apply_filter_params を確認し、dispatcher のテストを読んで、サブスクリプションのフィードとレガシーの filter_params がどのように表現されているかを把握してください。結合テーブルを使うフィード単位のサブスクリプションについて dispatcher のテストを追加し、そのフィードのイベントだけが送信される一方で、レガシーの行は引き続きフォールバックを使うことを確認してください。

索引モデルが issue の本文から書いたものです。

説明

Problem

Subscriptions store their feeds in notification_subscription_feed (#1778), but the dispatcher still filters on the old notification_subscription.filter_params.feed_ids (apply_filter_params in functions-python/tasks_executor/src/tasks/notifications/dispatch_notifications.py). Nothing writes filter_params any more, so it is NULL and every event passes the filter.

Impact: a user subscribed to one feed gets URL-update emails for every feed.

Steps to reproduce

  1. Subscribe a user to feed.url_updated for feed A only
  2. Change the URLs of feeds A and B
  3. Run the dispatcher: the user is emailed about both

Fix

  • Filter events against the subscription's notification_subscription_feeds
  • Keep reading filter_params only as a fallback for legacy rows
  • Add a dispatcher test with a feed-scoped subscription that uses the join table

Relates to MobilityData/product-tasks#196

主要言語
Python
スター
34
フォーク
7
平均マージ
1日 22時間
マージ済み PR(30日)
9

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

MobilityData/mobility-feed-api のほかの issue

MobilityData/mobility-feed-api の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。