Skip to content

[9.1] [dashboard] fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL search bar (#238731)#238990

Merged
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-238731
Oct 14, 2025
Merged

[9.1] [dashboard] fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL search bar (#238731)#238990
kibanamachine merged 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-238731

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…out in the KQL search bar (elastic#238731)

Closes elastic#236288

### Background
elastic#225705 fixed an issue where
controls where getting created with adhoc data views. This fix cause
regression elastic#236288. Instead of
filtering out adhoc data views from dashboard.dataViews$, the fix should
occur in the control group level and ignore adhoc data views when
suggesting the data view when creating a control.

### Test instructions
* install sample web logs and wait until its install - web logs is
expected to be default data view
* install sample flights data set
* create new dashboard
* add ESQL panel with statement `FROM kibana_sample_data_flights | LIMIT
10`
* click into unified search query bar. Verify typeahead is populated
from `flights` data view.
* Add new control to dashboard. Ensure suggested data view is `Kibana
Sample Data Logs` - meaning the control suggested the default data view
and not the adhoc flights data view from the lens panel.

(cherry picked from commit 01e67c3)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 14, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) October 14, 2025 17:59
@kibanamachine kibanamachine merged commit a714532 into elastic:9.1 Oct 14, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants