Skip to content

Remove outdated realtime-update from TimetableSnapshot - #3770

Merged
t2gran merged 11 commits into
opentripplanner:dev-2.xfrom
entur:otp2_remove_outdated_updates
Jan 25, 2022
Merged

Remove outdated realtime-update from TimetableSnapshot#3770
t2gran merged 11 commits into
opentripplanner:dev-2.xfrom
entur:otp2_remove_outdated_updates

Conversation

@lassetyr

@lassetyr lassetyr commented Dec 7, 2021

Copy link
Copy Markdown
Contributor

Summary

Issue #3732 is caused by multiple versions of the realtime-updated trip - one for each separate StopPattern - being kept after it has been replaced by a new update. (Outdated versions are flagged as "cancelled")

This PR removes the outdated/replaced updates from the TimetableSnapshot entirely - resulting in OTP having only one realtime-updated version of each trip.

Issue

Closes #3732

@t2gran t2gran added the Entur Test This is currently being tested at Entur label Dec 7, 2021
@t2gran t2gran added this to the 2.1 milestone Dec 7, 2021
@t2gran
t2gran marked this pull request as ready for review December 7, 2021 12:18
@t2gran
t2gran requested a review from a team as a code owner December 7, 2021 12:18
@t2gran
t2gran requested a review from abyrd December 7, 2021 12:18
@t2gran t2gran added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Dec 7, 2021
@t2gran
t2gran marked this pull request as draft December 14, 2021 11:06
Comment thread src/main/java/org/opentripplanner/model/TimetableSnapshot.java Outdated
Co-authored-by: Hannes Junnila <hannes.junnila@gmail.com>
hannesj
hannesj previously approved these changes Dec 15, 2021
@hannesj
hannesj marked this pull request as ready for review January 13, 2022 08:39
@hannesj

hannesj commented Jan 13, 2022

Copy link
Copy Markdown
Contributor

This should now be ready for review

@t2gran
t2gran requested review from optionsome and t2gran and removed request for abyrd January 13, 2022 14:44

@optionsome optionsome left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I wouldn't mind if there was a better test coverage for these realtime trip updates as it's easy to break something while fixing something else but I can approve this even without added tests.

Comment thread src/ext/java/org/opentripplanner/ext/siri/SiriTimetableSnapshotSource.java Outdated
…tSource.java

Co-authored-by: Joel Lappalainen <lappalj8@gmail.com>

@t2gran t2gran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

From a technical point of view, this looks ok.

@t2gran
t2gran merged commit 9534f66 into opentripplanner:dev-2.x Jan 25, 2022
@t2gran
t2gran deleted the otp2_remove_outdated_updates branch January 25, 2022 10:21
t2gran pushed a commit that referenced this pull request Jan 25, 2022
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. Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Platform-changes causes cancelled trips to be returned

4 participants