-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix SIRI ET ExtraJourney trips not appearing in departure/arrival boards #7052
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
Open
t2gran
wants to merge
5
commits into
opentripplanner:dev-2.x
Choose a base branch
from
entur:show-extra-journeys-depature-board
base: dev-2.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix SIRI ET ExtraJourney trips not appearing in departure/arrival boards #7052
t2gran
wants to merge
5
commits into
opentripplanner:dev-2.x
from
entur:show-extra-journeys-depature-board
Conversation
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
2bf1a28 to
e2f35ad
Compare
…ealTime' for clarity
This is needed to show extra journeys (added trips) on arrival/depature boards
e2f35ad to
166e934
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #7052 +/- ##
=============================================
- Coverage 72.09% 72.09% -0.01%
- Complexity 20694 20695 +1
=============================================
Files 2244 2244
Lines 83899 83911 +12
Branches 8347 8348 +1
=============================================
+ Hits 60488 60495 +7
- Misses 20482 20485 +3
- Partials 2929 2931 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This was referenced Dec 18, 2025
Member
|
You have to resolve the conflicts, I'm afraid. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
!Bug
Apply to issues describing a bug and PRs witch fixes it.
+Bump Serialization Id
Add this label if you want the serialization id automatically bumped after merging the PR
Entur Test
This is currently being tested at Entur
+Real-Time
The issue/PR is related to RealTime updates
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.
Summary
This PR fixes a bug where extra journeys (GTFS ADDED trips / NeTEx ExtraJourney) were missing from arrival/departure boards. The root cause was that TimetableSnapshot.addPatternToIndex() was incorrectly checking if the stop pattern was modified in real-time, rather than checking if the pattern was created in real-time. This PR introduces a clearer distinction between real-time patterns with modified stop patterns (rerouted trips) and real-time patterns for completely new trips (added trips/extra journeys).
Changes
realTimeTripPattern: True for any pattern created by real-time updates (rerouted OR added)stopPatternChangedInRealTime: True only when a scheduled trip's stop pattern is modified. This is exactlythe same as the previous
createdByRealtimeUpdaterflag.TimetableSnapshot.addPatternToIndex()now usesisRealTimeTripPattern()to include all real-time patternswithRealTimeStopPatternChanged(): For rerouted trips with modified stop patternswithRealTimeAddedTrip(): For completely new trips (GTFS ADDED / NeTEx ExtraJourney)Core changes
TripPattern.java: Added dual flags, new methods, improved JavaDocTripPatternBuilder.java: New builder methods with clear semanticsTimetableSnapshot.java: Fixed index update logic (line 600)Needs more investigation
TripPattern#isStopPatternChangedInRealTime()inTransferIndexGeneratorandRealTimeRaptorTransitDataUpdatershould be investigated. It is probably better to use the more genericisRealTimeTripPattern()in these places, and than add logic for handling ADDED trips (even if that logic is just to ignore these cases). The code as is, is easy to misunderstand.Build on top of #7130
Issue
Fixes #7008
Testing
Manual Testing
I have manually tested the case documented in the issue, before and after applying the fix.
Documentation
realTimeTripPatternandstopPatternChangedInRealTimeChangelog
Bumping the serialization version id