Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Security Solution] Allow users to save rule query with non cri…
…tical validation errors (#202544) (#203233) # Backport This will backport the following commits from `main` to `8.x`: - [[Security Solution] Allow users to save rule query with non critical validation errors (#202544)](#202544) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maxim Palenov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-06T12:06:39Z","message":"[Security Solution] Allow users to save rule query with non critical validation errors (#202544)\n\n**Addresses:** https://github.com/elastic/kibana/issues/171520\r\n\r\n## Summary\r\n\r\nThis PR adds functionality to allow users save EQL and ES|QL queries in Prebuilt Rule Customization workflow by displaying a confirmation modal with non critical validation errors (a.k.a warnings). It also refactors confirmation modal usage in rule creation/editing forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\" src=\"https://github.com/user-attachments/assets/c0054fc1-b52b-400f-80d7-af42391f4e18\">\r\n\r\nhttps://github.com/user-attachments/assets/2a20fcfe-ffc0-4547-8621-7ac6873c8dc9\r\n\r\nhttps://github.com/user-attachments/assets/50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\" src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\" src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\" src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\" src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rule Management","Feature:Prebuilt Detection Rules","backport:version","v8.18.0"],"title":"[Security Solution] Allow users to save rule query with non critical validation errors","number":202544,"url":"https://github.com/elastic/kibana/pull/202544","mergeCommit":{"message":"[Security Solution] Allow users to save rule query with non critical validation errors (#202544)\n\n**Addresses:** https://github.com/elastic/kibana/issues/171520\r\n\r\n## Summary\r\n\r\nThis PR adds functionality to allow users save EQL and ES|QL queries in Prebuilt Rule Customization workflow by displaying a confirmation modal with non critical validation errors (a.k.a warnings). It also refactors confirmation modal usage in rule creation/editing forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\" src=\"https://github.com/user-attachments/assets/c0054fc1-b52b-400f-80d7-af42391f4e18\">\r\n\r\nhttps://github.com/user-attachments/assets/2a20fcfe-ffc0-4547-8621-7ac6873c8dc9\r\n\r\nhttps://github.com/user-attachments/assets/50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\" src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\" src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\" src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\" src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202544","number":202544,"mergeCommit":{"message":"[Security Solution] Allow users to save rule query with non critical validation errors (#202544)\n\n**Addresses:** https://github.com/elastic/kibana/issues/171520\r\n\r\n## Summary\r\n\r\nThis PR adds functionality to allow users save EQL and ES|QL queries in Prebuilt Rule Customization workflow by displaying a confirmation modal with non critical validation errors (a.k.a warnings). It also refactors confirmation modal usage in rule creation/editing forms for better reusability.\r\n\r\n## Screenshots\r\n\r\n<img width=\"1909\" alt=\"Screenshot 2024-12-03 at 14 01 36\" src=\"https://github.com/user-attachments/assets/c0054fc1-b52b-400f-80d7-af42391f4e18\">\r\n\r\nhttps://github.com/user-attachments/assets/2a20fcfe-ffc0-4547-8621-7ac6873c8dc9\r\n\r\nhttps://github.com/user-attachments/assets/50b5cf5a-ea3f-4c22-a443-b5d4056a92c8\r\n\r\n<img width=\"2541\" alt=\"Screenshot 2024-12-03 at 14 06 29\" src=\"https://github.com/user-attachments/assets/dde3fd60-6c69-4f8e-a65a-837b2319e4ac\">\r\n\r\n<img width=\"2552\" alt=\"Screenshot 2024-12-03 at 14 06 51\" src=\"https://github.com/user-attachments/assets/220817a6-991f-4361-88d2-ee3a47a36ad6\">\r\n\r\n<img width=\"2555\" alt=\"Screenshot 2024-12-03 at 14 07 52\" src=\"https://github.com/user-attachments/assets/c46fc49c-9ce1-4472-bdea-f9507aa62ece\">\r\n\r\n<img width=\"2553\" alt=\"Screenshot 2024-12-03 at 14 08 18\" src=\"https://github.com/user-attachments/assets/92388c56-8644-4c54-8727-b9a73b3497d1\">","sha":"b0c7a8ce4f0ea528a7f96246e7f2a46d17f61d3f"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Maxim Palenov <[email protected]>
- Loading branch information