-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Logs UI] Preserve relative dates selected in the Logs Analysis page datepicker #44706
[Logs UI] Preserve relative dates selected in the Logs Analysis page datepicker #44706
Conversation
Pinging @elastic/infra-logs-ui |
💚 Build Succeeded |
@Kerry350 FYI, I just merged |
💚 Build Succeeded |
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.
All looks good to me 👍 The addition of the default auto reload does make the onboarding feel nicer. My bad for the original bug on the time front 😬
My bad for creating a bad example on the logs stream page... it's still happening there 🙈 |
…c#44706) This changes the type of the state used to store the dates selected via the datepicker in the URL to string. That means it preserves the occurrences of now, now-2w and similar date math expressions without eagerly converting them to a specific timestamp. In combination with the fact that the analysis results page now keeps the selected date range as strings and the query date range as separate numeric timestamps, this fixes the usage of the relative time ranges in the datepicker in combination with the auto-reload functionality of the datepicker. Additionally the page now makes use of the fixed auto-reloading by enabling it by default with a 30 second interval to make the onboarding smoother. The "no data" message on the results page will now be replaced by the chart as soon as the log rate analysis job has started producing results. It further fixes the rounding of the end date to round up. That means that the quick select intervals like "This year" or "This week" actually work and result in a non-empty interval.
…c#44706) This changes the type of the state used to store the dates selected via the datepicker in the URL to string. That means it preserves the occurrences of now, now-2w and similar date math expressions without eagerly converting them to a specific timestamp. In combination with the fact that the analysis results page now keeps the selected date range as strings and the query date range as separate numeric timestamps, this fixes the usage of the relative time ranges in the datepicker in combination with the auto-reload functionality of the datepicker. Additionally the page now makes use of the fixed auto-reloading by enabling it by default with a 30 second interval to make the onboarding smoother. The "no data" message on the results page will now be replaced by the chart as soon as the log rate analysis job has started producing results. It further fixes the rounding of the end date to round up. That means that the quick select intervals like "This year" or "This week" actually work and result in a non-empty interval.
Summary
This PR changes the type of the state used to store the dates selected via the datepicker in the URL to string. That means it preserves the occurrences of
now
,now-2w
and similar date math expressions without eagerly converting them to a specific timestamp. In combination with the fact that the analysis results page now keeps the selected date range as strings and the query date range as separate numeric timestamps, this fixes the usage of the relative time ranges in the datepicker in combination with the auto-reload functionality of the datepicker.Additionally this PR makes use of the fixed auto-reloading by enabling it by default with a 30 second interval to make the onboarding smoother. The "no data" message on the results page will now be replaced by the chart as soon as the log rate analysis job has started producing results.
It further fixes the rounding of the end date to round up. That means that the quick select intervals like "This year" or "This week" actually work and result in a non-empty interval.
fixes #44670
Checklist
Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenarios