Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Rules migration] Add possibility to navigate to a specific mig…
…ration (#11264) (#201597) (#201735) # Backport This will backport the following commits from `main` to `8.x`: - [[Rules migration] Add possibility to navigate to a specific migration (#11264) (#201597)](#201597) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ievgen Sorokopud","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-26T09:39:17Z","message":"[Rules migration] Add possibility to navigate to a specific migration (#11264) (#201597)\n\n## Summary\r\n\r\n[Internal link](https://github.com/elastic/security-team/issues/10820)\r\nto the feature details\r\n\r\nWith these changes we:\r\n* allow user to navigate to a specific migration by its id\r\n* handle different possible states on migrations rules page:\r\n* `no migrations`: if there are no existing migrations we will redirect\r\nuser to the landing page\r\n* `unknown selected migration`: if unknown migration id is specified in\r\nthe URL, then \"Unknown Migration\" page will be shown\r\n* `no selected migration`: if user lands on the root \"SIEM migrations\r\nrules\" page, then most recent migration will be shown\r\n * `show existing migration`: selected migration will be shown\r\n\r\n### Screenshots\r\n\r\n**Unknown migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 14 46 56\"\r\nsrc=\"https://github.com/user-attachments/assets/45f51489-e4f8-496f-86e6-d19130bd6769\">\r\n\r\n**Show existing migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 15 03 53\"\r\nsrc=\"https://github.com/user-attachments/assets/ca866432-5a61-44c7-8bec-7aa95ba73156\">","sha":"17410c39279fcca551d3af7299b04d1ccf8ceefa","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:Threat Hunting","Team: SecuritySolution","backport:prev-minor"],"title":"[Rules migration] Add possibility to navigate to a specific migration (#11264)","number":201597,"url":"https://github.com/elastic/kibana/pull/201597","mergeCommit":{"message":"[Rules migration] Add possibility to navigate to a specific migration (#11264) (#201597)\n\n## Summary\r\n\r\n[Internal link](https://github.com/elastic/security-team/issues/10820)\r\nto the feature details\r\n\r\nWith these changes we:\r\n* allow user to navigate to a specific migration by its id\r\n* handle different possible states on migrations rules page:\r\n* `no migrations`: if there are no existing migrations we will redirect\r\nuser to the landing page\r\n* `unknown selected migration`: if unknown migration id is specified in\r\nthe URL, then \"Unknown Migration\" page will be shown\r\n* `no selected migration`: if user lands on the root \"SIEM migrations\r\nrules\" page, then most recent migration will be shown\r\n * `show existing migration`: selected migration will be shown\r\n\r\n### Screenshots\r\n\r\n**Unknown migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 14 46 56\"\r\nsrc=\"https://github.com/user-attachments/assets/45f51489-e4f8-496f-86e6-d19130bd6769\">\r\n\r\n**Show existing migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 15 03 53\"\r\nsrc=\"https://github.com/user-attachments/assets/ca866432-5a61-44c7-8bec-7aa95ba73156\">","sha":"17410c39279fcca551d3af7299b04d1ccf8ceefa"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201597","number":201597,"mergeCommit":{"message":"[Rules migration] Add possibility to navigate to a specific migration (#11264) (#201597)\n\n## Summary\r\n\r\n[Internal link](https://github.com/elastic/security-team/issues/10820)\r\nto the feature details\r\n\r\nWith these changes we:\r\n* allow user to navigate to a specific migration by its id\r\n* handle different possible states on migrations rules page:\r\n* `no migrations`: if there are no existing migrations we will redirect\r\nuser to the landing page\r\n* `unknown selected migration`: if unknown migration id is specified in\r\nthe URL, then \"Unknown Migration\" page will be shown\r\n* `no selected migration`: if user lands on the root \"SIEM migrations\r\nrules\" page, then most recent migration will be shown\r\n * `show existing migration`: selected migration will be shown\r\n\r\n### Screenshots\r\n\r\n**Unknown migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 14 46 56\"\r\nsrc=\"https://github.com/user-attachments/assets/45f51489-e4f8-496f-86e6-d19130bd6769\">\r\n\r\n**Show existing migration**\r\n\r\n<img width=\"1312\" alt=\"Screenshot 2024-11-25 at 15 03 53\"\r\nsrc=\"https://github.com/user-attachments/assets/ca866432-5a61-44c7-8bec-7aa95ba73156\">","sha":"17410c39279fcca551d3af7299b04d1ccf8ceefa"}}]}] BACKPORT--> Co-authored-by: Ievgen Sorokopud <[email protected]>
- Loading branch information