Commit d77dc36
[ES|QL] Supports multi values variables in MV_CONTAINS (elastic#239266)
## Summary
Closes elastic#237228
Supports multivalue support when the user uses the variable in
mv_contains both in Discover and Dashboards.

As the issue indicates:
- Included a multi-select option only when creating a control for
multivalues either static values or values from a query
- This is not possible for fields (??field)
- The multi-select option is OFF by default unless the user creates the
variable control coming from the `MV_CONTAINS` function
- Supported for both Discover and Dashboard
- Based on the existing controls functionality for multi-selections
<img width="550" height="228" alt="image"
src="https://github.com/user-attachments/assets/58c6c17b-56a7-41c4-b6b6-d1fc00c314dd"
/>
<img width="542" height="683" alt="image"
src="https://github.com/user-attachments/assets/c18cea19-f7b1-46e2-a001-79de3d9396c5"
/>
### Checklist
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed1 parent 57ba326 commit d77dc36
File tree
27 files changed
+522
-79
lines changed- src/platform
- packages
- private/kbn-esql-editor/src
- test/functional
- apps/discover/tabs
- services
27 files changed
+522
-79
lines changedLines changed: 21 additions & 50 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
389 | 360 | | |
390 | 361 | | |
391 | 362 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| 514 | + | |
514 | 515 | | |
515 | 516 | | |
516 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| 371 | + | |
371 | 372 | | |
372 | 373 | | |
373 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
690 | 695 | | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7582 | 7582 | | |
7583 | 7583 | | |
7584 | 7584 | | |
| 7585 | + | |
7585 | 7586 | | |
7586 | 7587 | | |
7587 | 7588 | | |
| |||
7597 | 7598 | | |
7598 | 7599 | | |
7599 | 7600 | | |
| 7601 | + | |
7600 | 7602 | | |
7601 | 7603 | | |
7602 | 7604 | | |
| |||
7612 | 7614 | | |
7613 | 7615 | | |
7614 | 7616 | | |
| 7617 | + | |
7615 | 7618 | | |
7616 | 7619 | | |
7617 | 7620 | | |
| |||
7627 | 7630 | | |
7628 | 7631 | | |
7629 | 7632 | | |
| 7633 | + | |
7630 | 7634 | | |
7631 | 7635 | | |
7632 | 7636 | | |
| |||
7642 | 7646 | | |
7643 | 7647 | | |
7644 | 7648 | | |
| 7649 | + | |
7645 | 7650 | | |
7646 | 7651 | | |
7647 | 7652 | | |
| |||
7657 | 7662 | | |
7658 | 7663 | | |
7659 | 7664 | | |
| 7665 | + | |
7660 | 7666 | | |
7661 | 7667 | | |
7662 | 7668 | | |
| |||
7672 | 7678 | | |
7673 | 7679 | | |
7674 | 7680 | | |
| 7681 | + | |
7675 | 7682 | | |
7676 | 7683 | | |
7677 | 7684 | | |
| |||
7687 | 7694 | | |
7688 | 7695 | | |
7689 | 7696 | | |
| 7697 | + | |
7690 | 7698 | | |
7691 | 7699 | | |
7692 | 7700 | | |
| |||
7702 | 7710 | | |
7703 | 7711 | | |
7704 | 7712 | | |
| 7713 | + | |
7705 | 7714 | | |
7706 | 7715 | | |
7707 | 7716 | | |
| |||
7717 | 7726 | | |
7718 | 7727 | | |
7719 | 7728 | | |
| 7729 | + | |
7720 | 7730 | | |
7721 | 7731 | | |
7722 | 7732 | | |
| |||
7732 | 7742 | | |
7733 | 7743 | | |
7734 | 7744 | | |
| 7745 | + | |
7735 | 7746 | | |
7736 | 7747 | | |
7737 | 7748 | | |
| |||
7747 | 7758 | | |
7748 | 7759 | | |
7749 | 7760 | | |
| 7761 | + | |
7750 | 7762 | | |
7751 | 7763 | | |
7752 | 7764 | | |
| |||
7762 | 7774 | | |
7763 | 7775 | | |
7764 | 7776 | | |
| 7777 | + | |
7765 | 7778 | | |
7766 | 7779 | | |
7767 | 7780 | | |
| |||
7777 | 7790 | | |
7778 | 7791 | | |
7779 | 7792 | | |
| 7793 | + | |
7780 | 7794 | | |
7781 | 7795 | | |
7782 | 7796 | | |
| |||
7792 | 7806 | | |
7793 | 7807 | | |
7794 | 7808 | | |
| 7809 | + | |
7795 | 7810 | | |
7796 | 7811 | | |
7797 | 7812 | | |
| |||
7807 | 7822 | | |
7808 | 7823 | | |
7809 | 7824 | | |
| 7825 | + | |
7810 | 7826 | | |
7811 | 7827 | | |
7812 | 7828 | | |
| |||
7822 | 7838 | | |
7823 | 7839 | | |
7824 | 7840 | | |
| 7841 | + | |
7825 | 7842 | | |
7826 | 7843 | | |
7827 | 7844 | | |
| |||
7837 | 7854 | | |
7838 | 7855 | | |
7839 | 7856 | | |
| 7857 | + | |
7840 | 7858 | | |
7841 | 7859 | | |
7842 | 7860 | | |
| |||
7852 | 7870 | | |
7853 | 7871 | | |
7854 | 7872 | | |
| 7873 | + | |
7855 | 7874 | | |
7856 | 7875 | | |
7857 | 7876 | | |
| |||
7867 | 7886 | | |
7868 | 7887 | | |
7869 | 7888 | | |
| 7889 | + | |
7870 | 7890 | | |
7871 | 7891 | | |
7872 | 7892 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
209 | 212 | | |
210 | 213 | | |
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
164 | 172 | | |
165 | | - | |
| 173 | + | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| |||
0 commit comments