-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
If someone *does* put in an invalid date range, it should be handled gently (shouldn't do a 500) #4922
Comments
Hi, can I take this one? I'll start by making a list of places that use date ranges and show the 500 error. I'll post that list here to make sure I am not missing any important use cases. |
Sounds good. I'm hoping this can be handled in one place, but not counting on it. |
@cielf I am not able to consistently reproduce this issue. I have only been able to trigger the error once or twice out of 20 or so attempts. I have tried using Chrome in incognito mode and I have also tried using Safari. Neither of those changes seem to make a difference. I am attaching a screenshot of the error and a screen recording of how I am trying reproduce the issue. Please let me know if there is a step that I am missing. Right now, it looks to me like it could be a race condition which is tough to debug. |
@gabeparra01 I think there are two issues at play here.
|
If I, instead of what's described, type nov 08 to feb 08 and click filter, I get it 5 times out of 5 on staging . |
Actually, I get it 5 times out of 5 when I do it as described too (on staging). |
And I tried it in incognito mode on local with the most up to date main -- same result. |
Thank you all for helping me with this investigation! @cielf My fork is up to date and I ran bin/setup before bin/start but I am still having the same problem with reproducing the issue. The approach @coalest provided, manually updating the URL in the browser, does give me the 500 error every time. If it sounds good to both of you, I will fix that issue first and then we can have a few people try the normal way to reproduce the issue in my PR branch to confirm? |
If I understand correctly, that should give us something better than we have now, so please proceed. I am puzzled, though, about how you are not experiencing this issue. |
Summary
If someone puts in an invalid date range, they should receive a friendly error, rather than getting a 500 error
Why?
Reduce user frustration
Details
To produce this situation
sign in as [email protected]
Click on Distributions, then "All Distribuitons"
type "nov 08 to feb 08" in the date range box and hit return
You currently get a 500 error
We should instead display an error "date range not properly formatted."
Some things just use a helper, but some others are more complicated.
Criteria for completion
The text was updated successfully, but these errors were encountered: