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(vehicles): add logging if a non-shuttle vehicle has a null direction_id #854

Merged
merged 8 commits into from
Jan 22, 2025

Conversation

rudiejd
Copy link
Contributor

@rudiejd rudiejd commented Jan 22, 2025

Asana Ticket: 🍎🐛 v3 API returning null direction_id in certain cases

Problem: As described in the linked ticket, sometimes we return vehicles with "direction_id": null. We aren't sure why. I spent a couple of days looking into this issue and didn't make any progress.

Solution: We are adding logs for when an invalid direction_id is returned. Hopefully these can allow us to better ascertain what conditions lead to this happening.

@rudiejd rudiejd requested review from a team and lemald and removed request for a team January 22, 2025 21:04
@rudiejd rudiejd force-pushed the fix/add-logging-when-direction_id_null branch from 1d16be3 to 68aab4e Compare January 22, 2025 21:04
@lemald
Copy link
Member

lemald commented Jan 22, 2025

question: would it be possible to add a quick unit test for this?

Co-authored-by: Eddie Maldonado <[email protected]>
@rudiejd
Copy link
Contributor Author

rudiejd commented Jan 22, 2025

@lemald yep, I can add one. I wasn't sure whether we wanted to test logging logic

@lemald
Copy link
Member

lemald commented Jan 22, 2025

@lemald yep, I can add one. I wasn't sure whether we wanted to test logging logic

It's definitely not our top priority for automated testing but I personally like doing it where feasible, especially for something like this where the situation isn't regularly occurring for us to test the logging manually.

Copy link
Member

@lemald lemald left a comment

Choose a reason for hiding this comment

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

👍

@rudiejd rudiejd merged commit a4e4e94 into master Jan 22, 2025
12 checks passed
@rudiejd rudiejd deleted the fix/add-logging-when-direction_id_null branch January 22, 2025 22:20
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