-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Pass-through should override transit-group-priority #5638
Conversation
@@ -28,7 +29,7 @@ | |||
import org.opentripplanner.routing.api.request.framework.CostLinearFunction; | |||
import org.opentripplanner.transit.model.site.StopLocation; | |||
|
|||
public class RaptorRequestMapper { | |||
public class RaptorRequestMapper<T extends RaptorTripSchedule> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding the generic type here was necessary for adding tests. The DefaultAccessEgress -> AStar State😢
a0bb56e
to
65e47e6
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5638 +/- ##
=============================================
- Coverage 67.50% 67.46% -0.05%
- Complexity 16285 16287 +2
=============================================
Files 1888 1889 +1
Lines 71547 71591 +44
Branches 7408 7414 +6
=============================================
- Hits 48301 48300 -1
- Misses 20747 20790 +43
- Partials 2499 2501 +2 ☔ View full report in Codecov by Sentry. |
Summary
Pass-through and transit-group-priority uses the same Raptor feature and can not be use at the same time (for now - if needed we can fix this). In OTP now pass-through is disabled if transit-priority is enabled. This is a bit unfortunate since transit-priority is a more general thing that might be set up as a default configured feature, while pass-through is always specific to a request. So, it make more sense to turn it around and only allow transit-group-priority if no pass-through-stops exist in the request. This PR does exactly this.
Issue
🟥 This issue was reported internally at Entur, and no issue was created for it. The fix is very simple.
Unit tests
✅ Added a regression test and a smoke test on the mapping of pass-through-points
Documentation
🟥 No doc added
Changelog
🟥 This bug did not exist tín the previous version of OTP; Hence, there is no change.
Bumping the serialization version id
🟥 Not required