-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Add UUID to RuleAction #148038
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
Merged
Merged
Add UUID to RuleAction #148038
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
6730ec6
Add UUID to RuleAction
ersin-erdal aeb5c52
Add Normalised RuleAction with optional uuid
ersin-erdal 7d06388
Merge branch 'main' into action-uuid
ersin-erdal 9f5f08b
[CI] Auto-commit changed files from 'node scripts/ts_project_linter -…
kibanamachine b465b41
fix synthetics
ersin-erdal ebf16e2
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 71856db
fix synthetics
ersin-erdal e998913
refactor uuid creation
ersin-erdal 98640a9
[CI] Auto-commit changed files from 'node scripts/ts_project_linter -…
kibanamachine 81064d2
fix synthetics
ersin-erdal 5e2d374
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 27a8c78
fix functional tests
ersin-erdal f125d45
[CI] Auto-commit changed files from 'node scripts/notice'
kibanamachine 0439879
remove uuid from legacy
ersin-erdal 33aae24
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 8c5714a
remove uuid from legacy
ersin-erdal 2752ca1
Merge branch 'main' into action-uuid
ersin-erdal 0cd5b88
add migration script
ersin-erdal a82b962
remove filter from migrations
ersin-erdal b2456fb
merge main
ersin-erdal 5e3176f
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine e13b491
fix check type
ersin-erdal 100a61d
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 2d81fa7
fix check type
ersin-erdal 3aebc97
move uuid creation to rules_client
ersin-erdal 2161600
fix test
ersin-erdal 9b7c782
Merge branch 'main' into action-uuid
ersin-erdal 7c54564
enable migration
ersin-erdal bbee16b
increase limit
ersin-erdal 7f8a13c
fix migration tests
ersin-erdal a5aba90
remove NormalizedAlertActionOptionalUuid
ersin-erdal dd7efb2
Merge branch 'main' into action-uuid
ersin-erdal 325b904
Merge branch 'main' into action-uuid
ersin-erdal af4be1c
Merge branch 'main' into action-uuid
ersin-erdal 8cf70a6
Merge branch 'main' into action-uuid
ersin-erdal 4ec5a9e
fix nits and add unit tests for bulk_edit and update
ersin-erdal 1468812
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal ebdd607
merge main
ersin-erdal 214f464
fix legacy_types
ersin-erdal 1b5a553
fix nit
ersin-erdal 2274b8f
Remove type castings
ersin-erdal b6fe2d4
Remove validation step from legacy APIs
ersin-erdal 3a26996
merge main
ersin-erdal 2c14ebb
Merge branch 'main' into action-uuid
ersin-erdal 5f00b81
fix expect type
ersin-erdal 7e250ea
make uuid optional in create rule
ersin-erdal a2a93db
fix tests
ersin-erdal defabcd
Merge branch 'main' into action-uuid
ersin-erdal 343f75e
reset security solutions changes
ersin-erdal eaa1130
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 3565146
reset security solutions changes
ersin-erdal f2b8c44
Merge branch 'main' into action-uuid
ersin-erdal 6d0e948
reset security solutions changes
ersin-erdal b78c692
Merge branch 'main' into action-uuid
kibanamachine d65f165
merge main
ersin-erdal 53510eb
fix tests after merge
ersin-erdal 0ce1393
Merge branch 'main' into action-uuid
ersin-erdal c1ff478
remove the redundant interface
ersin-erdal 961fe22
make uuid optional in RuleAction
ersin-erdal 1e551ad
merge main
ersin-erdal a8c214e
Merge branch 'main' into action-uuid
ersin-erdal 3af6a0e
Merge branch 'main' into action-uuid
ersin-erdal d5f0090
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal 04be440
merge main
ersin-erdal b3512a5
alert SO hash
ersin-erdal d05d417
Merge branch 'main' into action-uuid
ersin-erdal aceb74f
merge main
ersin-erdal 1e27d27
alert SO hash
ersin-erdal 5f7863c
Merge branch 'main' into action-uuid
ersin-erdal a15c6ed
Merge branch 'main' into action-uuid
ersin-erdal b958d93
fix failing functional test
ersin-erdal e20ca02
remove unnecessary type casts
ersin-erdal fe412e0
[CI] Auto-commit changed files from 'node scripts/lint_ts_projects --…
kibanamachine 038d1c8
Merge branch 'main' into action-uuid
ersin-erdal 7e0f4d2
remove unnecessary changes
ersin-erdal 22df8d3
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal e287eb6
Merge branch 'main' into action-uuid
ersin-erdal 885c82d
check that the uuid is not an empty string after migration
ersin-erdal 90bb572
Merge remote-tracking branch 'origin/action-uuid' into action-uuid
ersin-erdal d5d3a78
Merge branch 'main' into action-uuid
ersin-erdal edbed26
Merge branch 'main' into action-uuid
ersin-erdal f26f451
Merge branch 'main' into action-uuid
ersin-erdal 76b3cd3
Merge branch 'main' into action-uuid
ersin-erdal ace3a6a
Merge branch 'main' into action-uuid
ersin-erdal fcae7c6
Merge branch 'main' into action-uuid
ersin-erdal a0ca778
Merge branch 'main' into action-uuid
ersin-erdal 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
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
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
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
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
16 changes: 16 additions & 0 deletions
16
x-pack/plugins/alerting/server/rules_client/lib/add_uuid.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,16 @@ | ||
| /* | ||
| * 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 { v4 } from 'uuid'; | ||
| import { NormalizedAlertAction, NormalizedAlertActionWithUuid } from '..'; | ||
|
|
||
| export function addUuid(actions: NormalizedAlertAction[] = []): NormalizedAlertActionWithUuid[] { | ||
| return actions.map((action) => ({ | ||
| ...action, | ||
| uuid: action.uuid || v4(), | ||
| })); | ||
| } |
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
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
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.