[Logs UI] Use Unified Search Bar: Meta issue #142714
Labels
epic
Feature:Discover
Discover Application
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Milestone
Summary
This is the overall meta issue for using the Unified Search bar within the new Log Explorer. Part of #134412.
ℹ️ Some issues here can be completed before the state refactoring, some will need to be completed after: #142775
Implementation issues
Current situation (high level)
The stream currently uses a simplified search bar.
The hierarchy is comprised of a LogsToolbar component which wraps the QueryStringInput component from the Unified Search plugin.
The goal of this issue is to switch over to using the full Search Bar component from the Unified Search plugin.
This component adds extra functionality:
We gain access to data view, saved queries, and filter functionality.
The current set of props handed to the
QueryStringInput
component is relatively simple:The Search Bar props are understandably more complex as there is more functionality to take in to account.
Implications with regards to state
The current implementation only really concerns itself with the page state with regards to storing the filter state. All of the filtering context is handled via the
useLogFilterState
hook.Moving forward with a more powerful Unified Search experience the state needs will need to expand and will be linked in with the state refactoring efforts.
We will take an approach that switches to the Search Bar for the query input and date / time / stream live functionality first, then we will refactor the page and URL state, and then we will implement the remaining Search Bar functionality (that covers "new state").
Interaction with services
Our implementation will make use of
ui.SearchBar
from thestart
contract of the Unified Search plugin. This is a pre-wrapped / pre-injected version of theSearchBar
that callscreateSearchBar
for us. This means that in our own code we can interact directly with things like the FilterManager service, rather than having to handle ad-hoc callbacks.The text was updated successfully, but these errors were encountered: