Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.7] [Security Solution] Invalidate prebuilt rules status after pack…
…age upgrade or installation (#150292) (#151019) # Backport This will backport the following commits from `main` to `8.7`: - [[Security Solution] Invalidate prebuilt rules status after package upgrade or installation (#150292)](#150292) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dmitrii Shevchenko","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-02-13T15:00:20Z","message":"[Security Solution] Invalidate prebuilt rules status after package upgrade or installation (#150292)\n\n**Resolves: https://github.com/elastic/kibana/issues/150306**\r\n\r\n## Summary\r\n\r\nFixes the Load Prebuilt rules button not visible when users visit the\r\nrules management page for the first time (no prebuilt detection rules\r\npackage installed).\r\n\r\n## Steps to test\r\n\r\n1. Ensure that the detection engine package is not installed: <img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216949857-a49731f3-535e-4813-95d3-62b2995500bb.png\"\r\nwidth=\"600\" />\r\n2. Navigate to the rules management page.\r\n\r\n### Previously\r\n\r\nThe \"Load Elastic Prebuilt Rules\" button is not visible, and users\r\ncannot install prebuilt rules.\r\n\r\n<img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216950430-4c57a3ad-3146-40a0-82c2-08c4fc2f65c3.png\"\r\nwidth=\"600\" />\r\n\r\n### With the fix\r\n\r\nUsers now see loading animation, indicating that the package\r\ninstallation happens in the background. Once the package installation\r\nfinishes, users see the Load Prebuilt rules button appear.\r\n\r\n\r\nhttps://user-images.githubusercontent.com/1938181/217585144-879fe288-0ede-4e01-b585-6aced1d89379.mov","sha":"4f1f2a84fdf3421d6b56aac82274dee2e881d376","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","impact:high","Team:Detections and Resp","Team: SecuritySolution","Team:Detection Rules","Feature:Prebuilt Detection Rules","v8.7.0","v8.8.0"],"number":150292,"url":"https://github.com/elastic/kibana/pull/150292","mergeCommit":{"message":"[Security Solution] Invalidate prebuilt rules status after package upgrade or installation (#150292)\n\n**Resolves: https://github.com/elastic/kibana/issues/150306**\r\n\r\n## Summary\r\n\r\nFixes the Load Prebuilt rules button not visible when users visit the\r\nrules management page for the first time (no prebuilt detection rules\r\npackage installed).\r\n\r\n## Steps to test\r\n\r\n1. Ensure that the detection engine package is not installed: <img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216949857-a49731f3-535e-4813-95d3-62b2995500bb.png\"\r\nwidth=\"600\" />\r\n2. Navigate to the rules management page.\r\n\r\n### Previously\r\n\r\nThe \"Load Elastic Prebuilt Rules\" button is not visible, and users\r\ncannot install prebuilt rules.\r\n\r\n<img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216950430-4c57a3ad-3146-40a0-82c2-08c4fc2f65c3.png\"\r\nwidth=\"600\" />\r\n\r\n### With the fix\r\n\r\nUsers now see loading animation, indicating that the package\r\ninstallation happens in the background. Once the package installation\r\nfinishes, users see the Load Prebuilt rules button appear.\r\n\r\n\r\nhttps://user-images.githubusercontent.com/1938181/217585144-879fe288-0ede-4e01-b585-6aced1d89379.mov","sha":"4f1f2a84fdf3421d6b56aac82274dee2e881d376"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/150292","number":150292,"mergeCommit":{"message":"[Security Solution] Invalidate prebuilt rules status after package upgrade or installation (#150292)\n\n**Resolves: https://github.com/elastic/kibana/issues/150306**\r\n\r\n## Summary\r\n\r\nFixes the Load Prebuilt rules button not visible when users visit the\r\nrules management page for the first time (no prebuilt detection rules\r\npackage installed).\r\n\r\n## Steps to test\r\n\r\n1. Ensure that the detection engine package is not installed: <img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216949857-a49731f3-535e-4813-95d3-62b2995500bb.png\"\r\nwidth=\"600\" />\r\n2. Navigate to the rules management page.\r\n\r\n### Previously\r\n\r\nThe \"Load Elastic Prebuilt Rules\" button is not visible, and users\r\ncannot install prebuilt rules.\r\n\r\n<img\r\nsrc=\"https://user-images.githubusercontent.com/1938181/216950430-4c57a3ad-3146-40a0-82c2-08c4fc2f65c3.png\"\r\nwidth=\"600\" />\r\n\r\n### With the fix\r\n\r\nUsers now see loading animation, indicating that the package\r\ninstallation happens in the background. Once the package installation\r\nfinishes, users see the Load Prebuilt rules button appear.\r\n\r\n\r\nhttps://user-images.githubusercontent.com/1938181/217585144-879fe288-0ede-4e01-b585-6aced1d89379.mov","sha":"4f1f2a84fdf3421d6b56aac82274dee2e881d376"}}]}] BACKPORT--> Co-authored-by: Dmitrii Shevchenko <[email protected]>
- Loading branch information