Skip to content
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] Autocomplete suggestions improvements #176033

Open
26 of 45 tasks
stratoula opened this issue Feb 1, 2024 · 9 comments
Open
26 of 45 tasks

[ES|QL] Autocomplete suggestions improvements #176033

stratoula opened this issue Feb 1, 2024 · 9 comments
Assignees
Labels
Feature:ES|QL ES|QL related features in Kibana impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Meta Team:ESQL ES|QL related features in Kibana UX

Comments

@stratoula
Copy link
Contributor

stratoula commented Feb 1, 2024

Top priorities (in progress, recently done, or up-next)

Get rid of buggy experiences (@drewdaemon )

Preview Give feedback
  1. Feature:ES|QL Team:ESQL bug impact:low
  2. Team:ESQL impact:medium
    drewdaemon
  3. Feature:ES|QL Team:ESQL enhancement impact:medium
  4. Feature:ES|QL Team:ESQL enhancement impact:medium
    drewdaemon
  5. Team:ESQL bug impact:low
  6. Feature:ES|QL Team:ESQL bug impact:low

Improve key functions (@qn895 )

Preview Give feedback
  1. Feature:ES|QL Team:ESQL backport:skip ci:cloud-deploy release_note:enhancement v8.16.0
    qn895

Improve field metadata display (@qn895 )

Preview Give feedback
  1. Feature:ES|QL Team:ESQL enhancement impact:high
    qn895

Improve core metadata (@qn895 )

Preview Give feedback

Improve command suggestions

Preview Give feedback

Other ideas (blocked, not currently planned, or just ideas for the future)

Function helpers

Preview Give feedback
  1. Team:ESQL enhancement impact:medium usability
  2. Team:ESQL enhancement impact:low

Smarter suggest

Preview Give feedback
  1. Team:ESQL enhancement impact:low

Environmental / Authoring helpers

Preview Give feedback

Syntactical papercuts

Preview Give feedback
  1. Team:ESQL enhancement impact:low
  2. Team:ESQL enhancement impact:low

Related, previously issues

  • Support data_part as proposed in docs
    These date functions can be very tricky so we would like to help our users a bit with autocomplete. It would be great if we could suggest the date_part as proposed on our official documentation
@stratoula stratoula changed the title [ES|QL] I [ES|QL] Autocomplete suggestions improvements Feb 1, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Feb 1, 2024
@stratoula stratoula added Meta Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:ES|QL ES|QL related features in Kibana and removed needs-team Issues missing a team label labels Feb 1, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations (Team:Visualizations)

@stratoula stratoula added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label Feb 1, 2024
@dej611
Copy link
Contributor

dej611 commented Feb 20, 2024

These date functions can be very tricky so we would like to help our users a bit with autocomplete. It would be great if we could suggest the date_part as proposed on our official documentation

This is done already in 8.13

Screenshot 2024-02-20 at 15 46 50

@stratoula stratoula added Team:ESQL ES|QL related features in Kibana and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Mar 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

@dej611
Copy link
Contributor

dej611 commented Mar 29, 2024

Drop here suggests the avg(bytes) which is wrong as with the previous keep I am only keeping one column

this is by design right now.
All location information about variables are stored but the engine is not pruning variables after stats, keep, rename or drop. All column utility functions should take those into account (same apply for validation feature as well).

@ryankeairns ryankeairns added the UX label Jun 4, 2024
@dej611
Copy link
Contributor

dej611 commented Jun 17, 2024

Meta command is being suggested after the source command 🐛

Screenshot 2024-06-17 at 17 34 32

@stratoula
Copy link
Contributor Author

@drewdaemon when we start working on it can we prioritze the bucket autocomplete? I expect this to be a very popular function (date histogram) and the syntax is quite complicated so I would love to offer a better experience to our users

@dej611
Copy link
Contributor

dej611 commented Jun 26, 2024

Remove not-very-useful 'Read more' on fields/variables - Currently, the same 'Read more' text is shown on every field/variable. It is both redundant and lacking useful information; therefore, we should consider disabling it.

Why not showing the type of the field? Unless the user is super familiar with the index it is unlickely to remember all field types.

@stratoula
Copy link
Contributor Author

Why not showing the type of the field? Unless the user is super familiar with the index it is unlickely to remember all field types.

Let's sync first @drewdaemon before we do this, I have another idea for this. (ECS schema information).

@dej611
Copy link
Contributor

dej611 commented Jun 27, 2024

It's a markdown string, I do not see how the two can conflicts.
Something like:

Type: ...
[ECS: ...] // if available

Would apply to all scenarios, also non ECS ones.

qn895 added a commit that referenced this issue Sep 5, 2024
## Summary

Part of #176033. This PR adds
`All (*)` item in list of suggestions for `STATS ... COUNT(/)`



https://github.com/user-attachments/assets/e303817a-3664-4838-aec6-843d1ef75e1f


### Checklist

Delete any items that are not applicable to this PR.

- [ ] 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)
- [ ]
[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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] 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)
- [ ] 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))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
@qn895 qn895 self-assigned this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ES|QL ES|QL related features in Kibana impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Meta Team:ESQL ES|QL related features in Kibana UX
Projects
None yet
Development

No branches or pull requests

6 participants