-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SIEM] [Detection Engine] Adds Rules Table #50839
Conversation
…tor tables, and wires up all rules tables with rules
… refresh, activation, duplication and deleting
Pinging @elastic/siem (Team:SIEM) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ls, and reworks pagination and filtering in the reducer
…h actions after performing an action
…s on import as well
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
x-pack/legacy/plugins/siem/public/containers/detection_engine/rules/use_rules.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/activity_monitor/columns.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/activity_monitor/index.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/activity_monitor/index.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/activity_monitor/index.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all_rules/actions.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all_rules/batch_actions.tsx
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all_rules/batch_actions.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/detection_engine/rules/all_rules/columns.tsx
Outdated
Show resolved
Hide resolved
tags: rule.tags ?? [], | ||
activate: rule.enabled, | ||
sourceRule: rule, | ||
isLoading: selectedIds?.includes(rule.id) ?? false, |
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.
🤜 ?? 🤛
The power of TypeScript is now here. Thanks for letting me see all the new syntax and adding it. Very cool stuff.
This comment has been minimized.
This comment has been minimized.
...plugins/siem/public/pages/detection_engine/rules/components/import_rule_modal/index.test.tsx
Outdated
Show resolved
Hide resolved
<EuiButtonEmpty onClick={closeModal}>{i18n.CANCEL_BUTTON}</EuiButtonEmpty> | ||
<EuiButton | ||
onClick={importRules} | ||
disabled={selectedFiles == null || isImporting} |
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.
nit: Don't you want your fancy smancy ??
like so: selectedFiles == null ?? isImporting
;-)
@elasticmachine merge upstream |
This comment has been minimized.
This comment has been minimized.
💚 Build Succeeded |
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!
This PR wires up the Detection Engine Rules Table and provides the following features: * [x] Lists all rules for a given user/space * [x] Search/Filtering via `Rule Name` * [x] Sorting via `Activate` * [x] Pagination * [x] Enable/Disable Action * [x] Rule Selection / Batch Actions * [x] Rule Import w/ validation via `io-ts` * [x] Batch Actions * [x] Activate selected * [x] Deactivate selected * [x] Export selected (as `.ndjson`) * [ ] ~Edit selected index patterns...~ (Waiting on supported feature) * [x] Delete selected * [x] Individual Overflow Actions * [ ] ~Edit rule settings~ (Waiting on supported feature) * [ ] ~Run rule manually...~ (Waiting on supported feature) * [x] Duplicate rule... * [X] Export rule * [x] Delete rule... ![sort_and_filter](https://user-images.githubusercontent.com/2946766/69286404-641d1a80-0bb0-11ea-9930-8eada88b36f6.gif) ![import_and_export](https://user-images.githubusercontent.com/2946766/69286806-79df0f80-0bb1-11ea-99c5-92df0a706f0e.gif) ![import_failed_validation](https://user-images.githubusercontent.com/2946766/69286797-72b80180-0bb1-11ea-9397-71fa0ff0b203.gif) ![batch_activate_deactivate](https://user-images.githubusercontent.com/2946766/69287019-0093ec80-0bb2-11ea-8320-57cc7fec27a8.gif) ![batch_delete](https://user-images.githubusercontent.com/2946766/69287139-6e401880-0bb2-11ea-948c-c5b92ba90e6f.gif) ![dupe_and_delete](https://user-images.githubusercontent.com/2946766/69287143-74ce9000-0bb2-11ea-88b3-db75f66ba666.gif) Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR. - [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md) - [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~ -- * Will work with @benskelker on overall Detection Engine documentation - [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios * Includes basic tests -- will expand coverage as features solidify - [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~ - [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~ - [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
This PR wires up the Detection Engine Rules Table and provides the following features: * [x] Lists all rules for a given user/space * [x] Search/Filtering via `Rule Name` * [x] Sorting via `Activate` * [x] Pagination * [x] Enable/Disable Action * [x] Rule Selection / Batch Actions * [x] Rule Import w/ validation via `io-ts` * [x] Batch Actions * [x] Activate selected * [x] Deactivate selected * [x] Export selected (as `.ndjson`) * [ ] ~Edit selected index patterns...~ (Waiting on supported feature) * [x] Delete selected * [x] Individual Overflow Actions * [ ] ~Edit rule settings~ (Waiting on supported feature) * [ ] ~Run rule manually...~ (Waiting on supported feature) * [x] Duplicate rule... * [X] Export rule * [x] Delete rule... ![sort_and_filter](https://user-images.githubusercontent.com/2946766/69286404-641d1a80-0bb0-11ea-9930-8eada88b36f6.gif) ![import_and_export](https://user-images.githubusercontent.com/2946766/69286806-79df0f80-0bb1-11ea-99c5-92df0a706f0e.gif) ![import_failed_validation](https://user-images.githubusercontent.com/2946766/69286797-72b80180-0bb1-11ea-9397-71fa0ff0b203.gif) ![batch_activate_deactivate](https://user-images.githubusercontent.com/2946766/69287019-0093ec80-0bb2-11ea-8320-57cc7fec27a8.gif) ![batch_delete](https://user-images.githubusercontent.com/2946766/69287139-6e401880-0bb2-11ea-948c-c5b92ba90e6f.gif) ![dupe_and_delete](https://user-images.githubusercontent.com/2946766/69287143-74ce9000-0bb2-11ea-88b3-db75f66ba666.gif) Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR. - [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md) - [ ] ~[Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~ -- * Will work with @benskelker on overall Detection Engine documentation - [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios * Includes basic tests -- will expand coverage as features solidify - [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~ - [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~ - [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
💔 Build Failed |
Summary
Detection Engine Meta Issue: #50405
Resolves #50412
This PR wires up the Detection Engine Rules Table and provides the following features:
Rule Name
Activate
io-ts
.ndjson
)Edit selected index patterns...(Waiting on supported feature)Edit rule settings(Waiting on supported feature)Run rule manually...(Waiting on supported feature)Searching / Sorting
Importing / Exporting
Import Fails validation
Batch Activate / Deactivate
Batch Delete
Delete / Duplicate
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.Documentation was added for features that require explanation or tutorials--This was checked for keyboard-only and screenreader accessibilityFor maintainers
This was checked for breaking API changes and was labeled appropriatelyThis includes a feature addition or change that requires a release note and was labeled appropriately