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

fix: gracefully handle predictions v2 for empty stop list #232

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

boringcactus
Copy link
Member

Summary

Ticket: none

Fixes the frontend getting stuck loading when outside the service area.

@boringcactus boringcactus requested a review from a team as a code owner November 1, 2024 21:40
@boringcactus boringcactus requested review from EmmaSimon and removed request for a team November 1, 2024 21:40
Comment on lines 34 to +38
predictions_by_stop: %{
"12345" => %{"p_1" => prediction_1, "p_2" => prediction_2},
trips: %{"trip_1" => trip_1, "trip_2" => trip_2},
vehicles: %{"v_1" => vehicle_1, "v_2" => vehicle_2}
}
"12345" => %{"p_1" => prediction_1, "p_2" => prediction_2}
},
trips: %{"trip_1" => trip_1, "trip_2" => trip_2},
vehicles: %{"v_1" => vehicle_1, "v_2" => vehicle_2}
Copy link
Member Author

Choose a reason for hiding this comment

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

This test data had the wrong shape, and that could be confusing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing!

@boringcactus boringcactus merged commit 8380c31 into main Nov 1, 2024
4 checks passed
@boringcactus boringcactus deleted the mth-empty-predictions branch November 1, 2024 21:49
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