-
Notifications
You must be signed in to change notification settings - Fork 9
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
Don't consider a vehicle "invalid" when on a shuttle run #546
Conversation
Codecov Report
@@ Coverage Diff @@
## master #546 +/- ##
==========================================
+ Coverage 97.60% 97.63% +0.02%
==========================================
Files 171 171
Lines 3845 3845
Branches 528 528
==========================================
+ Hits 3753 3754 +1
+ Misses 88 87 -1
Partials 4 4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about changing the interface that clients use to tell if a vehicle is off course from vehicle.is_off_course
to Vehicle.off_course?(vehicle)
? That simplifies the arguments to the function, allows you to avoid the modification (and weird @spec
) for shuttle?/1
, and allows other changes in the future about which vehicles are off course.
@paulswartz I think the big reason is that the "clients" that want to know about this are all in Javascript on the client-side. So we need to pass data across, we can't rely on an Elixir function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, shouldn't shuttle?
also be is_shuttle
on Vehicle?
@paulswartz makes sense, added a |
@arkadyan This looked good to me 👍, invalid vehicles showed the message everywhere that they were found and all the shuttles did not. For better or worse there were a lot of specials online right now to test with :-/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍰
Asana ticket: Shuttle vehicles should not be labeled invalid