-
Notifications
You must be signed in to change notification settings - Fork 136
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
dt-6044 bike stations ids #4872
Conversation
app/util/citybikes.js
Outdated
/** * | ||
* Parse id number from stationId. | ||
*/ | ||
export const parseVehicleIdNumber = stationId => { |
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.
There is actually a feedScopedIdUtils.js file with getIdWithoutFeed
function that we could use instead of this. There is a small upside in having a specific util for this purpose as then it's more clear what we want to get out of the id but still I think maybe we should just reuse the existing util.
…enamed from bike to vehicle."" This reverts commit dfc73f3.
app/component/CityBikeLeg.js
Outdated
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.
Rename this to VehicleRentalLeg.js
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.
Rename this to be VehicleRentalStationStopContent.js
app/util/citybikes.js
Outdated
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.
Rename this to be vehicleRentalUtils.js
BIKESTATION_OFF, | ||
BIKESTATION_CLOSED, |
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.
These constant values can be removed from the citybikes.js (including BIKESTATION_ON also) as they are no longer used.
path = `/${PREFIX_BIKESTATIONS}/`; | ||
id = searchObj.properties.labelId; | ||
break; | ||
case 'bikestation': | ||
path = `/${PREFIX_BIKESTATIONS}/`; | ||
id = searchObj.properties.id; | ||
break; | ||
case 'favouriteBikestation': | ||
case 'favouriteBikeRentalStation': |
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.
There are still some references to this in code. Not sure if the same or different thing.
…RentalStation Also, lift major version
Proposed Changes
Pull Request Check List
Review