kibana/examples/esql_ast_inspector
Kibana Machine 2230a55278
[8.x] [ES|QL] Add`SORT` command mutation APIs (#197185) (#198440)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ES|QL] Add`SORT` command mutation APIs
(#197185)](https://github.com/elastic/kibana/pull/197185)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Vadim
Kibana","email":"82822460+vadimkibana@users.noreply.github.com"},"sourceCommit":{"committedDate":"2024-10-30T20:34:57Z","message":"[ES|QL]
Add`SORT` command mutation APIs (#197185)\n\n## Summary\r\n\r\nPartially
addresses https://github.com/elastic/kibana/issues/191812\r\n\r\n- Adds
traversal and manipulation APIs for `SORT` command.\r\n -
`commands.sort.listCommands()`\r\n - `commands.sort.getCommand()`\r\n -
`commands.sort.list()`\r\n - `commands.sort.findByPredicate()`\r\n -
`commands.sort.find()`\r\n - `commands.sort.remove()`\r\n -
`commands.sort.insertIntoCommand()`\r\n -
`commands.sort.insertExpression()`\r\n -
`commands.sort.insertCommand()`\r\n- Refactors \"generic\" AST
manipulation routines into (1) `commands`, (2)\r\n`commands.args`, (3)
`commands.options`.\r\n - `generic.commands.*`\r\n -
`generic.commands.args.*`\r\n -
`generic.commands.options.*`\r\n\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n\r\n---------\r\n\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"0cc89457124f9cefbdd08766a7a22b1c4bdcc440","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["review","release_note:skip","v9.0.0","backport:prev-minor","Feature:ES|QL","Team:ESQL","v8.17.0"],"title":"[ES|QL]
Add`SORT` command mutation
APIs","number":197185,"url":"https://github.com/elastic/kibana/pull/197185","mergeCommit":{"message":"[ES|QL]
Add`SORT` command mutation APIs (#197185)\n\n## Summary\r\n\r\nPartially
addresses https://github.com/elastic/kibana/issues/191812\r\n\r\n- Adds
traversal and manipulation APIs for `SORT` command.\r\n -
`commands.sort.listCommands()`\r\n - `commands.sort.getCommand()`\r\n -
`commands.sort.list()`\r\n - `commands.sort.findByPredicate()`\r\n -
`commands.sort.find()`\r\n - `commands.sort.remove()`\r\n -
`commands.sort.insertIntoCommand()`\r\n -
`commands.sort.insertExpression()`\r\n -
`commands.sort.insertCommand()`\r\n- Refactors \"generic\" AST
manipulation routines into (1) `commands`, (2)\r\n`commands.args`, (3)
`commands.options`.\r\n - `generic.commands.*`\r\n -
`generic.commands.args.*`\r\n -
`generic.commands.options.*`\r\n\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n\r\n---------\r\n\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"0cc89457124f9cefbdd08766a7a22b1c4bdcc440"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197185","number":197185,"mergeCommit":{"message":"[ES|QL]
Add`SORT` command mutation APIs (#197185)\n\n## Summary\r\n\r\nPartially
addresses https://github.com/elastic/kibana/issues/191812\r\n\r\n- Adds
traversal and manipulation APIs for `SORT` command.\r\n -
`commands.sort.listCommands()`\r\n - `commands.sort.getCommand()`\r\n -
`commands.sort.list()`\r\n - `commands.sort.findByPredicate()`\r\n -
`commands.sort.find()`\r\n - `commands.sort.remove()`\r\n -
`commands.sort.insertIntoCommand()`\r\n -
`commands.sort.insertExpression()`\r\n -
`commands.sort.insertCommand()`\r\n- Refactors \"generic\" AST
manipulation routines into (1) `commands`, (2)\r\n`commands.args`, (3)
`commands.options`.\r\n - `generic.commands.*`\r\n -
`generic.commands.args.*`\r\n -
`generic.commands.options.*`\r\n\r\n\r\n### Checklist\r\n\r\nDelete any
items that are not applicable to this PR.\r\n\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\r\n\r\n### For
maintainers\r\n\r\n- [x] This was checked for breaking API changes and
was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#_add_your_labels)\r\n\r\n---------\r\n\r\nCo-authored-by:
Stratoula Kalafateli
<efstratia.kalafateli@elastic.co>","sha":"0cc89457124f9cefbdd08766a7a22b1c4bdcc440"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
2024-10-30 17:16:07 -05:00
..
.storybook [8.x] [ES|QL] Comment parsing and pretty-printing (#192173) (#194117) 2024-09-26 07:31:50 -05:00
public [8.x] [ES|QL] Add&#x60;SORT&#x60; command mutation APIs (#197185) (#198440) 2024-10-30 17:16:07 -05:00
kibana.jsonc [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00
README.md [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00
tsconfig.json [ES|QL] add AST inspector to examples (#182720) 2024-05-10 13:47:06 -05:00

esql_ast_inspector

ES|QL AST inspector tool

To run this example, start kibana with the --run-examples flag.

yarn start --run-examples