Skip to content

Check boarding and alighting permissions in TransferGenerator#3641

Merged
t2gran merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_transfergenerator_fix
Oct 14, 2021
Merged

Check boarding and alighting permissions in TransferGenerator#3641
t2gran merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_transfergenerator_fix

Conversation

@hannesj

@hannesj hannesj commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

Summary

TransferGenerator did not previously check for boarding/alighting permissions, if the transfer was at a single stop. This adds a check similar to how it was done, if a street transfer was necessary.

Issue

Fixes #3594

Unit tests

Added four unit tests for alighting/boarding restriction at same/different stop.

Documentation

None required

Changelog

Added

@hannesj
hannesj requested a review from a team as a code owner October 6, 2021 12:17
@hannesj hannesj added the Entur Test This is currently being tested at Entur label Oct 7, 2021
t2gran
t2gran previously approved these changes Oct 12, 2021

@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.

This is an important fix, and we have tested this and rolled it out in production.

@t2gran t2gran added this to the 2.1 milestone Oct 12, 2021
@t2gran
t2gran requested a review from abyrd October 12, 2021 08:30
abyrd
abyrd previously approved these changes Oct 12, 2021
@abyrd
abyrd dismissed stale reviews from t2gran and themself via 02f6cc0 October 12, 2021 16:44
@hannesj
hannesj requested review from abyrd and t2gran October 13, 2021 08:40
@t2gran

t2gran commented Oct 14, 2021

Copy link
Copy Markdown
Member

This had 2 approvals before the merging, so I will just force this trough.

@t2gran
t2gran merged commit 212578f into opentripplanner:dev-2.x Oct 14, 2021
@t2gran
t2gran deleted the otp2_transfergenerator_fix branch October 14, 2021 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OTP2 gives tripPatterns with alighting when forAlighting = false

3 participants