Skip to content

[7.x] [SIEM][Exceptions] - Exception builder component (#67013)#70539

Merged
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-67013
Jul 2, 2020
Merged

[7.x] [SIEM][Exceptions] - Exception builder component (#67013)#70539
yctercero merged 1 commit intoelastic:7.xfrom
yctercero:backport/7.x/pr-67013

Conversation

@yctercero
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

### Summary

This PR creates the bulk functionality of the exception builder. The exception builder is the component that will be used to create exception list items. It does not deal with the actual API creation/deletion/update of exceptions, it does contain an `onChange` handler that can be used to access the exceptions. The builder is able to:

- accept `ExceptionListItem` and render them correctly
- allow user to add exception list item and exception list item entries
- accept an `indexPattern` and use it to fetch relevant field and autocomplete field values
- disable `Or` button if user is only allowed to edit/add to exception list item (not add additional exception list items)
- displays `Add new exception` button if no exception items exist
    - An exception item can be created without entries, the `add new exception` button will show in the case that an exception list contains exception list item(s) with an empty `entries` array (as long as there is one exception list item with an item in `entries`, button does not show)
- debounces field value autocomplete searches
- bubble up exceptions to parent component, stripping out any empty entries
@yctercero yctercero added the backport This PR is a backport of another PR label Jul 2, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

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

@yctercero yctercero merged commit b2bd4fe into elastic:7.x Jul 2, 2020
@yctercero yctercero deleted the backport/7.x/pr-67013 branch October 14, 2020 12:00
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