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 GenAI] Re-add telemetry for isEnabledKnowledgeBase #192785

Merged
merged 4 commits into from
Sep 13, 2024

Conversation

stephmilovic
Copy link
Contributor

@stephmilovic stephmilovic commented Sep 12, 2024

Summary

isEnabledKnowledgeBase was removed from the browser side event Assistant Message Sent and the server side events invoke_assistant_success/invoke_assistant_error . When we originally merged the KB work, we were under the impression KB would be installed by default. At the last minute in 8.15 release cycle, it was decided that enabling it automatically can have cost concerns, so we opted for the button. We forgot to go back and re-add the isEnabledKnowledgeBase property. This PR addresses that.

Screenshot 2024-09-12 at 4 12 14 PM Screenshot 2024-09-12 at 2 08 33 PM

@stephmilovic stephmilovic added release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Security Generative AI Security Generative AI v8.16.0 v8.15.2 labels Sep 12, 2024
@stephmilovic stephmilovic requested review from a team as code owners September 12, 2024 22:15
@elasticmachine
Copy link
Contributor

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

Copy link
Member

@spong spong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM! Left a couple notes about a slight difference between client/server checks and a conflict we'll see when backporting to 8.15.2, but overall everything looks 👍 to me.

@stephmilovic
Copy link
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/elastic-assistant 132 133 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 20.3MB 20.3MB +249.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 86.9KB 87.0KB +88.0B
Unknown metric groups

API count

id before after diff
@kbn/elastic-assistant 158 159 +1

History

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

@stephmilovic stephmilovic merged commit cabaf7a into elastic:main Sep 13, 2024
39 checks passed
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Sep 13, 2024
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 192785

Questions ?

Please refer to the Backport tool documentation

stephmilovic added a commit to stephmilovic/kibana that referenced this pull request Sep 13, 2024
…ic#192785)

(cherry picked from commit cabaf7a)

# Conflicts:
#	x-pack/packages/kbn-elastic-assistant/impl/assistant/chat_send/use_chat_send.tsx
#	x-pack/plugins/elastic_assistant/server/routes/helpers.ts
#	x-pack/plugins/elastic_assistant/server/routes/post_actions_connector_execute.ts
@stephmilovic
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.15

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 Sep 14, 2024
…ase` (#192785) (#192937)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Security GenAI] Re-add telemetry for
`isEnabledKnowledgeBase`
(#192785)](#192785)

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

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

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2024-09-13T23:17:08Z","message":"[Security
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","Team:Security Generative
AI","v8.16.0","v8.15.2"],"title":"[Security GenAI] Re-add telemetry for
`isEnabledKnowledgeBase`","number":192785,"url":"#192785
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x","8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"#192785
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.15","label":"v8.15.2","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
stephmilovic added a commit that referenced this pull request Sep 15, 2024
…#192785) (#192938)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[Security GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)](#192785)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Steph
Milovic","email":"stephanie.milovic@elastic.co"},"sourceCommit":{"committedDate":"2024-09-13T23:17:08Z","message":"[Security
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","Team:Security Generative
AI","v8.16.0","v8.15.2"],"number":192785,"url":"#192785
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"#192785
GenAI] Re-add telemetry for `isEnabledKnowledgeBase`
(#192785)","sha":"cabaf7a0774cda8775c059c36b7db7679ca19d8a"}},{"branch":"8.x","label":"v8.16.0","labelRegex":"^v8.16.0$","isSourceBranch":false,"url":"#192937"}]}]
BACKPORT-->

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
markov00 pushed a commit to markov00/kibana that referenced this pull request Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Security Generative AI Security Generative AI Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.15.2 v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants