Commit 7ca7ce5
[Fleet] Fix missing Alerting tab for pre-installed integrations (elastic#270646)
# Summary
Closes elastic#256826
Pre-installed (bundled) integrations such as Fleet Server and Elastic
Synthetics were not showing the Alerting tab even when they had rule
templates installed. The tab visibility logic only checked
`packageInfo.assets.kibana` (the archive manifest), but for bundled
packages, alerting assets are recorded in
`installationInfo.installed_kibana` after installation — not in the
archive manifest. This adds a second check against `installed_kibana` so
the tab appears whenever alerting assets are actually installed,
regardless of install source. Also adds test coverage to future-proof
against regressions.
## Testing
1. Navigate to Data Management → Integrations → Installed integrations.
2. Open a pre-installed integration (e.g. Fleet Server or Elastic
Synthetics).
3. Verify the Alerting tab is now visible in the integration detail
navigation.
4. As a sanity check, confirm the rule templates shown in the Alerting
tab match those available under Stack Management → Rules → Create rule →
Template for that integration.
<img width="1706" height="1274" alt="image"
src="https://github.com/user-attachments/assets/c9da3850-cd03-41e7-bce4-af021ba71732"
/>
## Checklist
- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ] [Documentation
](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)was
added for features that require explanation or tutorials
- [ ] [Unit or functional tests
](https://www.elastic.co/guide/en/kibana/master/development-tests.html)were
updated or added to match the most common scenarios
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
release_note:breaking label should be applied in these situations.
- [ ] [Flaky Test Runner
](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)was used on
any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct release_note:* label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [ ] Review the [backport guidelines
](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)and
apply applicable backport:* labels.
## Identify risks
N/A
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>1 parent 42f79fe commit 7ca7ce5
2 files changed
Lines changed: 43 additions & 0 deletions
File tree
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
192 | 229 | | |
193 | 230 | | |
194 | 231 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
326 | 331 | | |
327 | 332 | | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
| |||
0 commit comments