Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.11] [Security Solution][Elastic AI Assistant] Updates ESQL Knowled…
…ge Base docs to latest (#169593) (#169950) # Backport This will backport the following commits from `main` to `8.11`: - [[Security Solution][Elastic AI Assistant] Updates ESQL Knowledge Base docs to latest (#169593)](#169593) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Garrett Spong","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-10-26T14:45:05Z","message":"[Security Solution][Elastic AI Assistant] Updates ESQL Knowledge Base docs to latest (#169593)\n\n## Summary\r\n\r\nIn preparation for the final `8.11` BC, this PR updates the Assistant\r\nESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nand [language\r\nfiles](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).\r\n\r\n\r\n## Update process\r\n\r\nTo update, I deleted the\r\n`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`\r\nfolder contents, then copied the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nfiles over. Then ran the below script from that directory via terminal\r\nto rename all files/directories from `kebab-case` to `snake_case` as\r\nrequired by the Kibana repo:\r\n\r\n> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv\r\n-- \"$f\" \"${f%/*}/${base//-/_}\"; done' bash {} +\r\n\r\n\r\nFor the language files, I checked those manually and copied over the\r\nentire file contents since there are only 4.\r\n\r\nWhen we do the next update, (and confirm these raw `asciidocs` are the\r\nbest format), I will create a single script that can be run for\r\nmaintenance purposes.","sha":"b0f8c5bcf02bd6f6494b3a7ddf6ba757f6f630c8","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team: SecuritySolution","Feature:Elastic AI Assistant","v8.11.0","v8.12.0"],"number":169593,"url":"https://github.com/elastic/kibana/pull/169593","mergeCommit":{"message":"[Security Solution][Elastic AI Assistant] Updates ESQL Knowledge Base docs to latest (#169593)\n\n## Summary\r\n\r\nIn preparation for the final `8.11` BC, this PR updates the Assistant\r\nESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nand [language\r\nfiles](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).\r\n\r\n\r\n## Update process\r\n\r\nTo update, I deleted the\r\n`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`\r\nfolder contents, then copied the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nfiles over. Then ran the below script from that directory via terminal\r\nto rename all files/directories from `kebab-case` to `snake_case` as\r\nrequired by the Kibana repo:\r\n\r\n> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv\r\n-- \"$f\" \"${f%/*}/${base//-/_}\"; done' bash {} +\r\n\r\n\r\nFor the language files, I checked those manually and copied over the\r\nentire file contents since there are only 4.\r\n\r\nWhen we do the next update, (and confirm these raw `asciidocs` are the\r\nbest format), I will create a single script that can be run for\r\nmaintenance purposes.","sha":"b0f8c5bcf02bd6f6494b3a7ddf6ba757f6f630c8"}},"sourceBranch":"main","suggestedTargetBranches":["8.11"],"targetPullRequestStates":[{"branch":"8.11","label":"v8.11.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169593","number":169593,"mergeCommit":{"message":"[Security Solution][Elastic AI Assistant] Updates ESQL Knowledge Base docs to latest (#169593)\n\n## Summary\r\n\r\nIn preparation for the final `8.11` BC, this PR updates the Assistant\r\nESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nand [language\r\nfiles](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).\r\n\r\n\r\n## Update process\r\n\r\nTo update, I deleted the\r\n`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`\r\nfolder contents, then copied the latest [Elasticsearch ESQL\r\ndocumentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)\r\nfiles over. Then ran the below script from that directory via terminal\r\nto rename all files/directories from `kebab-case` to `snake_case` as\r\nrequired by the Kibana repo:\r\n\r\n> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv\r\n-- \"$f\" \"${f%/*}/${base//-/_}\"; done' bash {} +\r\n\r\n\r\nFor the language files, I checked those manually and copied over the\r\nentire file contents since there are only 4.\r\n\r\nWhen we do the next update, (and confirm these raw `asciidocs` are the\r\nbest format), I will create a single script that can be run for\r\nmaintenance purposes.","sha":"b0f8c5bcf02bd6f6494b3a7ddf6ba757f6f630c8"}}]}] BACKPORT--> Co-authored-by: Garrett Spong <[email protected]>
- Loading branch information