Skip to content

[Search Sessions] Restore state from SO instead of URL #87446

@Dosant

Description

@Dosant

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:

Solution

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, so searchSessionId becomes single state source of truth.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:SearchQuerying infrastructure in KibanaFeature:Search SessionsIceboxTeam:DataDiscoveryDiscover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//enhancementNew value added to drive a business resultimpact:mediumAddressing this issue will have a medium level of impact on the quality/strength of our product.loe:mediumMedium Level of Effort

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions