Closed flash1293 closed 7 months ago
Pinging @elastic/kibana-app (Team:KibanaApp)
For reference: Integration would involve:
Similar integration on a dashboard:
Enabling full experience blocked by unability to restore a session without relying on state in the URL
@timductive Just did a follow-up discussion on this with @timroes and @elastic-jb and we agreed this is not terribly high in priority because it's not matching the main user flow for the "Send to background" feature. We will revisit this in 7.13 planning, by then we will have a better idea of how this feature will work in practice and can decide about priority.
@flash1293 I think we've had a couple discussions (with you and @timroes as well), deciding that actually "Sending to background" (saving a search session) is not a realistic use case for Lens editor (or visualize editor). We should instead encourage users to edit with a smaller data set.
I think this can be closed and if the need rises at some point, we can discuss this then.
Good point @lizozom, I edited the description. I still think there's something to do here for the current feature set.
On dashboards, Lens already supports the upcoming "Send to background". Within the Lens editor, this doesn't make much sense because it's based on interactivity. If the user wants to edit a visualization tied to slow data sources, they should try to decrease the size of the data set (e.g. just use the last 30mins of data instead of last 2 years) for editing, then when back on dashboard they can send the long running search to background.
If requests are very slow in Lens, we should advise the user to use a smaller data set here and use background sessions when back on the dashboard.
Context
Part of https://github.com/elastic/kibana/issues/83640 On dashboards, Lens already supports the upcoming "Send to background". This should also work within the Lens editor. To do so, the "searchSessionId" has to be kept around and passed to the expression to allow the data layer to pick up a search running in the background.