Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) # Backport This will backport the following commits from `main` to `8.x`: - [[Discover] Fix loading data views in ES|QL mode (#199099)](#199099) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Matthias Wilhelm","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T18:13:33Z","message":"[Discover] Fix loading data views in ES|QL mode (#199099)\n\n- Closes https://github.com/elastic/kibana/issues/199065\r\n\r\n## Summary\r\n\r\nThis PR makes sure that data views are loaded so user can view them\r\nafter switching from ES|QL mode to data view mode.\r\n\r\nLooks like it was introduced in\r\nhttps://github.com//pull/195670\r\n\r\n### Testing\r\n\r\nOn your local instance having `kibana_sample_data_logs` installed\r\n\r\n* Open a link to an ES|QL query\r\n[link](http://localhost:5601/xot/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),dataSource:(dataViewId:e3465e67bdeced2befff9f9dca7ecf9c48504cad68a10efd881f4c7dd5ade28a,type:dataView),filters:!(),interval:auto,query:(language:kuery,query:''),sort:!(!(timestamp,desc))))\r\n* Switch to classic\r\n* Open the DataView Picker, to see a list of DataViews, before this fix\r\nthere were none\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"08b83c55f64bc250a4b6d5909cfc2e46003e9751","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","v9.0.0","Team:DataDiscovery","v8.16.0","backport:version","v8.17.0"],"title":"[Discover] Fix loading data views in ES|QL mode","number":199099,"url":"https://github.com/elastic/kibana/pull/199099","mergeCommit":{"message":"[Discover] Fix loading data views in ES|QL mode (#199099)\n\n- Closes https://github.com/elastic/kibana/issues/199065\r\n\r\n## Summary\r\n\r\nThis PR makes sure that data views are loaded so user can view them\r\nafter switching from ES|QL mode to data view mode.\r\n\r\nLooks like it was introduced in\r\nhttps://github.com//pull/195670\r\n\r\n### Testing\r\n\r\nOn your local instance having `kibana_sample_data_logs` installed\r\n\r\n* Open a link to an ES|QL query\r\n[link](http://localhost:5601/xot/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),dataSource:(dataViewId:e3465e67bdeced2befff9f9dca7ecf9c48504cad68a10efd881f4c7dd5ade28a,type:dataView),filters:!(),interval:auto,query:(language:kuery,query:''),sort:!(!(timestamp,desc))))\r\n* Switch to classic\r\n* Open the DataView Picker, to see a list of DataViews, before this fix\r\nthere were none\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"08b83c55f64bc250a4b6d5909cfc2e46003e9751"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199099","number":199099,"mergeCommit":{"message":"[Discover] Fix loading data views in ES|QL mode (#199099)\n\n- Closes https://github.com/elastic/kibana/issues/199065\r\n\r\n## Summary\r\n\r\nThis PR makes sure that data views are loaded so user can view them\r\nafter switching from ES|QL mode to data view mode.\r\n\r\nLooks like it was introduced in\r\nhttps://github.com//pull/195670\r\n\r\n### Testing\r\n\r\nOn your local instance having `kibana_sample_data_logs` installed\r\n\r\n* Open a link to an ES|QL query\r\n[link](http://localhost:5601/xot/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:60000),time:(from:now-15m,to:now))&_a=(columns:!(),dataSource:(dataViewId:e3465e67bdeced2befff9f9dca7ecf9c48504cad68a10efd881f4c7dd5ade28a,type:dataView),filters:!(),interval:auto,query:(language:kuery,query:''),sort:!(!(timestamp,desc))))\r\n* Switch to classic\r\n* Open the DataView Picker, to see a list of DataViews, before this fix\r\nthere were none\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: Julia Rechkunova <[email protected]>\r\nCo-authored-by: Julia Rechkunova <[email protected]>","sha":"08b83c55f64bc250a4b6d5909cfc2e46003e9751"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Matthias Wilhelm <[email protected]>
- Loading branch information