[Search][State Management] Restoring background session and back button #82419
Labels
enhancement
New value added to drive a business result
Feature:Search
Querying infrastructure in Kibana
Feature:StateManagement
Part of #61738
In scope of #81633, #81489 we implemented initial
?searchSessionId
query parameter support in discover and dashboard.Initial implementation is simple and in terms of when we remove this query parameter this works in following way:
Current behavior:
?searchSessionId
in the URL?searchSessionId
?searchSessionId
is removed from the URL using replace?searchSessionId
and don't restore background search results.Expected behavior:
?searchSessionId
in the URL?searchSessionId
?searchSessionId
is removed from the URL together with other URL changes.?searchSessionId
and restore background search results.Why we didn't implement expected behavior initially? Doesn't sound like this should be a problem
Because of complicated state management and sync state with URL from multiple places we have to make sure the URL update which removes
?searchSessionId
happens in a single transaction with other URL state updates (e.g. filter removal) to avoid multiple history entries.This would either require an improvement to existing state syncing utils or even implementing platform api for batching history updates: #58752 (comment)
cc @lizozom @lukasolson
The text was updated successfully, but these errors were encountered: