-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ES|QL] Query History #173217
Comments
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
@stratoula , @timductive and @MichaelMarcialis - I have updated this issue with the main user stories and details. Take a look. |
Capturing some design clarifications from a Slack/EUI thread on the main 'Run query' button. With the One Discover/ES|QL-first efforts we are also considering changes to the Run button (granted, it is earlier on).
Once the EUI side of this is done (enabling overrides of the button text), we can then make the following overrides on the Kibana side:
End result for this pass: Later, we can consider further evolving the styles (e.g. to green, maybe icon-only) as the other initiatives progress. |
Pinging @elastic/kibana-esql (Team:ESQL) |
## Summary Closes #173217 Implements the query history component in the ESQL editor. The query history component displays the 20 most recent queries and it doesn't duplicate. If the user reruns a query it will update an existing one and not create a new entry. <img width="1676" alt="image" src="https://github.com/elastic/kibana/assets/17003240/23c8822d-3520-4952-b6cf-9cf7bb486389"> <img width="1678" alt="image" src="https://github.com/elastic/kibana/assets/17003240/3fdeccbc-5763-46c6-a940-e2b39dd95179"> ### Important notes Right now, the query history component has been implemented at: - Unified search ES|QL editor - Lens inline editing component - Alerts - Maps I have hid it from ML data visualizer because it was very difficult to implement it there. There is a quite complex logic fetching the fields statistics so it was a bit complicated to add it there. ML team can follow up as they know the logic already and would be easier for them to adjust. #### Flajy test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5553 ### Checklist Delete any items that are not applicable to this PR. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [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 changed - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) - [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server)) - [x] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers) --------- Co-authored-by: kibanamachine <[email protected]>
The query history feature aims to enhance user experience in ES|QL by providing a list of recently executed queries to the user.
There are six main user stories for this MVP release of this feature, and they are described below:
Note
The query history will be available in these ES|QL editors:
Storage:
Storing successful vs errored queries:
The reason for not storing many errored queries is that many new users would have syntax errors while learning ESIQL and it would pollute the limited query history items with irrelevant items.
The text was updated successfully, but these errors were encountered: