Commit 9261fe0
# Backport
This will backport the following commits from `main` to `8.19`:
- [[Unified Doc Viewer] Fix doc viewer tab error handling
(#229220)](#229220)
<!--- Backport version: 10.0.1 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Davis
McPhee","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-07-28T03:40:19Z","message":"[Unified
Doc Viewer] Fix doc viewer tab error handling (#229220)\n\n##
Summary\n\nThis PR fixes the Unified Doc Viewer error handling so
unhandled errors\nwithin specific tabs don't cause all tabs to stop
working. It also\nsimplifies the doc viewer tab code and removes cruft
from when we used\nto support both React and Angular doc views. Lastly,
it updates the doc\nviewer tab error boundary to use
`KibanaSectionErrorBoundary` instead of\n`EuiErrorBoundary` so that
unhandled tab errors are captured in\ntelemetry.\n\nResolves
#207389.\n\n### Checklist\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nThis PR
removes support for non-React document viewer tabs registered\nthrough
the Unified Doc Viewer plugin. If you maintain an external\nplugin that
registers non-React document viewer tabs, consider migrating\nto React
or implementing a wrapper similar to how the
removed\n[`DocViewRenderTab`](https://github.com/elastic/kibana/blob/0f156d6501e5262fb853ec6124809223390e4806/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx)\nworked.
Note that backward compatibility with external plugins is
[not\nsupported](https://www.elastic.co/docs/extend/kibana/external-plugin-development)\nby
Kibana.\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Matthias Wilhelm
<[email protected]>","sha":"cbafad4df27592287d8ab13c820438de84d07eaf","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:version","v9.1.0","v8.19.0","v9.2.0","v9.1.1"],"title":"[Unified
Doc Viewer] Fix doc viewer tab error
handling","number":229220,"url":"https://github.com/elastic/kibana/pull/229220","mergeCommit":{"message":"[Unified
Doc Viewer] Fix doc viewer tab error handling (#229220)\n\n##
Summary\n\nThis PR fixes the Unified Doc Viewer error handling so
unhandled errors\nwithin specific tabs don't cause all tabs to stop
working. It also\nsimplifies the doc viewer tab code and removes cruft
from when we used\nto support both React and Angular doc views. Lastly,
it updates the doc\nviewer tab error boundary to use
`KibanaSectionErrorBoundary` instead of\n`EuiErrorBoundary` so that
unhandled tab errors are captured in\ntelemetry.\n\nResolves
#207389.\n\n### Checklist\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nThis PR
removes support for non-React document viewer tabs registered\nthrough
the Unified Doc Viewer plugin. If you maintain an external\nplugin that
registers non-React document viewer tabs, consider migrating\nto React
or implementing a wrapper similar to how the
removed\n[`DocViewRenderTab`](https://github.com/elastic/kibana/blob/0f156d6501e5262fb853ec6124809223390e4806/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx)\nworked.
Note that backward compatibility with external plugins is
[not\nsupported](https://www.elastic.co/docs/extend/kibana/external-plugin-development)\nby
Kibana.\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Matthias Wilhelm
<[email protected]>","sha":"cbafad4df27592287d8ab13c820438de84d07eaf"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/229550","number":229550,"state":"MERGED","mergeCommit":{"sha":"84f86498510d3cc25c60087e958741e4b55ca5e0","message":"[9.1]
[Unified Doc Viewer] Fix doc viewer tab error handling (#229220)
(#229550)\n\n# Backport\n\nThis will backport the following commits from
`main` to `9.1`:\n- [[Unified Doc Viewer] Fix doc viewer tab error
handling\n(#229220)](https://github.com/elastic/kibana/pull/229220)\n\n\n\n###
Questions ?\nPlease refer to the [Backport
tool\ndocumentation](https://github.com/sorenlouv/backport)\n\n\n\nCo-authored-by:
Davis McPhee <[email protected]>\nCo-authored-by: Matthias Wilhelm
<[email protected]>"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/229220","number":229220,"mergeCommit":{"message":"[Unified
Doc Viewer] Fix doc viewer tab error handling (#229220)\n\n##
Summary\n\nThis PR fixes the Unified Doc Viewer error handling so
unhandled errors\nwithin specific tabs don't cause all tabs to stop
working. It also\nsimplifies the doc viewer tab code and removes cruft
from when we used\nto support both React and Angular doc views. Lastly,
it updates the doc\nviewer tab error boundary to use
`KibanaSectionErrorBoundary` instead of\n`EuiErrorBoundary` so that
unhandled tab errors are captured in\ntelemetry.\n\nResolves
#207389.\n\n### Checklist\n\n- [ ] Any text added follows [EUI's
writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing),
uses\nsentence case text and includes
[i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n-
[
]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas
added for features that require explanation or tutorials\n- [x] [Unit or
functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere
updated or added to match the most common scenarios\n- [ ] If a plugin
configuration key changed, check if it needs to be\nallowlisted in the
cloud and added to the
[docker\nlist](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)\n-
[ ] This was checked for breaking HTTP API changes, and any
breaking\nchanges have been approved by the breaking-change committee.
The\n`release_note:breaking` label should be applied in these
situations.\n- [ ] [Flaky
Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\nused on any tests changed\n- [x] The PR description includes the
appropriate Release Notes section,\nand the correct `release_note:*`
label is applied per
the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n-
[x] Review the
[backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand
apply applicable `backport:*` labels.\n\n## Release note\n\nThis PR
removes support for non-React document viewer tabs registered\nthrough
the Unified Doc Viewer plugin. If you maintain an external\nplugin that
registers non-React document viewer tabs, consider migrating\nto React
or implementing a wrapper similar to how the
removed\n[`DocViewRenderTab`](https://github.com/elastic/kibana/blob/0f156d6501e5262fb853ec6124809223390e4806/src/platform/packages/shared/kbn-unified-doc-viewer/src/components/doc_viewer/doc_viewer_render_tab.tsx)\nworked.
Note that backward compatibility with external plugins is
[not\nsupported](https://www.elastic.co/docs/extend/kibana/external-plugin-development)\nby
Kibana.\n\n---------\n\nCo-authored-by: kibanamachine
<[email protected]>\nCo-authored-by:
Matthias Wilhelm
<[email protected]>","sha":"cbafad4df27592287d8ab13c820438de84d07eaf"}}]}]
BACKPORT-->
---------
Co-authored-by: kibanamachine <[email protected]>
1 parent 1a83bd5 commit 9261fe0
File tree
17 files changed
+182
-364
lines changed- src/platform
17 files changed
+182
-364
lines changedLines changed: 66 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 83 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
15 | | - | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
35 | 43 | | |
36 | 44 | | |
37 | 45 | | |
38 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
39 | 52 | | |
40 | 53 | | |
41 | 54 | | |
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
45 | | - | |
46 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
50 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
51 | 72 | | |
52 | | - | |
| 73 | + | |
53 | 74 | | |
54 | 75 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | 80 | | |
64 | 81 | | |
65 | 82 | | |
66 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
67 | 86 | | |
68 | | - | |
69 | 87 | | |
70 | 88 | | |
71 | 89 | | |
72 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
73 | 95 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
79 | 121 | | |
80 | 122 | | |
81 | 123 | | |
82 | 124 | | |
83 | | - | |
84 | | - | |
| 125 | + | |
| 126 | + | |
85 | 127 | | |
86 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
87 | 131 | | |
88 | 132 | | |
89 | 133 | | |
| |||
107 | 151 | | |
108 | 152 | | |
109 | 153 | | |
110 | | - | |
111 | | - | |
| 154 | + | |
| 155 | + | |
112 | 156 | | |
113 | 157 | | |
114 | 158 | | |
115 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
116 | 162 | | |
117 | 163 | | |
118 | 164 | | |
| |||
122 | 168 | | |
123 | 169 | | |
124 | 170 | | |
125 | | - | |
126 | | - | |
| 171 | + | |
| 172 | + | |
127 | 173 | | |
128 | 174 | | |
129 | 175 | | |
130 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
131 | 179 | | |
132 | 180 | | |
133 | 181 | | |
| |||
139 | 187 | | |
140 | 188 | | |
141 | 189 | | |
142 | | - | |
143 | | - | |
144 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
145 | 193 | | |
146 | 194 | | |
147 | | - | |
| 195 | + | |
148 | 196 | | |
149 | 197 | | |
150 | 198 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 0 additions & 25 deletions
This file was deleted.
0 commit comments