Skip to content

feat: filter GTFS feeds by status - #1827

Open
mackenziereading19 wants to merge 2 commits into
MobilityData:mainfrom
mackenziereading19:1675-gtfs-status-filter
Open

feat: filter GTFS feeds by status#1827
mackenziereading19 wants to merge 2 commits into
MobilityData:mainfrom
mackenziereading19:1675-gtfs-status-filter

Conversation

@mackenziereading19

Copy link
Copy Markdown
Contributor

Summary

Adds support for filtering /v1/gtfs_feeds by the existing status query parameter.

This reuses the shared status contract already used by /v1/feeds, including:

  • active
  • deprecated
  • inactive
  • development
  • future

The future status was already present in the API schema/documentation, so no new status value was required.

Implementation

  • expose the existing status parameter on /v1/gtfs_feeds;
  • pass the value through FeedsApiImpl.get_gtfs_feeds;
  • add status filtering to GtfsFeedFilter;
  • pass the filter through get_gtfs_feeds_query;
  • add integration coverage for filtering GTFS feeds by active status.

Verification

Local verification on Python 3.11, matching CI:

  • focused status-filter regression: 1 passed;
  • baseline + regression: 2 passed;
  • api/tests/integration/test_feeds_api.py: 96 passed;
  • flake8: passed;
  • Black check: passed.

Closes #1675

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter by status parameter

1 participant