Skip to content

Fix preference cost comparisons - #5586

Merged
optionsome merged 2 commits into
opentripplanner:dev-2.xfrom
HSLdevcom:fix-pref-equals
Jan 2, 2024
Merged

Fix preference cost comparisons#5586
optionsome merged 2 commits into
opentripplanner:dev-2.xfrom
HSLdevcom:fix-pref-equals

Conversation

@optionsome

@optionsome optionsome commented Dec 19, 2023

Copy link
Copy Markdown
Member

Summary

While working on some related things, I noticed some wrong equal checks on Costs. This fixes those and adds one missing field from a toString.

Issue

No issue as these are minor fixes but this can solve issues with transfer cache but most of these fixed fields are not exposed through any API.

Unit tests

Not updated, we might want to refactor tests related to these comparisons more in the future.

Documentation

Not updated

Changelog

From title

@optionsome optionsome added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Dec 19, 2023
@optionsome
optionsome marked this pull request as ready for review December 19, 2023 11:43
@optionsome
optionsome requested a review from a team as a code owner December 19, 2023 11:43
@optionsome optionsome added this to the 2.5 (next release) milestone Dec 19, 2023
@codecov

codecov Bot commented Dec 19, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (323dc36) 67.36% compared to head (0492e5c) 67.36%.

Files Patch % Lines
...i/request/preference/VehicleRentalPreferences.java 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #5586   +/-   ##
==========================================
  Coverage      67.36%   67.36%           
+ Complexity     16167    16164    -3     
==========================================
  Files           1858     1858           
  Lines          71093    71097    +4     
  Branches        7403     7406    +3     
==========================================
+ Hits           47892    47896    +4     
+ Misses         20745    20743    -2     
- Partials        2456     2458    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@optionsome
optionsome merged commit 4d0f827 into opentripplanner:dev-2.x Jan 2, 2024
@optionsome
optionsome deleted the fix-pref-equals branch January 2, 2024 09:17
t2gran pushed a commit that referenced this pull request Jan 2, 2024
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants