Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new REST endpoint for exporting feed versions as GTFS zip files with optional transformations. The endpoint supports features like ID prefixing, timezone normalization, shape simplification, and merging multiple feed versions.
- Adds a new POST endpoint
/feed_versions/exportwith role-based authentication (tl_export_feed_versions) - Implements streaming ZIP export functionality with comprehensive transformation options
- Includes detailed OpenAPI documentation and extensive test coverage
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
server/rest/schema.go |
Adds export endpoint to handlers list and refactors OpenAPI generation to support both GET and POST operations |
server/rest/rest.go |
Registers the new export endpoint with POST method and role-based authentication |
server/rest/openapi.go |
Extends RequestInfo structure to support POST operations alongside existing GET operations |
server/rest/feed_version_export.go |
Implements the complete export functionality with GraphQL queries, transformations, and streaming ZIP response |
server/rest/feed_version_export_test.go |
Comprehensive test suite covering export scenarios, authorization, error handling, and ZIP validation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes https://github.com/interline-io/www-transit-land-v2/issues/227