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

Remove OTP1 Stop Time Filtering #994

Closed
wants to merge 2 commits into from

Conversation

miles-grant-ibigroup
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup commented Sep 8, 2023

Description:

When we switched to the new stop viewer, we forgot to remove a filter that was only relevant for the old stop viewer and OTP1. The result was no stop times appearing at the second to last stop! This PR removes this filter and fixes things.

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?

@@ -136,11 +136,8 @@ export function getStopTimesByPattern(stopData) {
times: []
}
}
// Exclude the last stop, as the stop viewer doesn't show arrival times to a terminus stop.
const filteredTimes = times.filter(excludeLastStop)
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change results in the display of arrival times (in addition to departures) at terminal stops. Per our discussion, this is not desired.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't replicate this. Do you have any examples?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok never mind I can see it on some bus routes where the last stop of one pattern is not identical to the first stop of another. Looking at the behavior I am not against that

Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why displaying arrivals in addition to departures at terminal stops has been enabled.

@miles-grant-ibigroup
Copy link
Collaborator Author

This will be addressed by the nearby view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants