-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Search by timestamp doesn't work if milliseconds not specified #12137
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
Comments
We could also consider supporting multiple different type formats for dates, with notation like that: |
I might be wrong, that strikes me as a feature request and not as an error. Am I right? |
@kmerz - I have nothing against changing it from bug to feature request. |
see #19551 for some already discussed approaches |
Looks like for search by timestamp is mandatory to type full time in date value (with hours, minutes, seconds and milliseconds). For the user this behavior is not obvious and may mislead the user by displaying incorrect search result.
Expected Behavior
We should make search work if user didn't type millisecond, seconds or even time at all.
Or if there is any specific reason to use full date with time, we should add validation and inform user that its mandatory to type full date.
Current Behavior
If we type date without millisecond we wouldn't see any results and there is no message for the user that is need to type full date.
Possible Solution
Add as default values for milliseconds, seconds - 000, 00 respectively. Also if user didn't add time at all lets make it 00:00:00.000 by default (maybe 23:59 for upper boundary)
OR
Add validation and show message that user should type all values in time
Steps to Reproduce (for bugs)
timestamp:["2022-01-01 00:00:00.000" TO "2022-12-01 00:00:00.000"]
into search field.timestamp:["2022-01-01 00:00:00" TO "2022-12-01 00:00:00"]
into search field (the same as before but without milliseconds)Your Environment
The text was updated successfully, but these errors were encountered: