Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.8] [Cases] Fix bug with registered attachmets memoization (#158441) (
#158559) # Backport This will backport the following commits from `main` to `8.8`: - [[Cases] Fix bug with registered attachmets memoization (#158441)](#158441) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Christos Nasikas","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-26T12:43:43Z","message":"[Cases] Fix bug with registered attachmets memoization (#158441)\n\n## Summary\r\n\r\nIn #156179 I fixed a bug with the\r\nmemorization of the react components of registered attachments in Cases.\r\nThis fix introduced another bug which I am fixing in this PR.\r\n\r\nFixes: https://github.com/elastic/kibana/issues/158447\r\n\r\n### Bug\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/782a552c-29bd-4bae-b66b-8620cbdeb5ff\r\n\r\n### Fix\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/a4834ce2-73c8-48cb-9ec4-f480133eca38\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n## Release notes\r\n\r\nFix a bug where ML embeddables, OsQuery, and IoCs attachments in a case\r\nrender the wrong view.","sha":"a2a0860f65013167a8e097d821eefa7fe81b8832","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:fix","Team:ResponseOps","Feature:Cases","v8.9.0","v8.8.1"],"number":158441,"url":"https://github.com/elastic/kibana/pull/158441","mergeCommit":{"message":"[Cases] Fix bug with registered attachmets memoization (#158441)\n\n## Summary\r\n\r\nIn #156179 I fixed a bug with the\r\nmemorization of the react components of registered attachments in Cases.\r\nThis fix introduced another bug which I am fixing in this PR.\r\n\r\nFixes: https://github.com/elastic/kibana/issues/158447\r\n\r\n### Bug\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/782a552c-29bd-4bae-b66b-8620cbdeb5ff\r\n\r\n### Fix\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/a4834ce2-73c8-48cb-9ec4-f480133eca38\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n## Release notes\r\n\r\nFix a bug where ML embeddables, OsQuery, and IoCs attachments in a case\r\nrender the wrong view.","sha":"a2a0860f65013167a8e097d821eefa7fe81b8832"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/158441","number":158441,"mergeCommit":{"message":"[Cases] Fix bug with registered attachmets memoization (#158441)\n\n## Summary\r\n\r\nIn #156179 I fixed a bug with the\r\nmemorization of the react components of registered attachments in Cases.\r\nThis fix introduced another bug which I am fixing in this PR.\r\n\r\nFixes: https://github.com/elastic/kibana/issues/158447\r\n\r\n### Bug\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/782a552c-29bd-4bae-b66b-8620cbdeb5ff\r\n\r\n### Fix\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/7871006/a4834ce2-73c8-48cb-9ec4-f480133eca38\r\n\r\n### Checklist\r\n\r\nDelete any items that are not applicable to this PR.\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for breaking API changes and was [labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n## Release notes\r\n\r\nFix a bug where ML embeddables, OsQuery, and IoCs attachments in a case\r\nrender the wrong view.","sha":"a2a0860f65013167a8e097d821eefa7fe81b8832"}},{"branch":"8.8","label":"v8.8.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
- Loading branch information