Skip to content

[8.19] [streams][content pack] archive format and portable dashboards (#217288)#218870

Merged
klacabane merged 6 commits intoelastic:8.19from
klacabane:backport/8.19/pr-217288
Apr 23, 2025
Merged

[8.19] [streams][content pack] archive format and portable dashboards (#217288)#218870
klacabane merged 6 commits intoelastic:8.19from
klacabane:backport/8.19/pr-217288

Conversation

@klacabane
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

…ic#217288)

## Summary

Allows one to export and import content packs in archive format. The
format follows the integration content package's format so it becomes
possible to import existing integration packages.

Content packs only support dashboard assets at the moment.
A pattern replacement logic has been implemented for dashboards and
referenced data views:
- at export time, any pattern matching the source stream will be
replaced with a placeholder. Other patterns will remain as-is unless
user explicitly ask to replace them
- at import time, the placeholders are replaced with the target stream
pattern

For example, if a dashboard is first exported from stream `logs.nodejs`
and reads data from patterns `logs.nodejs` and `logs.nodejs.prod`, the
patterns will be updated to `logs.ruby` and `logs.ruby.prod` when
imported into `logs.ruby` stream.

The relevant UI components are hidden behind a feature flag, set the
following in `kibana.dev.yml` to enable them:
`feature_flags.overrides.featureFlagsStreams.contentPackUIEnabled: true`

https://github.com/user-attachments/assets/9fb07daf-9fb9-4c62-9f5b-387e1833eaf0

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: tommyers-elastic <106530686+tommyers-elastic@users.noreply.github.com>
(cherry picked from commit 6a56939)

# Conflicts:
#	.github/CODEOWNERS
#	oas_docs/bundle.json
#	oas_docs/output/kibana.yaml
@klacabane klacabane added the backport This PR is a backport of another PR label Apr 22, 2025
@klacabane klacabane enabled auto-merge (squash) April 22, 2025 17:56
@klacabane klacabane disabled auto-merge April 22, 2025 17:58
klacabane and others added 4 commits April 22, 2025 20:06
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/dashboards --include-path /api/alerting/maintenance_window --update --no-serverless'
@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 22, 2025

💔 Build Failed

Failed CI Steps

History

@klacabane klacabane merged commit ff193c6 into elastic:8.19 Apr 23, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants