Manage feed providers in the Operations API

Open
#1,912 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
api, backend

Research direction

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.

Written by the indexing model from the issue text.

Description

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
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MobilityData/mobility-feed-api

All issues in MobilityData/mobility-feed-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.