Skip to content

Route > merge different route_sort_order - #58

Merged
mmathieum merged 2 commits into
masterfrom
mm/fix_route_sort_order_diff
Apr 7, 2026
Merged

mmathieum merged 2 commits into
masterfrom
mm/fix_route_sort_order_diff

Conversation

@mmathieum

Copy link
Copy Markdown
Member

No description provided.

@mmathieum mmathieum self-assigned this Apr 7, 2026
@mmathieum
mmathieum marked this pull request as ready for review April 7, 2026 13:59

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the GTFS route merging logic to include the route sort order. Specifically, it modifies the GRoute data class to exclude the sort order from the mergeable equality check and updates the clone method to support it. A logic issue was identified in the new mergeRouteSortOrders function, which returns null even when both sort orders are identical, leading to unnecessary data loss during the merge process.

@mmathieum
mmathieum merged commit 05cc35d into master Apr 7, 2026
@mmathieum
mmathieum deleted the mm/fix_route_sort_order_diff branch April 7, 2026 14:14
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.

1 participant