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] Improve autocomplete based on context #166098

Closed
dej611 opened this issue Sep 8, 2023 · 3 comments
Closed

[ES|QL] Improve autocomplete based on context #166098

dej611 opened this issue Sep 8, 2023 · 3 comments
Assignees
Labels
enhancement New value added to drive a business result 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. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented Sep 8, 2023

Describe the feature:

It would be nice to have a better experience with autocomplete, with particular care of context before proposing suggestions to the user.
For instance, here some ideas:

  • when the user is typing within a function it would be nice to have suggestions based on the specific function and argument position:
eval then = n + date_trunc( // <= should suggest "1 year" or any other durational unit
eval then = n + date_trunc(1 year, // <= should suggest only fields of type "date" here
eval b = abs( <= should suggest only fields of number type here
  • be aware of the "duration" mode in EVAL and provide better suggestions in this context

    from logstash-* | limit 10 | eval myVar = abs(bytes) * // <= should suggest also functions here
    
  • should propose comma options where possible

    • for commands who support it
    • for functions with multiple arguments

...to be updated...

Describe a specific use case for the feature:

@dej611 dej611 added enhancement New value added to drive a business result Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:ES|QL ES|QL related features in Kibana labels Sep 8, 2023
@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 Sep 8, 2023
@dej611
Copy link
Contributor Author

dej611 commented Sep 22, 2023

Handled as part of #166242

@dej611 dej611 self-assigned this Sep 22, 2023
@dej611
Copy link
Contributor Author

dej611 commented Dec 21, 2023

Closing as solved by #170071

@dej611 dej611 closed this as completed Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result 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. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants