Skip to content
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

Enable custom time ranges for saved searches #99180

Merged

Conversation

timroes
Copy link
Contributor

@timroes timroes commented May 4, 2021

Summary

Resolves #68736

This PR enables the "Customize time range" action on a dashboard also for saved searches. They work without a problem, since the saved search embedabble is already using the embaddable input to retrieve the time range, which will be overwritten by that action.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@timroes timroes added Feature:Discover Discover Application release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure auto-backport Deprecated - use backport:version if exact versions are needed v7.14.0 v8.0.0 labels May 4, 2021
@timroes timroes marked this pull request as ready for review May 4, 2021 16:36
@timroes timroes requested a review from a team as a code owner May 4, 2021 16:36
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@timroes timroes requested review from majagrubic and kertal May 4, 2021 16:36
Copy link
Contributor

@streamich streamich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM, small code change, big win 🥇 , tested locally in Chrome, Firefox, Safari, MacOS, works as expected.

@timroes
Copy link
Contributor Author

timroes commented May 5, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
uiActionsEnhanced 231.7KB 231.7KB -28.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@timroes timroes merged commit 792845f into elastic:master May 5, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request May 5, 2021
* Enable custom time ranges for saved searches

* Add functional test

* Fix Typing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

@timroes timroes deleted the discover/enable-custom-dashboard-timerange branch May 5, 2021 14:38
kibanamachine added a commit that referenced this pull request May 5, 2021
* Enable custom time ranges for saved searches

* Add functional test

* Fix Typing

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tim Roes <tim.roes@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Discover Discover Application release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customise a Time Range for Discovery on Dashboards
5 participants