Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.9] [Security Solution][Fix] Empty Alert Table when upgrading from …
…8.8.x -> 8.9 (#162063) (#162120) # Backport This will backport the following commits from `main` to `8.9`: - [[Security Solution][Fix] Empty Alert Table when upgrading from 8.8.x -> 8.9 (#162063)](#162063) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Jatin Kathuria","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-07-18T08:57:12Z","message":"[Security Solution][Fix] Empty Alert Table when upgrading from 8.8.x -> 8.9 (#162063)\n\n## Summary\r\n\r\nWhen users upgrade from `8.8.x` -> `8.9` version, users observe empty\r\ntable as shown below.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/7485038/20549edb-07b9-4124-a0ac-7515cf0e2796)\r\n\r\n\r\nBelow are steps to reproduce this issue and test it:\r\n\r\n1. Boot [email protected]\r\n2. Clear Local storage.\r\n3. Go to Security -> Alerts\r\n4. Add Columns `_id` or any other column \r\n5. Upgrade to `8.9`\r\n6. The table will empty as shown in above screenshot.\r\n\r\n\r\n## Fix\r\n\r\nThis fix saperates out the migraton from 8.7 -> 8.8 and add a new\r\nmigration for upgrading from 8.8 -> 8.9\r\n\r\n`migrateAlertTableStateToTriggerActionsState` migrates table from `v8.7\r\n-> v8.8`,\r\n\r\n`migrateTriggerActionsVisibleColumnsAlertTable88xTo89` migrates from\r\n`v8.8.x` -> `v8.9`\r\n\r\nCombining both of them may lead to issues when users are migrating from\r\n`v8.7` -> `v8.9` or `v8.8` -> `v8.9`","sha":"0516caed1de3b72efa3f5c1282975c34962f7999","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","Team:Threat Hunting:Investigations","v8.9.0","v8.10.0"],"number":162063,"url":"https://github.com/elastic/kibana/pull/162063","mergeCommit":{"message":"[Security Solution][Fix] Empty Alert Table when upgrading from 8.8.x -> 8.9 (#162063)\n\n## Summary\r\n\r\nWhen users upgrade from `8.8.x` -> `8.9` version, users observe empty\r\ntable as shown below.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/7485038/20549edb-07b9-4124-a0ac-7515cf0e2796)\r\n\r\n\r\nBelow are steps to reproduce this issue and test it:\r\n\r\n1. Boot [email protected]\r\n2. Clear Local storage.\r\n3. Go to Security -> Alerts\r\n4. Add Columns `_id` or any other column \r\n5. Upgrade to `8.9`\r\n6. The table will empty as shown in above screenshot.\r\n\r\n\r\n## Fix\r\n\r\nThis fix saperates out the migraton from 8.7 -> 8.8 and add a new\r\nmigration for upgrading from 8.8 -> 8.9\r\n\r\n`migrateAlertTableStateToTriggerActionsState` migrates table from `v8.7\r\n-> v8.8`,\r\n\r\n`migrateTriggerActionsVisibleColumnsAlertTable88xTo89` migrates from\r\n`v8.8.x` -> `v8.9`\r\n\r\nCombining both of them may lead to issues when users are migrating from\r\n`v8.7` -> `v8.9` or `v8.8` -> `v8.9`","sha":"0516caed1de3b72efa3f5c1282975c34962f7999"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162063","number":162063,"mergeCommit":{"message":"[Security Solution][Fix] Empty Alert Table when upgrading from 8.8.x -> 8.9 (#162063)\n\n## Summary\r\n\r\nWhen users upgrade from `8.8.x` -> `8.9` version, users observe empty\r\ntable as shown below.\r\n\r\n\r\n![image](https://github.com/elastic/kibana/assets/7485038/20549edb-07b9-4124-a0ac-7515cf0e2796)\r\n\r\n\r\nBelow are steps to reproduce this issue and test it:\r\n\r\n1. Boot [email protected]\r\n2. Clear Local storage.\r\n3. Go to Security -> Alerts\r\n4. Add Columns `_id` or any other column \r\n5. Upgrade to `8.9`\r\n6. The table will empty as shown in above screenshot.\r\n\r\n\r\n## Fix\r\n\r\nThis fix saperates out the migraton from 8.7 -> 8.8 and add a new\r\nmigration for upgrading from 8.8 -> 8.9\r\n\r\n`migrateAlertTableStateToTriggerActionsState` migrates table from `v8.7\r\n-> v8.8`,\r\n\r\n`migrateTriggerActionsVisibleColumnsAlertTable88xTo89` migrates from\r\n`v8.8.x` -> `v8.9`\r\n\r\nCombining both of them may lead to issues when users are migrating from\r\n`v8.7` -> `v8.9` or `v8.8` -> `v8.9`","sha":"0516caed1de3b72efa3f5c1282975c34962f7999"}}]}] BACKPORT--> Co-authored-by: Jatin Kathuria <[email protected]>
- Loading branch information