-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Automatic Migrations] Dashboard migration agent initial Implementation #232637
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
Closed
logeekal
wants to merge
61
commits into
elastic:main
from
logeekal:feat/automatic_migration_dashboard_agent
Closed
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
e5e9bd7
abstract task and data clients
semd 94d839d
data service changes
semd eba0139
filter queries
semd d6b68b6
dsl queries
semd c040df4
agent tools extracted
semd d64a9c6
dashboards agent graph initial implementation
semd 901abbe
graph executing
semd 2f3b84d
fix selectIndexPatterns
semd dee3f06
fix: removed dashboard changes
logeekal 16dd7ee
fix: types
logeekal 69edfde
fix: types after rebase
logeekal 62a2d60
fix: resource retriever types
logeekal 5eaf603
fix: integration tests
logeekal 00cd2c5
abstract task and data clients
semd 9f516c9
Rename RuleTranslationResult --> MigrationTranslationResult
logeekal 9f048da
fix: types + async generic classes PR + missing Resources
logeekal c8e1575
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine f66a46c
fix: types
logeekal 3d91676
fix: Task runner as dependency of Evaluator
logeekal 77f8000
fix: evaluator types
logeekal d7dda52
fix: remove migration.gen.ts
logeekal e1fa012
inference chat model
semd b25713c
fix: consolidate resource types
logeekal 2278c26
fix: evaluator and task types
logeekal 6796403
fix: types
logeekal e000e15
fix: missing_index issue
logeekal 9024d6a
fix: RuleMigrationsTaskClient
logeekal 16b6aee
fix: StartMigrationsBody
logeekal b90c22a
remove old chat model classes
semd d394abd
Merge main --> current branch
logeekal 21061c3
fix: pr review
logeekal 26c2408
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine 88469ab
chores: pr review
logeekal 4d4b1ce
new create_descriptions node
semd 1c448c6
Merge branch 'main' into automatic_migrations_generic_task
logeekal 1e579fc
fix: action client chat
logeekal 52f7c49
merge main --> current branch
logeekal d0f9250
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 0be7403
[CI] Auto-commit changed files from 'yarn openapi:generate'
kibanamachine 4ff87b1
fix: merge mistakes
logeekal 965265d
fix: tsconfig
logeekal bffeaa4
fix: remove unnecesary type
logeekal 9166d7a
solve conflicts one
semd ff15345
solve conflicts two
semd b73eee9
update diagram
semd 1943081
solve more coflicts
semd 1b9efad
use missing index pattern placeholder
semd 409d62f
common constant for missing index pattern placeholder
semd d41ea9b
fix ECS mapping
semd edcc2c9
constant
semd 1a452c6
conflicts solved
semd 88b41f5
fix type errors
semd 439e3a6
[CI] Auto-commit changed files from 'node scripts/eslint_all_files --…
kibanamachine fe033d3
fix tests
semd 1ac2ba2
Merge remote-tracking branch 'refs/remotes/logeekal/feat/automatic_mi…
semd 86652af
unify prompts
semd bc2f2bc
abstract some classes
semd 1045345
address TODOs left
semd 1eef96d
add comments
semd 171664f
fix empty panels scenario
semd cc8ebc7
remove custom invocationConfig from evaluation
semd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-73.6 KB
...ions/security/plugins/security_solution/docs/siem_migration/img/agent_graph.png
Binary file not shown.
Binary file modified
BIN
+8.02 KB
(120%)
...s/security_solution/docs/siem_migration/img/dashboard_migration_agent_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...lutions/security/plugins/security_solution/server/lib/siem_migrations/common/constants.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| /** The index pattern placeholder used when translated queries can not determine the correct index pattern */ | ||
| export const MISSING_INDEX_PATTERN_PLACEHOLDER = '[indexPattern]'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
...ion/server/lib/siem_migrations/common/task/agent/helpers/fix_esql_query_errors/prompts.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { ChatPromptTemplate } from '@langchain/core/prompts'; | ||
|
|
||
| export const RESOLVE_ESQL_ERRORS_TEMPLATE = | ||
| ChatPromptTemplate.fromTemplate(`You are a helpful ES|QL (Elasticsearch Query Language) expert agent. | ||
| Your task is to fix the errors in the ES|QL query provided. | ||
|
|
||
| <guidelines> | ||
| - You will be provided with a ES|QL query and its related errors. | ||
| - Try to fix the errors in the ES|QL query as best as you can to make it work. | ||
| - You must respond only with the modified query inside a \`\`\`esql code block, nothing else similar to the example response below. | ||
| </guidelines> | ||
|
|
||
| <context> | ||
|
|
||
| <esql_errors> | ||
| {esql_errors} | ||
| </esql_errors> | ||
|
|
||
| <esql_query> | ||
| {esql_query} | ||
| </esql_query> | ||
|
|
||
| </context> | ||
| `); |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.