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

feat: hide schedules on subway #103

Merged
merged 3 commits into from
Mar 26, 2024
Merged

feat: hide schedules on subway #103

merged 3 commits into from
Mar 26, 2024

Conversation

boringcactus
Copy link
Member

Summary

Ticket: Omit all subway & light rail schedules in Nearby Transit

In the interest of preserving data for as long as possible, this PR hides schedules on the subway at the last possible moment.

Testing

Added new tests and manually verified that schedules still display on other modes but don't on light and heavy rail.

@boringcactus boringcactus requested a review from a team as a code owner March 26, 2024 15:25
@boringcactus boringcactus requested a review from BrandonTR March 26, 2024 15:25
Copy link
Contributor

@BrandonTR BrandonTR left a comment

Choose a reason for hiding this comment

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

One small q, otherwise lgtm!

@@ -117,7 +119,10 @@ data class PatternsByHeadsign(
val tripsToShow =
upcomingTrips
.map { Format.Some.FormatWithId(it, now) }
.filterNot { it.format is UpcomingTrip.Format.Hidden }
.filterNot {
it.format is UpcomingTrip.Format.Hidden ||
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be helpful to add a small comment here for context on why we're hiding subway schedules?

Copy link
Member Author

Choose a reason for hiding this comment

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

May as well, yeah.

@boringcactus boringcactus merged commit 7d7825a into main Mar 26, 2024
5 checks passed
@boringcactus boringcactus deleted the mth-no-subway-schedule branch March 26, 2024 21:23
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.

2 participants