-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Detections] Rule Form: prevent creation of invali…
…d scheduling parameters (#79577) * Clean up our component types * Clamp our Rule Schedule inputs to safe values * If the user enters a value > Number.MAX_SAFE_INTEGER, it will be updated to Number.MAX_SAFE_INTEGER * If the user enters non-numeric text, it will be updated to 0 * Ensure that we do not go below the default value 0 is not necessarily a reasonable default, but we already have a variable for the default value. * Update cypress interaction with schedule fields Now that we set defaults for bad values, it's no longer possible to "clear" the numeric input. However, to get roughly the same behavior we can instead select the current value and start typing.
- Loading branch information
Showing
3 changed files
with
98 additions
and
26 deletions.
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