Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency from Timetable to GTFS-RT TripUpdate #6432

Open
wants to merge 5 commits into
base: dev-2.x
Choose a base branch
from

Conversation

leonardehrenfried
Copy link
Member

@leonardehrenfried leonardehrenfried commented Feb 5, 2025

Summary

The class Timetable has a dependency on GTFS-RT's TripUpdate. This dependency prevents further refactoring and moving of the transit model to a separate module.

Since the Timetable is now also immutable (since #6017) changing the main code is not very complicated. However, there are some tests that combine testing the Timetable with testing the TimetableSnapshot, which is a bit difficult to untangle.

Issue

Relates to #6431

Unit tests

Lots changed.

Documentation

Maybe @vpaturet could help me updating the Javadoc of TimetableMapper.

Bumping the serialization version id

Only a static methods was moved so I don't think we need it.

Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 78.04878% with 27 lines in your changes missing coverage. Please review.

Project coverage is 70.31%. Comparing base (62b4982) to head (55b7860).

Files with missing lines Patch % Lines
.../opentripplanner/updater/trip/TimetableMapper.java 77.68% 16 Missing and 11 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #6432   +/-   ##
==========================================
  Coverage      70.31%   70.31%           
  Complexity     18158    18158           
==========================================
  Files           2058     2059    +1     
  Lines          76939    76941    +2     
  Branches        7771     7771           
==========================================
+ Hits           54097    54100    +3     
+ Misses         20088    20087    -1     
  Partials        2754     2754           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@optionsome optionsome left a comment

Choose a reason for hiding this comment

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

logback.xml has some custom configuration for the Timetable class. It should be changed to be for the TimetableMapper class.

@leonardehrenfried
Copy link
Member Author

Good catch!

optionsome
optionsome previously approved these changes Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants