Add feed provider schema

Aperta
#1,911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, sql
Ambito
database

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Python
Stelle
34
Fork
7
Merge medio
3g 3h
PR unite (30g)
22

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MobilityData/mobility-feed-api

Tutte le issue di MobilityData/mobility-feed-api

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.