Manage feed providers in the Operations API

Abierto
#1,912 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
api, backend

Línea de trabajo

Start by reading the Operations API routes, provider and raw record models, and the shared link service; the issue does not name specific files or tests. Trace how records are matched to providers and how aliases, contacts, feeds, and links are stored. Done means all listed actions work through the API, tests cover them, merging leaves no orphaned data, and later matching links records to the target provider.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the problem

Automatic matching creates one provider per distinct name and URL, so aliases (TTC, Toronto Transit Commission) end up as separate providers. There is no tool to find and merge them.

Proposed solution

Operations API endpoints:

  • Provider CRUD (name, status, aliases, contacts).
  • Possible duplicates: providers sharing the same normalized URL or the same name, with their linked raw records and feeds, paginated.
  • Merge two providers: move aliases, contacts and raw record links to the target, then delete the source.
  • Move a raw record to another provider, for corrections (uses the shared link service).
  • List a provider's raw records and feeds.

Acceptance criteria:

  • Every action above works through the Operations API and is covered by tests.
  • Merging leaves no orphaned aliases, contacts or links.
  • After a merge, new records matching either provider's name and URL link to the target.
Alternatives you've considered

A review queue of every unlinked record: rejected, too much manual work for the team's capacity.

Additional context
Lenguaje dominante
Python
Estrellas
34
Forks
7
Merge medio
2 d 22 h
PR fusionados (30 d)
21

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de MobilityData/mobility-feed-api

Todos los issues de MobilityData/mobility-feed-api

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.