-
Notifications
You must be signed in to change notification settings - Fork 57
Fix all the dates #939
Comments
Note that in #949 the server's |
We should use |
We should also remove the |
Ok, some of our tests are failing due to the changing of the clocks; this only highlights the importance of getting these sorted out.
|
I've changed all of the relevant date-only columns to the As a side note, does anyone know if the "current reservations" view ( |
No idea, I don't think I ever used that view but perhaps.. someone does |
Here's an interesting side effect that I'm not sure how to deal with: since |
Confirmed: the |
Note that this was already broken on |
Ok, so I currently see a few ways to fix this:
I'm leaning towards option 3 since it's a change we wanted to make anyway and it would be an overall improvement to the app. If that's the way we go, I'll leave the scopes broken for now and we'll fix them in that issue. Thoughts (@squidgetx, @mnquintana, @dgoerger)? |
Isn't there also
Though I agree that 3 is the best |
Nope, I don't think it works. If you check the equipment in prior to the due date, We'll go with 3; I'll leave a comment stating that the scope is broken and we'll fix it in #462, which I'll put in the next general sprint since fixing the scopes is pretty critical. |
In the process of cleaning up the rest of the code. Things to search for:
Once those have all been cleaned up I'll just make sure that Travis is happy and this will be done. |
Agreed on option 3 fwiw---this sounds cleanest. 😀 |
Looks like I have some broken tests... time to clean up :-) |
Ok, broken tests (almost all) fixed and rubocop violations corrected; I'm going to open up a PR now. I have noticed that some tests were failing when the LDAP lookup timed out; I manually disabled LDAP in the authentication integration tests ( This can be solved by commenting out the |
LDAP last night? Not afaict in the logs. I don't see any broader network issues posted on the status page, either. :/ |
Woot! I verified that this branch resolves the issues noted in this comment via Heroku, so I think it's good to go 😄. In terms of the LDAP issues, I'm re-running the build now. We'll see if issues show up in anyone else's Travis builds, otherwise I'll have to assume that it has something to do with this specific branch 😢 |
It looks like it's passing now! 😀 Maybe it was a temporary glitch? |
That's what I'm guessing. |
Try changing it from testing |
We've had numerous issues where date comparisons were not being handled properly due to the different classes they can take (see #932 and a bunch of others). We should do a complete review of the code (validations and scopes particularly) and make sure they we're always using
to_date
where necessary.The text was updated successfully, but these errors were encountered: