-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Security Solution][Exceptions][Builder] -Move exception builder entry item exceptions ui over to lists #94515
Conversation
77ef114
to
11e2a2e
Compare
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @yctercero |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already added review to builder pr but this section of it looks like it works good with all manual testing 👍
…y item exceptions ui over to lists (elastic#94515) ## Summary Beginning to move the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I plan to move single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way. The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `BuilderEntryItem` which deals with rendering the individual exception item entries. An entry can be of type `match`, `match_any`, `list`, `exists`, or `nested`. The component makes use of the autocomplete fields which use the index patterns to display possible fields and field values. One of the decisions made in this PR was to have consumers of the `BuilderEntryItem` pass through the autocomplete service as opposed to the `lists` plugin adding it as a dependency. The reason being that it is likely that plugins using the lists plugin will already be consuming either the data plugin or if alerting takes exceptions in, then they'll be consuming alerting. In an effort to avoid some possible icky circular dependency issues, though it best to make the service passed in, as we had already been doing with the hooks in the `lists` plugin.
…y item exceptions ui over to lists (#94515) (#95585) ## Summary Beginning to move the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I plan to move single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way. The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the `BuilderEntryItem` which deals with rendering the individual exception item entries. An entry can be of type `match`, `match_any`, `list`, `exists`, or `nested`. The component makes use of the autocomplete fields which use the index patterns to display possible fields and field values. One of the decisions made in this PR was to have consumers of the `BuilderEntryItem` pass through the autocomplete service as opposed to the `lists` plugin adding it as a dependency. The reason being that it is likely that plugins using the lists plugin will already be consuming either the data plugin or if alerting takes exceptions in, then they'll be consuming alerting. In an effort to avoid some possible icky circular dependency issues, though it best to make the service passed in, as we had already been doing with the hooks in the `lists` plugin. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Beginning to move the exceptions UI out of the security solution plugin and into the lists plugin. In order to keep PRs (relatively) small, I plan to move single components at a time. This should also then help more easily pinpoint the source of any issues that come up along the way.
The next couple PRs will focus on the exception builder. This one in particular is focused on moving over the
BuilderEntryItem
which deals with rendering the individual exception item entries. An entry can be of typematch
,match_any
,list
,exists
, ornested
. The component makes use of the autocomplete fields which use the index patterns to display possible fields and field values.One of the decisions made in this PR was to have consumers of the
BuilderEntryItem
pass through the autocomplete service as opposed to thelists
plugin adding it as a dependency. The reason being that it is likely that plugins using the lists plugin will already be consuming either the data plugin or if alerting takes exceptions in, then they'll be consuming alerting. In an effort to avoid some possible icky circular dependency issues, though it best to make the service passed in, as we had already been doing with the hooks in thelists
plugin.Quick Summary:
x-pack/plugins/security_solution/public/common/components/exceptions/builder/entry_item.tsx
→x-pack/plugins/lists/public/exceptions/components/builder/entry_renderer.tsx
BuilderEntryItem
from lists pluginx-pack/plugins/security_solution/public/common/components/autocomplete/
tox-pack/plugins/lists/public/exceptions/components/autocomplete/
Entry Item (THIS PR DEALS WITH 👇🏽)
Exception Item
Builder Buttons
Exception Item Comments
Builder Modal
Notes
lists
plugin here I think could live elsewhere. Personally, I think it'd be best if they were components that EUI supported as they are consumed in numerous other places within the security app. To avoid disrupting these other consumers, I did a copy paste of them for now to be used by thelists
plugin. [EUI][Data] - Add index field selectors to EUI or Data #94875Testing
Prior to making these changes, added a number of tests to ensure coverage of existing functionality. For manual testing, please checkout PR and play around with the following:
match
,match_any
,nested
etc.Checklist