-
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
[Step 2][ESQL] Autocomplete part #148006
[Step 2][ESQL] Autocomplete part #148006
Conversation
aff9f0f
to
da94ab1
Compare
70e74a8
to
ed43d31
Compare
f3b07e5
to
eb8e5eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexwizp this is soooo cool ❤️ Some comments:
- When I select a field for avg it adds this with "". Can we remove the "" because esql returns an error?
- When I select the avg can I then immediately suggest the available fields? Because now I have to type a character to see the list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works great!!
I tested it on the ESQL branch and works amazing
Can we
- Move all the monaco esql updates on a PR to target main as we already have them there and won't affect anything
- After merging in main, add the unified search changes into the feature branch
Last comments @alexwizp sorry!
|
YES! Now it works great ❤️ |
## Summary Autocomplete support for ESQL lang. Initially target branch for that PR was [elastic:feature-esql](https://github.com/elastic/kibana/tree/feature-esql) but then we decided to merge it separately. This PR is as copy of #148006 ## Notes: Important: please do `yarn kbn clean & yarn kbn bootstrap` before testing. ## How to update syntax. `antlr` syntax was copied from `ES` and was slightly modified. In case if you need to update it please follow next steps: - modify `esql_parser.g4 `and/or `esql_lexer.g4` files - go to `kbn-monaco` package and execute `bazel clean & npm run build:antlr4ts:painless` - go to /painless_parser.ts file and revert the following change: <img width="478" alt="image" src="https://user-images.githubusercontent.com/20072247/209540586-bb77cad1-a6f0-42fa-9875-025bd4afbace.png"> - do `yarn kbn bootstrap`
@elasticmachine merge upstream |
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Autocomplete support for ESQL lang.
Notes:
Important: please do
yarn kbn clean & yarn kbn bootstrap
before testing.How to update syntax.
antlr
syntax was copied fromES
and was slightly modified. In case if you need to update it please follow next steps:esql_parser.g4
and/oresql_lexer.g4
fileskbn-monaco
package and executebazel clean & npm run build:antlr4ts:painless
yarn kbn bootstrap
Checklist