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

[Security Solution][Elastic AI Assistant] Updates ESQL Knowledge Base docs to latest #169593

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

spong
Copy link
Member

@spong spong commented Oct 23, 2023

Summary

In preparation for the final 8.11 BC, this PR updates the Assistant ESQL Knowledge Base docs to match that of the latest Elasticsearch ESQL documentation and language files.

Update process

To update, I deleted the x-pack/plugins/elastic_assistant/server/knowledge_base/documentation folder contents, then copied the latest Elasticsearch ESQL documentation files over. Then ran the below script from that directory via terminal to rename all files/directories from kebab-case to snake_case as required by the Kibana repo:

find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv -- "$f" "${f%/*}/${base//-/_}"; done' bash {} +;

For the language files, I checked those manually and copied over the entire file contents since there are only 4.

When we do the next update, (and confirm these raw asciidocs are the best format), I will create a single script that can be run for maintenance purposes.

@spong spong added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Feature:Security Assistant Security Assistant v8.11.0 v8.12.0 labels Oct 23, 2023
@spong spong self-assigned this Oct 23, 2023
@spong spong requested a review from a team as a code owner October 23, 2023 21:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@github-actions
Copy link
Contributor

Documentation preview:

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @spong

@spong spong merged commit b0f8c5b into elastic:main Oct 26, 2023
28 checks passed
@spong spong deleted the update-latest-kb-docs branch October 26, 2023 14:45
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 26, 2023
… docs to latest (elastic#169593)

## Summary

In preparation for the final `8.11` BC, this PR updates the Assistant
ESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
and [language
files](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).

## Update process

To update, I deleted the
`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`
folder contents, then copied the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
files over. Then ran the below script from that directory via terminal
to rename all files/directories from `kebab-case` to `snake_case` as
required by the Kibana repo:

> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv
-- "$f" "${f%/*}/${base//-/_}"; done' bash {} +

For the language files, I checked those manually and copied over the
entire file contents since there are only 4.

When we do the next update, (and confirm these raw `asciidocs` are the
best format), I will create a single script that can be run for
maintenance purposes.

(cherry picked from commit b0f8c5b)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.11

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 26, 2023
…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":"spong@users.noreply.github.com"},"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 <spong@users.noreply.github.com>
bryce-b pushed a commit to bryce-b/kibana that referenced this pull request Oct 30, 2023
… docs to latest (elastic#169593)

## Summary

In preparation for the final `8.11` BC, this PR updates the Assistant
ESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
and [language
files](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).


## Update process

To update, I deleted the
`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`
folder contents, then copied the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
files over. Then ran the below script from that directory via terminal
to rename all files/directories from `kebab-case` to `snake_case` as
required by the Kibana repo:

> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv
-- "$f" "${f%/*}/${base//-/_}"; done' bash {} +


For the language files, I checked those manually and copied over the
entire file contents since there are only 4.

When we do the next update, (and confirm these raw `asciidocs` are the
best format), I will create a single script that can be run for
maintenance purposes.
awahab07 pushed a commit to awahab07/kibana that referenced this pull request Oct 31, 2023
… docs to latest (elastic#169593)

## Summary

In preparation for the final `8.11` BC, this PR updates the Assistant
ESQL Knowledge Base docs to match that of the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
and [language
files](https://github.com/elastic/elasticsearch/tree/f883dd98566c1f8ffa34779c9949eaeb27596014/x-pack/plugin/esql/src/main/antlr).


## Update process

To update, I deleted the
`x-pack/plugins/elastic_assistant/server/knowledge_base/documentation`
folder contents, then copied the latest [Elasticsearch ESQL
documentation](https://github.com/elastic/elasticsearch/tree/main/docs/reference/esql)
files over. Then ran the below script from that directory via terminal
to rename all files/directories from `kebab-case` to `snake_case` as
required by the Kibana repo:

> find . -depth -name '*-*' -exec bash -c 'for f; do base=${f##*/}; mv
-- "$f" "${f%/*}/${base//-/_}"; done' bash {} +


For the language files, I checked those manually and copied over the
entire file contents since there are only 4.

When we do the next update, (and confirm these raw `asciidocs` are the
best format), I will create a single script that can be run for
maintenance purposes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Security Assistant Security Assistant release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.11.0 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants