[Search Sessions] Restore state from SO instead of URL #87446
Labels
enhancement
New value added to drive a business result
Feature:Search Sessions
Feature:Search
Querying infrastructure in Kibana
Icebox
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Team:DataDiscovery
Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.
Part of #83640
Problem
Initial version of search session restores state from the URL.
The URL contains both serialized app +
searchSessionId
:kibana/app/discover/#/?_a={discover_state}&_g={discover_state}&searchSessionId={id}
If state in the URL changes and
searchSessionId
stays untouched most likely session restoration would fail because search requests during restoration wouldn't match original search requests saved within the session:searchSesssionId
. e.g. [Search][Send to background] Restoration URL conflicts with global time sync with chrome's URLs #87149Solution
By
searchSessionId
we can restore the application state from search session SO.Instead of relying on rest of the app state when
searchSessionId
is present in the URL we could try to get the state stored in SO, sosearchSessionId
becomes single state source of truth.Related
The text was updated successfully, but these errors were encountered: