Skip to content

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Oct 13, 2025

Closes #236288

Background

#225705 fixed an issue where controls where getting created with adhoc data views. This fix cause regression #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.

@nreese
Copy link
Contributor Author

nreese commented Oct 13, 2025

/ci

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
controls 488.9KB 488.9KB +24.0B
dashboard 662.4KB 662.4KB -29.0B
total -5.0B

@nreese nreese marked this pull request as ready for review October 13, 2025 22:01
@nreese nreese requested a review from a team as a code owner October 13, 2025 22:01
@nreese nreese added release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// labels Oct 13, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-presentation (Team:Presentation)

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix LGTM! Good call to just filter them out of the Controls directly where they aren't supported. Best to do this now and fix the Controls later.

@nreese nreese merged commit 01e67c3 into elastic:main Oct 14, 2025
31 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.0, 9.1, 9.2

https://github.com/elastic/kibana/actions/runs/18505404410

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
…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 pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2025
…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
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.0
9.1
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 14, 2025
…tered out in the KQL search bar (#238731) (#238990)

# Backport

This will backport the following commits from `main` to `9.1`:
- [[dashboard] fix Adhoc dataviews from ES|QL charts are being filtered
out in the KQL search bar
(#238731)](#238731)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T17:50:51Z","message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:version","v9.2.0","v9.0.6","v9.3.0","v9.1.6","v8.19.6"],"title":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search
bar","number":238731,"url":"https://github.com/elastic/kibana/pull/238731","mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.0","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238731","number":238731,"mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 14, 2025
…tered out in the KQL search bar (#238731) (#238991)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[dashboard] fix Adhoc dataviews from ES|QL charts are being filtered
out in the KQL search bar
(#238731)](#238731)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T17:50:51Z","message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:version","v9.2.0","v9.0.6","v9.3.0","v9.1.6","v8.19.6"],"title":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search
bar","number":238731,"url":"https://github.com/elastic/kibana/pull/238731","mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.0","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238731","number":238731,"mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
kibanamachine added a commit that referenced this pull request Oct 14, 2025
…ltered out in the KQL search bar (#238731) (#238988)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[dashboard] fix Adhoc dataviews from ES|QL charts are being filtered
out in the KQL search bar
(#238731)](#238731)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Nathan
Reese","email":"reese.nathan@elastic.co"},"sourceCommit":{"committedDate":"2025-10-14T17:50:51Z","message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:Presentation","backport:version","v9.2.0","v9.0.6","v9.3.0","v9.1.6","v8.19.6"],"title":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search
bar","number":238731,"url":"https://github.com/elastic/kibana/pull/238731","mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},"sourceBranch":"main","suggestedTargetBranches":["9.2","9.0","9.1","8.19"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/238731","number":238731,"mergeCommit":{"message":"[dashboard]
fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL
search bar (#238731)\n\nCloses
https://github.com/elastic/kibana/issues/236288\n\n###
Background\nhttps://github.com//pull/225705 fixed an issue
where\ncontrols where getting created with adhoc data views. This fix
cause\nregression #236288.
Instead of\nfiltering out adhoc data views from dashboard.dataViews$,
the fix should\noccur in the control group level and ignore adhoc data
views when\nsuggesting the data view when creating a control.\n\n###
Test instructions\n* install sample web logs and wait until its install
- web logs is\nexpected to be default data view\n* install sample
flights data set\n* create new dashboard\n* add ESQL panel with
statement `FROM kibana_sample_data_flights | LIMIT\n10`\n* click into
unified search query bar. Verify typeahead is populated\nfrom `flights`
data view.\n* Add new control to dashboard. Ensure suggested data view
is `Kibana\nSample Data Logs` - meaning the control suggested the
default data view\nand not the adhoc flights data view from the lens
panel.","sha":"01e67c3b061e8115c793569b7a8923fcecce9295"}},{"branch":"9.1","label":"v9.1.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Nathan Reese <reese.nathan@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// v8.19.6 v9.0.6 v9.1.6 v9.2.0 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UnifiedSearch] Adhoc dataviews from ES|QL charts are being filtered out in the KQL search bar

4 participants