-
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] - Update UI exceptions builder nested logic #72490
Conversation
…ll checking signals index for closing alerts functionality
*/ | ||
export const getFormattedEntries = (entries: BuilderEntry[]): FormattedEntry[] => { |
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.
These big chunks that appear as removed were just moved into builder/helper.ts
since they weren't shared utils, just applied to the builder. Was trying to cleanup as this file is getting large.
@@ -22,14 +23,25 @@ const MyFirstRowContainer = styled(EuiFlexItem)` | |||
padding-top: 20px; | |||
`; | |||
|
|||
const MyBeautifulLine = styled(EuiFlexItem)` |
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.
Happy to remain, my creativity was running low...
Pinging @elastic/siem (Team:SIEM) |
}, | ||
entryIndex | ||
); | ||
if (entry.nested === 'parent') { |
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.
Want to follow up moving all this logic out to easily testable helpers.
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.
LGTM! Wow, you really did us all so many favors this release with all these features and nested.
💚 Build SucceededBuild metricsasync chunks size
History
To update your PR or re-run it, just comment with: |
… logic (elastic#72490) ## Summary This PR is meant to update the exception builder logic to handle nested fields. If you're unfamiliar with nested fields, you can read up more on it [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) and [here](elastic#44554). It also does a bit of cleanup, so though it may look like a lot of changes, parts of it were just moving some things around.
… logic (elastic#72490) ## Summary This PR is meant to update the exception builder logic to handle nested fields. If you're unfamiliar with nested fields, you can read up more on it [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) and [here](elastic#44554). It also does a bit of cleanup, so though it may look like a lot of changes, parts of it were just moving some things around.
… logic (#72490) (#72982) ## Summary This PR is meant to update the exception builder logic to handle nested fields. If you're unfamiliar with nested fields, you can read up more on it [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) and [here](#44554). It also does a bit of cleanup, so though it may look like a lot of changes, parts of it were just moving some things around.
… logic (#72490) (#72983) ## Summary This PR is meant to update the exception builder logic to handle nested fields. If you're unfamiliar with nested fields, you can read up more on it [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) and [here](#44554). It also does a bit of cleanup, so though it may look like a lot of changes, parts of it were just moving some things around.
* master: (35 commits) Migrated karma tests to jest (elastic#72649) Migrate status page app to core (elastic#72017) Failing test: Jest Tests.src/plugins/vis_type_vega/public (elastic#71834) Fix Firefox TSVB flaky test with switch index patterns (elastic#72882) [ML] Fixing link to index management from file data visualizer (elastic#72863) test: 💍 add test for sub-expression variables (elastic#71644) fix bug (elastic#72809) [keystore] use get_keystore in server cli (elastic#72954) Show step number instead of incomplete step. (elastic#72866) Fix bug where user can't add an exception when "close alert" is checked (elastic#72919) [Monitoring] Fix issues displaying alerts (elastic#72891) [Ingest Manager] Add more Fleet concurrency tests elastic#71744 (elastic#72338) [Security Solution][Exceptions] - Update UI exceptions builder nested logic (elastic#72490) disable renovate masterIssue [ML] API integration tests for UPDATE data frame analytics endpoint (elastic#72710) [Uptime] Fix accessibility issue in Uptime app nav links (elastic#72926) [Maps] fix removing global filter from layer can cause app to start thrashing (elastic#72763) [Maps] fix blended layer aggregation error when using composite aggregation (elastic#72759) fix unexpected arguments to unload command Limits the upload size of lists to 9 meg size (elastic#72898) ...
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
🥁 This PR is meant to update the exception builder logic to handle nested fields. If you're unfamiliar with nested fields, you can read up more on it here and here. It also does a bit of cleanup, so though it may look like a lot of changes, parts of it were just moving some things around.
exceptions/helpers.tsx
file into separate helper files under the corresponding components (builder or viewer) where there wasn't any overlaponClick
to add/edit exceptions modal mask overlay so that user does not need to refresh page if modal hits an issuebuilder_button_options.tsx
to now expose theAdd nested field
to UIAdd nested field
is available at all times - it can be disabled if need be by the consumer of the exceptions builderAdd nested field
, a new empty entry is shown that limits the fields to only nested types that match the parent andOr
is disabledAdd
, another entry, still under the nested parent is addedAdd non nested field
and it returns them to the normal flowDelete
next to the parent entry, deletes the entire nested entry and childrenDelete
, an empty entry, similar to the one shown on init is displayedNote: Double checked with @marrasherrier on the design. The initial designs limited the user to adding one nested field as the last item. This allows a user to add multiple nested fields and non-nested fields.
Samples 🤤
Close modal when overlay mask clicked
Allow user to delete field selection with delete key
If user deletes last item, goest back to empty default
Adding a nested entry
Deleting nested entry
Sample
and
,or
,nested
To Do
builder/entry_item.tsx
Add nested
--> then selectsAdd non nested
without having selected any nested fieldChecklist
Delete any items that are not applicable to this PR.