kibana/test
Stratoula Kalafateli fcf2702c0e
[ES|QL] Enabling the timepicker for indices without the @timestamp field (#184361)
## Summary

Based on https://github.com/elastic/elasticsearch/pull/108421

Closes https://github.com/elastic/kibana/issues/180805

It allows the users to add an `?earliest` and `?latest` variable in the
ES|QL editor.

When we are detecting this variable, we are also sending the values to
ES.

- Earliest is the from value of the date picker
- Latest is the to value of the date picker


![meow](177ceafe-558d-43ea-809c-f0ec2833ec17)

Usage in bucket


![meow](8dea8188-b4e0-43e6-894e-236811374030)

This enables 2 very important features:

- I can use the values of the time picker in the bucket function
- I can use the time picker for indices without `@timestamp` field

### For reviewers
- Although it seems as a big PR, the majority of the changes happen due
to the signature change of the `getESQLAdHocDataview`
- The ML changes are mostly because the ML code has a lot of repetition.
I think the code needs to be refactored to have a central point
(preferably the `getESQLResults` from the esql-utils. I will create an
issue for the ML team.
- I am not proposing this in bucket autocomplete because it doesnt work
great in general for the date histogram case. We are working on
autocomplete improvements so I am expecting this to be part of a follow
up PR.
- I want to talk to the docs team to add it in the docs.


### Follow ups
- Change the histogram to use the bucket instead of the date_trunc
(needs investigation first)
- Speak with the docs team about adding an example on our official docs


### Flaky test runner 
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6521

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2024-07-17 16:23:16 -07:00
..
accessibility [Discover] Add support for log overview tab to Discover log profile (#186680) 2024-07-15 19:09:44 -03:00
analytics [EBT] Combine packages (#186048) 2024-06-18 14:23:16 +02:00
api_integration [ES|QL] Supports boolean in max min aggs (#188199) 2024-07-15 19:27:41 +01:00
common FTR http2 configs for security tests (#186444) 2024-06-21 20:27:24 +02:00
examples Show _ignored field in Discover (#184903) 2024-06-11 13:01:07 +02:00
functional [ES|QL] Enabling the timepicker for indices without the @timestamp field (#184361) 2024-07-17 16:23:16 -07:00
harden Update node spawn process hardening (#186786) 2024-06-26 12:06:37 -05:00
health_gateway async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_api_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_functional Unskip interactive setup functional tests (#157863) 2023-05-16 09:20:00 -04:00
interpreter_functional Use rxjs instead of rxjs/operators (#179553) 2024-04-02 11:41:33 -07:00
node_roles_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
package [CI / FIPS] Convert smoke tests to use FIPS agent (#186858) 2024-06-26 12:55:51 -07:00
plugin_functional [Global Search] Limit characters for global search bar (#186560) 2024-07-11 07:50:20 -07:00
scripts [ci] Remove jenkins config (#173745) 2023-12-21 12:09:43 -06:00
server_integration Use permanent cache for translation files on production (#181377) 2024-04-24 13:31:06 +02:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json [Console] Enable monaco by default (#184862) 2024-06-19 17:37:04 +02:00