-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[dashboard] fix Adhoc dataviews from ES|QL charts are being filtered out in the KQL search bar #238731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…out in the KQL search bar
/ci |
💚 Build Succeeded
Metrics [docs]Async chunks
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
There was a problem hiding this 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.
Starting backport for target branches: 8.19, 9.0, 9.1, 9.2 |
…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)
…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)
…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)
…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)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…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>
…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>
…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>
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
FROM kibana_sample_data_flights | LIMIT 10
flights
data view.Kibana Sample Data Logs
- meaning the control suggested the default data view and not the adhoc flights data view from the lens panel.