Skip to content

[7.9] [Security Solution][Exceptions] - Make esTypes and subType available to index patterns (#72336)#72555

Merged
yctercero merged 1 commit intoelastic:7.9from
yctercero:backport/7.9/pr-72336
Jul 21, 2020
Merged

[7.9] [Security Solution][Exceptions] - Make esTypes and subType available to index patterns (#72336)#72555
yctercero merged 1 commit intoelastic:7.9from
yctercero:backport/7.9/pr-72336

Conversation

@yctercero
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.9:

…to index patterns (elastic#72336)

## Summary

This PR updates the following:

- `useFetchIndexPatterns` now returns `indexPatterns` whose fields include `esTypes` and `subType`
  - Why?? The exceptions builder needs these two fields to determine what fields are of ES type `nested` and parent paths
- exceptions add and edit modals now use the `rule.index` field to pass into `useFetchindexPatterns`
  - Before we were using the signals index and alerts index for endpoint, needs to be rule's index patterns
  - if no index patterns exist on the rule (if rule created via API, it's not required), then uses `DEFAULT_INDEX_PATTERN`
- updates the autocomplete validation to use `IField.esTypes` to check type instead of `IField.type`
@yctercero yctercero added the backport This PR is a backport of another PR label Jul 20, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
securitySolution 1065 -1 1066

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

@yctercero yctercero merged commit 4b3390f into elastic:7.9 Jul 21, 2020
@yctercero yctercero deleted the backport/7.9/pr-72336 branch October 14, 2020 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants