Add feed provider schema

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, sql
領域
database

調査の方向性

Start by locating the Liquibase changelog and the model generation workflow mentioned in the repository, then inspect the existing agencytxt and feedinfo schemas and shared URL normalizer. Add the requested provider tables, nullable references, index, and normalized URL backfill, then regenerate the models. Done means the acceptance criteria hold and API and function behavior remain unchanged.

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

説明

Describe the problem

Raw agency.txt and feed_info.txt records have no way to be grouped under a single provider, so TTC and Toronto Transit Commission stay unrelated.

Proposed solution

Liquibase changesets, then regenerate the models:

  • feed_provider: id, name, status (wip, published, not_published), created_at, updated_at
  • feed_provider_name_alias: id, feed_provider_id, value (unique per provider)
  • feed_provider_contact: id, feed_provider_id, contact_type (website, email, phone), value (unique per provider and type)
  • Nullable feed_provider_id on agencytxt and feedinfo, indexed
  • feed_publisher_url_normalized on feedinfo, indexed and backfilled with the shared URL normalizer
  • feed_provider.status defaults to published (auto-created providers mirror the GTFS file values).

Acceptance criteria:

  • A provider can have multiple aliases and contacts.
  • Raw records can reference a provider; existing rows stay unlinked.
  • No behavior changes in the API or functions.
Alternatives you've considered

Linking providers through a join table instead of a column on the raw tables: rejected, a raw record belongs to at most one provider.

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

環境構築

  • 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 を短くまとめたダイジェスト。