-
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
Make vehicleRentalStation query optionally accept id without feed #5411
Make vehicleRentalStation query optionally accept id without feed #5411
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5411 +/- ##
=============================================
- Coverage 66.87% 66.87% -0.01%
Complexity 15496 15496
=============================================
Files 1800 1800
Lines 69793 69801 +8
Branches 7353 7353
=============================================
+ Hits 46674 46676 +2
- Misses 20662 20666 +4
- Partials 2457 2459 +2
☔ View full report in Codecov by Sentry. |
@@ -304,6 +308,18 @@ private static FareProduct fareProduct(String name) { | |||
); | |||
} | |||
|
|||
@Nonnull | |||
private static VehicleRentalStation vehicleRentalStation(String name) { | |||
var station = new VehicleRentalStation(); |
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.
You can use TestVehicleRentalStationBuilder
.
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.
Ok, I'll change it
/** | ||
* This matches station's feedScopedId to the given string. | ||
*/ | ||
private boolean isMatchRentalStationIds(VehicleRentalStation station, String feedScopedId) { |
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.
I find this method name a little hard to parse. Can you improve it?
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.
I completely agree that the method names are awful but I wasn't quite sure if the method name should start with is
. Instead of using the word match
we could use equal
but even then it's as messy. I'm open to suggestions.
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.
How about matchesStationId
or stationIdMatches
or stationIdIsMatch
?
360fc25
Summary
Adds new feature flag
GtfsGraphQlApiRentalStationFuzzyMatching
to allow matching station ids without feed to ease migration into new query.Issue
Minor change and no issue.
Unit tests
Added tests that existin functionality works
Documentation
Updated OTP config doc
Changelog
Maybe from title or we skip