-
-
Notifications
You must be signed in to change notification settings - Fork 508
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
[BUG] You can enter an issued_at date without a time. Hijinks ensue. #4313
Comments
Hi @cielf , Can I take up this one if available ? |
Go for it! |
Thanks @dorner . As per my analysis so far, browser validation is set to false here.
If enabled it would have shown like this in chrome and prevented the form submission. Will try to find a way a solution of achieving something similar to this without updating browser_validations config . |
Hi @dorner , I think , we can solve this in three ways.
Which one do you prefer is the best ? I prefer option 1 due to simplicity . |
Hey @MohanThanigaivelan -- I definitely want @dorner's take on this. If we were to go with #1, we'd want to have the same restriction in some other places, for consistency's sake. There might be accessibility issues with not allowing the text input, though. (need to check if our current datepicker meets the appropriate standards) The other two may introduce an inconsistent look and feel, which can be confusing to users. |
Yeah, I wouldn't want to choose #1 - locking things down unless you have JS working is kind of a last resort. If we can detect the bad date/time on the controller side, I'd rather validate it there and punt them back with an error. We should be able to do this in a reusable way so all date-time fields can make use of that logic. |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Automatically unassigned after 7 days of inactivity. |
Summary
It is possible to enter an issued_at date without a time. If you do, the date is not properly saved.
Why investigate?
Possible reduction of support issues.
Details
See discussion in #3530
Enter a new (or edit a) distribution. Change the date to a different day, but blank out the time. Save.
It saves as today. Weird.
This is not incredibly high priority, as we've made it so the user has to go out of their way to enter an issued_at date without a time.
Criteria for completion
[] Figure out how we could fix this
[] Either put in a PR to fix it, comment the heck out of it on this issue and raise it to the senior folks attention, or come to the Sunday meeting to discuss.
The text was updated successfully, but these errors were encountered: