-
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
[Security Solution][Detections] Rule forms cleanup #76138
Merged
+686
−709
Merged
Changes from 41 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
c5c1675
Remove unused isNew field
rylnd b19ccad
WIP: Making rule form type safe
rylnd 9155d9b
Make defaultValues a required prop of the define step
rylnd 18a2104
Refactor rule creation forms to not require default values
rylnd 7c3a807
Remove unnecessary "deep" comparison
rylnd 2b66a8f
Make StepRuleDescription generic on its schema
rylnd e7556b7
Fixes bug introduced by form lib updates
rylnd fdf2cf4
Rename typed hook to obviate eslint exception
rylnd 788135b
WIP: Fixing type errors in the other form steps
rylnd 1cb55bf
More form cleanup
rylnd 8bc8141
Fix some leftover type errors
rylnd a61744e
Remove duplicated useEffect hook
rylnd d80998a
Fix Rule edit form
rylnd ad8aa60
Fixes About Step jest tests
rylnd b174270
Fix bug with going to a previous step after editing actions
rylnd 7fa8bca
Add assertions to our rule creation test
rylnd 15c38bb
Simplify Rule Creation logic
rylnd 4995e81
Don't persist empty form data when leaving a form step
rylnd 453ef00
Skip About Step tests for now
rylnd aa70f70
Merge branch 'master' into rule_form_cleanup_and_prep
rylnd f36baf5
Remove unnecessary calls to setValue
rylnd d58545b
Style: logic cleanup
rylnd bab04a4
Prevent users from navigating away from an invalid step on rule edit
rylnd 7a819cb
Display callout if attempting to navigate away from an invalid tab
rylnd 39bd188
Persist our form submit() rather than the entire form
rylnd 87b77bb
Replace FormDataProvider with useFormData hook
rylnd 8cacf35
Move fetch of fields data _after_ form initialization
rylnd 0972e16
Replace FormDataProvider on About step
rylnd 84570c9
Replace local state with useFormData
rylnd 3d64b01
Types cleanup
rylnd 8f458a3
Rewrite About Step tests
rylnd deeaa48
Add memoization back to StepRuleDescription
rylnd aac72c9
Do not fetch ML Jobs if StepRuleDescription is not rendering ML Data
rylnd cf47e59
Fix bug where revisiting the About step could modify the user's Risk …
rylnd bf8e5c5
Clean up About Step tests
rylnd 36ba03f
Fix local form data when form isn't mounted
rylnd 33cdeef
Merge branch 'master' into rule_form_cleanup_and_prep
rylnd 526929e
Allow user to navigate between invalid tabs on Edit Rule
rylnd db36f40
Fix logical error
rylnd 9b16fe5
Merge branch 'master' into rule_form_cleanup_and_prep
rylnd 7d359ed
Remove unneeded eslint exception
rylnd e45c128
Make 21 the default risk score for a new rule
rylnd b24742c
Remove duplicated type in favor of common one
rylnd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice catch!