[Lens] searchSessionId
is reset when opening a Lens config panel in Discover
#162496
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Lens
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Kibana version:
main
Might not be worth to fix as hopefully we'll do overall fix first (#121543) but let's keep an eye on it as it can cause some problems.
A specific bug:
searchSessionId
somewhere (you can for example add a console.logdata.search.session.getSessionId()
in src/plugins/unified_histogram/public/container/container.tsx as it is ran on every searchSessionId.Explanation
This is caused by the fact that we initialise
searchSessionId
for the existing document like this (x-pack/plugins/lens/public/state_management/init_middleware/load_initial.ts):I would assume it would be safe to just do instead
searchSessionId: currentSessionId ? currentSessionId : data.search.session.start(),
but there were a lot of bugs in the past with searchSessionId management so it's important to investigate it if we have to fix it. This code should be thoroughly tested and we should also update our test suite because at the moment it's misses few pieces and we cannot fully count on it.Some cases to pay attention to:
Lens editor initialisation:
Lend editor leaving:
Inside Lens workflow:
searchSessionId is changed when:
The text was updated successfully, but these errors were encountered: