-
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
[Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled #156690
Comments
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
With the current |
I don't know what happened, but I don't see it anymore. |
I was talking about the option to add the autorefresh in the date picker (I also checked the eui custom options for the date picker): Even if the user doesn't see it by default it's still possible to enable it there which is also confusing- Screen.Recording.2023-05-05.at.11.12.02.movI was searching for a way to disable/hide it from the date picker completely inside the Search bar but I don't see any option to do that ( I also tried to set |
@crespocarlos Do you know who can we contact to ask about the unified search data picker options? I mean we can also just set |
@jennypavlova we could reach out to @elastic/kibana-visualizations. Apparently, we won't be able to solve this problem now. |
@crespocarlos I am discussing that with them now, I will see what we can do to fix it. |
How big of a task is enabling auto refresh? Wondering if its small, might be easier to just get it in. |
I don't think it is as small as this task. In theory, it is just about making the requests every X seconds. Few things that come to mind:
It may be best to understand how it can be done (if we want to enable auto refresh) and possible performance implications in a separate ticket. |
…enabled (#157011) Closes #156690 ## Summary This PR adds a flag (`isAutoRefreshDisabled`) to disable the default auto-refresh option in the unified search. ## Background The auto refresh is added by default when using a unified search bar in [defaultOnRefreshChange](https://github.com/elastic/kibana/blob/main/src/plugins/unified_search/public/search_bar/create_search_bar.tsx/#L59) and it appeared on the host view page when currently the auto-refresh option is not supported. | with `isAutoRefreshDisabled` (true) | without `isAutoRefreshDisabled` (false/undefined) | | ------------------------------------ | -------------------------------------------------- | | <img width="200" alt="image" src="https://user-images.githubusercontent.com/14139027/236862888-63efdb13-6b07-41c2-abe8-88247c9c96e1.png"> | <img width="200" alt="image" src="https://user-images.githubusercontent.com/14139027/236862409-4f36ec6a-f274-4dae-960b-407ea30f330b.png"> | --------- Co-authored-by: Stratoula Kalafateli <[email protected]>
…enabled (elastic#157011) Closes elastic#156690 ## Summary This PR adds a flag (`isAutoRefreshDisabled`) to disable the default auto-refresh option in the unified search. ## Background The auto refresh is added by default when using a unified search bar in [defaultOnRefreshChange](https://github.com/elastic/kibana/blob/main/src/plugins/unified_search/public/search_bar/create_search_bar.tsx/#L59) and it appeared on the host view page when currently the auto-refresh option is not supported. | with `isAutoRefreshDisabled` (true) | without `isAutoRefreshDisabled` (false/undefined) | | ------------------------------------ | -------------------------------------------------- | | <img width="200" alt="image" src="https://user-images.githubusercontent.com/14139027/236862888-63efdb13-6b07-41c2-abe8-88247c9c96e1.png"> | <img width="200" alt="image" src="https://user-images.githubusercontent.com/14139027/236862409-4f36ec6a-f274-4dae-960b-407ea30f330b.png"> | --------- Co-authored-by: Stratoula Kalafateli <[email protected]> (cherry picked from commit 77d864e)
…fresh enabled (#157011) (#159543) # Backport This will backport the following commits from `main` to `8.8`: - [[Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled (#157011)](#157011) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"jennypavlova","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-06-13T08:07:58Z","message":"[Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled (#157011)\n\nCloses #156690 \r\n\r\n## Summary\r\n\r\nThis PR adds a flag (`isAutoRefreshDisabled`) to disable the default\r\nauto-refresh option in the unified search.\r\n\r\n## Background\r\n\r\nThe auto refresh is added by default when using a unified search bar in\r\n[defaultOnRefreshChange](https://github.com/elastic/kibana/blob/main/src/plugins/unified_search/public/search_bar/create_search_bar.tsx/#L59)\r\nand it appeared on the host view page when currently the auto-refresh\r\noption is not supported.\r\n\r\n\r\n| with `isAutoRefreshDisabled` (true) | without `isAutoRefreshDisabled`\r\n(false/undefined) |\r\n| ------------------------------------ |\r\n-------------------------------------------------- |\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862888-63efdb13-6b07-41c2-abe8-88247c9c96e1.png\">\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862409-4f36ec6a-f274-4dae-960b-407ea30f330b.png\">\r\n|\r\n\r\n---------\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"77d864e4ff04027f800789259fd6c6194b51c59a","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Infra Monitoring UI","release_note:skip","backport:prev-minor","v8.9.0"],"number":157011,"url":"https://github.com/elastic/kibana/pull/157011","mergeCommit":{"message":"[Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled (#157011)\n\nCloses #156690 \r\n\r\n## Summary\r\n\r\nThis PR adds a flag (`isAutoRefreshDisabled`) to disable the default\r\nauto-refresh option in the unified search.\r\n\r\n## Background\r\n\r\nThe auto refresh is added by default when using a unified search bar in\r\n[defaultOnRefreshChange](https://github.com/elastic/kibana/blob/main/src/plugins/unified_search/public/search_bar/create_search_bar.tsx/#L59)\r\nand it appeared on the host view page when currently the auto-refresh\r\noption is not supported.\r\n\r\n\r\n| with `isAutoRefreshDisabled` (true) | without `isAutoRefreshDisabled`\r\n(false/undefined) |\r\n| ------------------------------------ |\r\n-------------------------------------------------- |\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862888-63efdb13-6b07-41c2-abe8-88247c9c96e1.png\">\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862409-4f36ec6a-f274-4dae-960b-407ea30f330b.png\">\r\n|\r\n\r\n---------\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"77d864e4ff04027f800789259fd6c6194b51c59a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/157011","number":157011,"mergeCommit":{"message":"[Infrastructure UI] Hosts View: Unified Search bar with auto-refresh enabled (#157011)\n\nCloses #156690 \r\n\r\n## Summary\r\n\r\nThis PR adds a flag (`isAutoRefreshDisabled`) to disable the default\r\nauto-refresh option in the unified search.\r\n\r\n## Background\r\n\r\nThe auto refresh is added by default when using a unified search bar in\r\n[defaultOnRefreshChange](https://github.com/elastic/kibana/blob/main/src/plugins/unified_search/public/search_bar/create_search_bar.tsx/#L59)\r\nand it appeared on the host view page when currently the auto-refresh\r\noption is not supported.\r\n\r\n\r\n| with `isAutoRefreshDisabled` (true) | without `isAutoRefreshDisabled`\r\n(false/undefined) |\r\n| ------------------------------------ |\r\n-------------------------------------------------- |\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862888-63efdb13-6b07-41c2-abe8-88247c9c96e1.png\">\r\n| <img width=\"200\" alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/14139027/236862409-4f36ec6a-f274-4dae-960b-407ea30f330b.png\">\r\n|\r\n\r\n---------\r\n\r\nCo-authored-by: Stratoula Kalafateli <[email protected]>","sha":"77d864e4ff04027f800789259fd6c6194b51c59a"}}]}] BACKPORT--> Co-authored-by: jennypavlova <[email protected]>
Summary
On the unified search bar, the auto-refresh input is present, but the host view page doesn't support auto-refresh yet. It would be interesting to remove it to avoid confusion.
Possible solution
We probably need have to pass
isRefreshPaused
prop to theSearchBar
componentAcceptance Criteria
The text was updated successfully, but these errors were encountered: