Commit 546bdff
# Backport
This will backport the following commits from `main` to `8.19`:
- [[ES|QL] Fixes the columns selection in Lens when there are ES|QL
variables (#221083)](#221083)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-05-21T16:11:37Z","message":"[ES|QL]
Fixes the columns selection in Lens when there are ES|QL variables
(#221083)\n\n## Summary\n\nIt fixes the problem described in the PR.
Specifically when you have a\nvariable in your esql query and you try to
select extra columns. Because\nwe were not passing the esql Variables,
the query failed and the columns\narray was empty.\n\nThis PR is passing
the dashboard variables in the component, and now the\nquery runs
successfully\n\n<img width=\"616\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cd009af9-9465-48cd-bb3b-918c3a872cff\"\n/>\n
\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6fa3152f2773890e4bf721b9149b875ece83f45c","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","Feature:ES|QL","backport:version","v9.1.0","v8.19.0","v8.18.2"],"title":"[ES|QL]
Fixes the columns selection in Lens when there are ES|QL
variables","number":221083,"url":"https://github.com/elastic/kibana/pull/221083","mergeCommit":{"message":"[ES|QL]
Fixes the columns selection in Lens when there are ES|QL variables
(#221083)\n\n## Summary\n\nIt fixes the problem described in the PR.
Specifically when you have a\nvariable in your esql query and you try to
select extra columns. Because\nwe were not passing the esql Variables,
the query failed and the columns\narray was empty.\n\nThis PR is passing
the dashboard variables in the component, and now the\nquery runs
successfully\n\n<img width=\"616\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cd009af9-9465-48cd-bb3b-918c3a872cff\"\n/>\n
\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6fa3152f2773890e4bf721b9149b875ece83f45c"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221083","number":221083,"mergeCommit":{"message":"[ES|QL]
Fixes the columns selection in Lens when there are ES|QL variables
(#221083)\n\n## Summary\n\nIt fixes the problem described in the PR.
Specifically when you have a\nvariable in your esql query and you try to
select extra columns. Because\nwe were not passing the esql Variables,
the query failed and the columns\narray was empty.\n\nThis PR is passing
the dashboard variables in the component, and now the\nquery runs
successfully\n\n<img width=\"616\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cd009af9-9465-48cd-bb3b-918c3a872cff\"\n/>\n
\n\n### Checklist\n- [ ] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common
scenarios","sha":"6fa3152f2773890e4bf721b9149b875ece83f45c"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Co-authored-by: Stratoula Kalafateli <[email protected]>
1 parent c633030 commit 546bdff
File tree
4 files changed
+97
-1
lines changed4 files changed
+97
-1
lines changedLines changed: 79 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
| 128 | + | |
125 | 129 | | |
126 | 130 | | |
127 | 131 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
| |||
814 | 824 | | |
815 | 825 | | |
816 | 826 | | |
| 827 | + | |
817 | 828 | | |
818 | 829 | | |
819 | 830 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
673 | 674 | | |
674 | 675 | | |
675 | 676 | | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| |||
0 commit comments