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] Cannot edit, add or remove filters on Custom Rule…
… after upgrade to 8.12 (elastic#177838) (elastic#178207) ## Summary Addresses elastic#177838 These changes fix the bug where users do not receive UI feedback on add/remove/edit filters inside security solution rules. It happens when user selects data view as a source and works correctly with index patterns. The issue was introduced with these changes https://github.com/elastic/kibana/pull/175433/files# where we update filters with the ad-hoc data view id. Since new state variable is updated only when current source is an index pattern. **Fix**: we should always update `searchBarFilters` state variable on source/filters updates. https://github.com/elastic/kibana/assets/2700761/5d8d3932-3fc7-4a5c-a647-4fa2ceda71b2 Also, I added e2e tests to verify that we are able to add filters on rule creation working with both source types. ### Checklist Delete any items that are not applicable to this PR. - [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] [ESS 50 times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5428) - [x] [Serverless 50 times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5410) --------- Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
1 parent
e864880
commit 22365e6
Showing
5 changed files
with
61 additions
and
11 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
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