Skip to content

Always check allowed modes in VehicleRentalEdge - #4810

Merged
hannesj merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_always_check_possible_modes
Feb 28, 2023
Merged

hannesj merged 2 commits into
opentripplanner:dev-2.xfrom
entur:otp2_always_check_possible_modes

Conversation

@hannesj

@hannesj hannesj commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Summary

Currently we do not check available types when realtimeAvailability is false. This might produce wrong results, if the form factors allowed differ between pickup and drop off.

@hannesj hannesj added !Bug Apply to issues describing a bug and PRs witch fixes it. Vehicle Rental labels Feb 8, 2023
@hannesj hannesj added this to the 2.3 milestone Feb 8, 2023
@hannesj
hannesj requested a review from a team as a code owner February 8, 2023 14:16
@leonardehrenfried

Copy link
Copy Markdown
Member

BTW, I'm experimenting with fixing these strange windows CI errors with the following commit: ibi-group@14cce41

Maybe you want to cherry-pick to see if it makes the problem go away.

testower
testower previously approved these changes Feb 9, 2023

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

Since you didn't really cause this, I approve but if it's not too much to ask could you write some tests for this functionality?

@hannesj
hannesj marked this pull request as draft February 14, 2023 10:12
@hannesj
hannesj marked this pull request as ready for review February 28, 2023 08:08
@hannesj
hannesj dismissed stale reviews from leonardehrenfried and testower via 560751f February 28, 2023 08:10
@hannesj
hannesj force-pushed the otp2_always_check_possible_modes branch from 15421f2 to 560751f Compare February 28, 2023 08:10
@codecov

codecov Bot commented Feb 28, 2023

Copy link
Copy Markdown

Codecov Report

Base: 62.94% // Head: 62.94% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (560751f) compared to base (53e6645).
Patch coverage: 52.94% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #4810   +/-   ##
==========================================
  Coverage      62.94%   62.94%           
  Complexity     13268    13268           
==========================================
  Files           1662     1662           
  Lines          66327    66325    -2     
  Branches        7217     7216    -1     
==========================================
- Hits           41752    41751    -1     
+ Misses         22194    22193    -1     
  Partials        2381     2381           
Impacted Files Coverage Δ
...ipplanner/street/model/edge/VehicleRentalEdge.java 70.96% <52.94%> (-0.62%) ⬇️
...r/routing/vehicle_rental/VehicleRentalVehicle.java 37.50% <0.00%> (+4.16%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@hannesj
hannesj requested a review from t2gran February 28, 2023 09:39
@hannesj
hannesj merged commit 8fc0341 into opentripplanner:dev-2.x Feb 28, 2023
@hannesj
hannesj deleted the otp2_always_check_possible_modes branch February 28, 2023 13:02
t2gran pushed a commit that referenced this pull request Feb 28, 2023
sjthiessen pushed a commit to HBTGmbH/OpenTripPlanner that referenced this pull request Mar 7, 2023
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. Vehicle Rental

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants