-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New artifacts schema in the rule creation/update/find #216292
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
Changes from all commits
Commits
Show all changes
103 commits
Select commit
Hold shift + click to select a range
14d7073
new artifact schema, create rule updates
mgiota b01099c
more updates to create rule schema
mgiota c2db5d8
save artifacts as references in the rule SO during rule creation
mgiota 387d72c
remove artifacts from create rule response (transformRuleToRuleResponse)
mgiota 186d1d6
remove investigation_guide for now. it will be added later on as v6 i…
mgiota a3708dd
type refactoring
mgiota c1ab616
move denormalize_artifacts into a new file
mgiota 21f13f1
fix failing create_rule tests
mgiota 201a15b
add integration tests for creating a rule with dashboard artifacts
mgiota b9542c0
return artifacts on the internal find api (TODO: handle transforming …
mgiota e30f641
inject references into artifacts in the find rule api
mgiota d84c366
changes to the update schema
mgiota 6f6fc54
update artifact references on rule update
mgiota efee3ed
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 5328a03
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine 255c194
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine 9860710
[CI] Auto-commit changed files from 'node scripts/jest_integration -u…
kibanamachine 236795d
fix bulk edit
mgiota 31e64f1
fix transform rule domain to attributes tests
mgiota 523fb3c
fix update rule failing tests by passing a default artifacts value
mgiota ce1b74a
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 5cefd1c
fix model version
mgiota d39cfce
remove leftover comment
mgiota 0be0f57
update_rule unit tests
mgiota 98ff4ad
fix failing find rule unit tests
mgiota de37d9c
add find rule tests testing artifacts
mgiota 72681f2
Fix Synthetics deployment agnostic test.
justinkambic 62376f8
Fix types.
justinkambic 4c315dc
Fix more tests.
justinkambic 1aa2778
Merge remote-tracking branch 'upstream/main' into artifacts_dashboard…
justinkambic c67b4eb
Fix more `find_interna` tests.
justinkambic 6318e5b
Fix most unit tests.
justinkambic 06aae53
Still trying to fix internal find test that is broken despite passing…
justinkambic 2439428
Temp debug logging for CI visibility.
justinkambic e993299
Fix unit tests.
justinkambic 71bc4e6
Temporarily allow console.log for debug purposes.
justinkambic 894deec
Add tests for `denormalizeArtifacts`.
justinkambic eb747f8
Add unit tests for `injectReferencesIntoArtifacts`.
justinkambic 386f11d
Fix issue from downstream port.
justinkambic f815d8d
Remove console.log call.
justinkambic 4837d1d
Merge remote-tracking branch 'upstream/main' into artifacts_dashboard…
justinkambic a85b1d4
remove refId and investigation_guide(for now)
mgiota 7264aa8
remove investigation_guide reference in the test
mgiota bc647f3
unit tests for extract references
mgiota 9fb63b0
fix find internal api failing tests
mgiota 97d87ca
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 929defd
add integration tests for update rule
mgiota 0173e0b
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine d47828d
add integration tests for artifacts for the pubic find api
mgiota ad2216c
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 0c9e072
proper clean up of rules to fix failing rule tags tests
mgiota 3c8120c
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine f0bc840
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 5b055ed
use plural for dashboards and artifacts schema
mgiota e442794
use plural for the Artifact
mgiota 21506d2
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine db1736a
more fixes
mgiota d3126da
Update x-pack/platform/plugins/shared/alerting/server/rules_client/co…
mgiota b92bab3
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 70c229e
address PR feedback
mgiota 6254e0f
bulk edit changes
mgiota 53fe032
more updates
mgiota a97d0bd
add artifacts as optional to the response type
mgiota 140b953
update update_rule tests
mgiota 69bbc53
add more tests to the update_rule method (link new dashboard)
mgiota 7a78806
Increase limit of inspector bundle size.
justinkambic 2d8d518
Merge branch 'artifacts_dashboard_schema' of github.com:mgiota/kibana…
justinkambic ebc392f
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine d776aa0
make artifacts optional
mgiota 6e24df3
type return value of injectReferencesIntoArtifacts
mgiota 1e191c4
add more tests to transform_rule_attributes_to_rule_domain
mgiota e606da3
fix type issues
mgiota 68cb0f0
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 674db1a
return fake artifact along with dashboards
mgiota 0926084
remove the call to the dashboard api
mgiota ec63b16
Add new `transformRawArtifactsToDomainArtifacts` function.
justinkambic 92486e8
Add tests for `transformRawArtifactsToDomainArtifacts`.
justinkambic 3764712
Merge branch 'artifacts_dashboard_schema' of github.com:mgiota/kibana…
justinkambic e625e73
Make `artifacts` a required parameter of `extractReferences`.
justinkambic 43e0918
Add additional coverage to update artifacts test.
justinkambic c4efff7
rename isInternal to includeArtifacts
mgiota 5a57446
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 67f8302
update_rule tests updates
mgiota 4e240fd
find_rules_route unit tests
mgiota e3f236a
find_internal_rules_route unit tests
mgiota 75d463c
test that artifacts are mapped correctly
mgiota 061777a
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 51ebefc
import schema from artifacts_schema
mgiota c5ba626
Fix tests, change return value to always include dashboards array.
justinkambic 8830c5e
Merge branch 'artifacts_dashboard_schema' of github.com:mgiota/kibana…
justinkambic 6e5ca07
Change a word.
justinkambic 7058cc8
Use lodash `uniqBy` to deduplicate reference list.
justinkambic 86e52c1
Update test snapshot where there are duplicate SO ref IDs.
justinkambic 3f8cd80
Revert "Update test snapshot where there are duplicate SO ref IDs."
justinkambic dba5032
Revert "Use lodash `uniqBy` to deduplicate reference list."
justinkambic 9aede2f
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine e57875e
move injectReferencesIntoArtifacts after hasLegacyActions
mgiota feeb68c
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 9b44f70
make artifacts required
mgiota f3ec10b
fix lint error
mgiota a84329b
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine b159a0b
do not mock denormalizeArtifacts
mgiota 678a3df
Merge branch 'main' into artifacts_dashboard_schema
elasticmachine 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
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.