After loading a saved query (from query menu) on Custom query filtering component when creating/editing a Custom query detection rule, the query is not properly cleared an loading a new one displayed an error. It works fine the second time you try to load a saved query. See attached recording for more details
Kibana/Elasticsearch Stack version:
8.13 BC3
Browser and Browser OS versions:
Google Chrome
Elastic Endpoint version:
Original install method (e.g. download page, yum, from source, etc.):
Cloud deployment
Functional Area (e.g. Endpoint management, timelines, resolver, etc.):
Detection Rules
Pre-requisites:
User must have a saved custom query.
Steps to reproduce:
Create/edit a Custom query detection rule
Open the query menu on Custom Query component
Navigate to Load query on the dropdown menu and load a saved query
Notice how the query filters are displayed
Navigate again to Query menu
Click on Clear All option from the dropdown
Notice how the query filters are cleared
Navigate again to Load query on the dropdown menu
Current behavior:
The previously loaded saved query remains active, and activating it again throws an error message
Expected behavior:
Active status from query should be cleared after Clearing all
Describe the bug:
After loading a saved query (from query menu) on Custom query filtering component when creating/editing a Custom query detection rule, the query is not properly cleared an loading a new one displayed an error. It works fine the second time you try to load a saved query. See attached recording for more details
Kibana/Elasticsearch Stack version:
8.13 BC3
Browser and Browser OS versions:
Google Chrome
Elastic Endpoint version:
Original install method (e.g. download page, yum, from source, etc.): Cloud deployment Functional Area (e.g. Endpoint management, timelines, resolver, etc.):
Detection Rules
Pre-requisites:
User must have a saved custom query.
Steps to reproduce:
Current behavior:
The previously loaded saved query remains active, and activating it again throws an error message
Expected behavior:
Active status from query should be cleared after Clearing all
Screenshots (if relevant):
https://github.com/elastic/kibana/assets/120487607/fdaadff7-5006-493f-8df3-648d28b231cf