-
-
Notifications
You must be signed in to change notification settings - Fork 2
Fix issue on headsup when a crew has vacant rider spots #45
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
Conversation
Co-authored-by: Logan Ramos <lramos15@gmail.com>
ddbruce
left a comment
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.
Just one question: the query as written produces the following output due to the <first initial. <last name> formatting we impose:
There's no dev deployment of headsup, so I can't test if your code functions the same way or not without merging to prod.
Also, I'll take this time to say that if a spot is open, we should display something better than "OUT OF SERVICE"...it should just be blank or grayed out or something, but that's for another PR.
|
Also I changed the base branch as |
|
I think I've fixed both of those. I couldn't see the out-of-date warning, but I've merged the changes into my fork and updated the version in |
ddbruce
left a comment
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.
lgtm




This should fix the issue we were having with open rider spots. It makes 5 separate database queries and if one comes back empty, that rider spot is left blank on the whiteboard. It also no longer shows a radio number of 0 if the spot is set as reserved or OOS.
I also took the opportunity to add the favicon (pulled from rpiambulance/website since Jacob mentioned it was missing.