Skip to content
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

Merged
merged 117 commits into from
Dec 27, 2023
Merged

dt-6044 bike stations ids #4872

merged 117 commits into from
Dec 27, 2023

Conversation

Dvun
Copy link
Contributor

@Dvun Dvun commented Oct 5, 2023

Proposed Changes

  • Updated bikeStations to vehicleStations and ids

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build
  • Code coverage does not decrease (unless measured incorrectly)

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in a Jira issue
  • Merge the pull request

/** *
* Parse id number from stationId.
*/
export const parseVehicleIdNumber = stationId => {
Copy link
Member

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.

Copy link
Member

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

Copy link
Member

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

Copy link
Member

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

Comment on lines 11 to 12
BIKESTATION_OFF,
BIKESTATION_CLOSED,
Copy link
Member

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':
Copy link
Member

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.

Dvun and others added 28 commits December 22, 2023 11:26
@vesameskanen vesameskanen merged commit f904285 into v3 Dec 27, 2023
@vesameskanen vesameskanen deleted the DT-6044 branch December 27, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants