Add unit test to check static reference in realtime feeds

Open Beginner friendly
#836 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Find the database pipeline code that validates realtime feeds and static references, likely in a models or validators module. Look at existing tests for feed validation to understand the testing patterns. Write a unit test that ensures a static reference cannot have data type gtfs_rt. Run the test suite to verify the test works.

Written by the indexing model from the issue text.

Description

enhancement
Describe the problem

The DB pipeline broke because of a case where I accidentally made a realtime feed's static reference another realtime feed. It broke the location ID, and seemed to block the entire pipeline process.

Proposed solution

Check that a static reference has a data type of gtfs and not gtfs_rt

Alternatives you've considered

No response

Additional context

No response

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.