kibana icon indicating copy to clipboard operation
kibana copied to clipboard

Clicking new on discover while in ES|QL view creates a temporary dataview in NON ESQL mode

Open bhavyarm opened this issue 1 year ago • 5 comments

Kibana version: 8.13.0 snapshot

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from snapshots

Describe the bug: If you click new when you are in ES|QL view, Kibana exits out of ES|QL view to non-ES|QL view and creates a temporary dataview of the same dataview you had in ES|QL mode. This is confusing because user doesn't know this is happening and can do all the operations on the temp dataview in discover.

https://github.com/elastic/kibana/assets/7074629/d0656465-6c5b-4756-bb38-99b2c9f451e2

bhavyarm avatar Feb 13 '24 22:02 bhavyarm

Pinging @elastic/kibana-visualizations (Team:Visualizations)

elasticmachine avatar Feb 13 '24 22:02 elasticmachine

cc @stratoula

bhavyarm avatar Feb 13 '24 22:02 bhavyarm

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

elasticmachine avatar Feb 14 '24 13:02 elasticmachine

We discussed in the team, and clicking on New should not switch to data view mode, it should stay in ES|QL mode and show the default query with the most recent index pattern as source.

kertal avatar Feb 15 '24 16:02 kertal

Yes this makes sense Matthias, can you explain me this though?

the default query with the most recent index pattern as source.

You mean, if the last query was from foo .... and then the user clicked New, navigate to New with from foo | limit 10 ?

stratoula avatar Feb 18 '24 07:02 stratoula

You mean, if the last query was from foo .... and then the user clicked New, navigate to New with from foo | limit 10 ?

Yes, I think this would make sense

kertal avatar Feb 19 '24 06:02 kertal

Yes sounds as a great plan!

stratoula avatar Feb 19 '24 06:02 stratoula