-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix itinerary cost review #6539
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
Fix itinerary cost review #6539
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6539 +/- ##
=============================================
- Coverage 70.24% 70.23% -0.01%
+ Complexity 18369 18362 -7
=============================================
Files 2087 2087
Lines 77381 77377 -4
Branches 7839 7839
=============================================
- Hits 54357 54347 -10
- Misses 20249 20252 +3
- Partials 2775 2778 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
You say that it doesn't contain several fares for the itinerary which is not true: OpenTripPlanner/application/src/main/java/org/opentripplanner/model/fare/ItineraryFares.java Line 27 in e8e9a77
|
Can you cherry-pick (not merge) this commit to re-enable the fares tests: leonardehrenfried@61eab43 |
Correct me if I am wrong! But, it is relative to the itinerary - it contains many fars for LEGS, but only one option for the itinerary - it is not a collection of |
There can also be several options for the entire itinerary. For example you can buy a weekly or a monthly ticket, which both cover the entire itinerary. |
I already did that in the original PR: f46d68a |
Ah, sorry, I missed that. |
Ok, I kind of suspected that could be the case, but it is still not a collection of "itinerary fares". I can agree this is a boarder case - but the key thing here is OOP thinking - and not about correct english. |
To be honest, I don't really care all that much what it is called and will follow your suggestion. |
Summary
Small fixes suggest in the review of #6535.
Renaming
ItineraryFares
toItineraryFares
is debatable:ItineraryFare
is related to the itinerary, it does contain a collection of fares for legs - but only one fare for the total Itinerary.Alternative name:
ItineraryFareInfo
Issue
🟥 This is code cleanup
Unit tests
🟥 No new functional changes
Documentation
✅ JavaDoc is updated
Changelog
🟥 This is code cleanup
Bumping the serialization version id
🟥 No changes to serialized classes