forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Exceptions] - Updates autocomplete validation for…
… numbers and boolean (elastic#74561) ## Summary This PR chips a bit at some stricter value validations that have been discussed. Further validation is needed, but this adds some more basic validation. - **Current:** if selected field is of type `boolean` users can add custom values in combo box - **Now:** if selected field is of type `boolean` users can only select `true` or `false` - **Current:** if selected field is of type `number` (that is kibana type number) user can input any values - **Now:** if selected field is of type `number` and no autocomplete suggestions are available, number input is used to restrict users - **Current:** for operator `match_any` it's conducting an autocomplete search after each selection resulting in some jumpy/weird behavior - **Now:** only conducts autocomplete search on initial field selection and if user enters value to search - **Current:** only validations on type date - **Now:** validation on type (Kibana type) date, number - **Current:** input would show red when there was an error but user could still submit - **Now:** submit button is disabled if error exists
- Loading branch information
Showing
25 changed files
with
1,392 additions
and
388 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
Oops, something went wrong.