Backfill `agency.txt` and `feed_info.txt` extraction for latest datasets

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

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by locating the existing tasks_executor tasks and the gtfs_file_data_extractor entry point, then trace how feeds identify their latest datasets and how extracted data is linked. Implement a dry-run mode and a batch limit for the backfill. Done means every feed's latest dataset has agency.txt and feed_info.txt extraction linked, and rerunning the task creates no duplicates.

Written by the indexing model from the issue text.

Description

Describe the problem

Extraction only runs when a dataset is processed, so existing latest datasets have no extracted agency.txt or feed_info.txt data. Provider linking and roles depend on it.

Proposed solution
  • Add a tasks_executor task that queues gtfs_file_data_extractor runs for each feed's latest dataset (agency.txt and feed_info.txt).
  • Support a dry run and a limit for batched runs.

Acceptance criteria: every feed's latest dataset is linked to its extracted data; running the task again creates no duplicates.

Alternatives you've considered

Backfilling all historical datasets: not needed, because roles are generated from the latest dataset only.

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.