Commit 6a56939
[streams][content pack] archive format and portable dashboards (elastic#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>1 parent b936b47 commit 6a56939
40 files changed
Lines changed: 2044 additions & 158 deletions
File tree
- .github
- oas_docs
- output
- src/platform
- test/api_integration/fixtures/kbn_archiver/saved_objects
- x-pack
- platform
- test
- api_integration/deployment_agnostic/apis/observability/streams
- assets
- helpers
- common/utils/server_route_repository
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| 823 | + | |
823 | 824 | | |
824 | 825 | | |
825 | 826 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53795 | 53795 | | |
53796 | 53796 | | |
53797 | 53797 | | |
53798 | | - | |
53799 | | - | |
53800 | | - | |
53801 | | - | |
53802 | | - | |
| 53798 | + | |
| 53799 | + | |
| 53800 | + | |
| 53801 | + | |
53803 | 53802 | | |
53804 | | - | |
53805 | | - | |
53806 | | - | |
53807 | | - | |
53808 | | - | |
| 53803 | + | |
| 53804 | + | |
| 53805 | + | |
| 53806 | + | |
| 53807 | + | |
| 53808 | + | |
| 53809 | + | |
| 53810 | + | |
| 53811 | + | |
| 53812 | + | |
| 53813 | + | |
| 53814 | + | |
| 53815 | + | |
| 53816 | + | |
| 53817 | + | |
| 53818 | + | |
| 53819 | + | |
| 53820 | + | |
| 53821 | + | |
| 53822 | + | |
| 53823 | + | |
| 53824 | + | |
| 53825 | + | |
| 53826 | + | |
| 53827 | + | |
| 53828 | + | |
| 53829 | + | |
| 53830 | + | |
| 53831 | + | |
| 53832 | + | |
| 53833 | + | |
| 53834 | + | |
| 53835 | + | |
| 53836 | + | |
| 53837 | + | |
| 53838 | + | |
| 53839 | + | |
| 53840 | + | |
| 53841 | + | |
| 53842 | + | |
| 53843 | + | |
53809 | 53844 | | |
53810 | | - | |
53811 | | - | |
| 53845 | + | |
| 53846 | + | |
| 53847 | + | |
| 53848 | + | |
| 53849 | + | |
| 53850 | + | |
| 53851 | + | |
| 53852 | + | |
| 53853 | + | |
| 53854 | + | |
| 53855 | + | |
53812 | 53856 | | |
53813 | | - | |
| 53857 | + | |
| 53858 | + | |
| 53859 | + | |
| 53860 | + | |
| 53861 | + | |
| 53862 | + | |
| 53863 | + | |
| 53864 | + | |
| 53865 | + | |
53814 | 53866 | | |
53815 | 53867 | | |
53816 | 53868 | | |
| |||
53852 | 53904 | | |
53853 | 53905 | | |
53854 | 53906 | | |
53855 | | - | |
| 53907 | + | |
| 53908 | + | |
| 53909 | + | |
| 53910 | + | |
53856 | 53911 | | |
53857 | 53912 | | |
| 53913 | + | |
53858 | 53914 | | |
53859 | 53915 | | |
53860 | 53916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53386 | 53386 | | |
53387 | 53387 | | |
53388 | 53388 | | |
53389 | | - | |
53390 | | - | |
53391 | | - | |
53392 | | - | |
53393 | | - | |
| 53389 | + | |
| 53390 | + | |
| 53391 | + | |
| 53392 | + | |
53394 | 53393 | | |
53395 | | - | |
53396 | | - | |
53397 | | - | |
53398 | | - | |
53399 | | - | |
| 53394 | + | |
| 53395 | + | |
| 53396 | + | |
| 53397 | + | |
| 53398 | + | |
| 53399 | + | |
| 53400 | + | |
| 53401 | + | |
| 53402 | + | |
| 53403 | + | |
| 53404 | + | |
| 53405 | + | |
| 53406 | + | |
| 53407 | + | |
| 53408 | + | |
| 53409 | + | |
| 53410 | + | |
| 53411 | + | |
| 53412 | + | |
| 53413 | + | |
| 53414 | + | |
| 53415 | + | |
| 53416 | + | |
| 53417 | + | |
| 53418 | + | |
| 53419 | + | |
| 53420 | + | |
| 53421 | + | |
| 53422 | + | |
| 53423 | + | |
| 53424 | + | |
| 53425 | + | |
| 53426 | + | |
| 53427 | + | |
| 53428 | + | |
| 53429 | + | |
| 53430 | + | |
| 53431 | + | |
| 53432 | + | |
| 53433 | + | |
| 53434 | + | |
53400 | 53435 | | |
53401 | | - | |
53402 | | - | |
| 53436 | + | |
| 53437 | + | |
| 53438 | + | |
| 53439 | + | |
| 53440 | + | |
| 53441 | + | |
| 53442 | + | |
| 53443 | + | |
| 53444 | + | |
| 53445 | + | |
| 53446 | + | |
53403 | 53447 | | |
53404 | | - | |
| 53448 | + | |
| 53449 | + | |
| 53450 | + | |
| 53451 | + | |
| 53452 | + | |
| 53453 | + | |
| 53454 | + | |
| 53455 | + | |
| 53456 | + | |
53405 | 53457 | | |
53406 | 53458 | | |
53407 | 53459 | | |
| |||
53443 | 53495 | | |
53444 | 53496 | | |
53445 | 53497 | | |
53446 | | - | |
| 53498 | + | |
| 53499 | + | |
| 53500 | + | |
| 53501 | + | |
53447 | 53502 | | |
53448 | 53503 | | |
| 53504 | + | |
53449 | 53505 | | |
53450 | 53506 | | |
53451 | 53507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48355 | 48355 | | |
48356 | 48356 | | |
48357 | 48357 | | |
48358 | | - | |
48359 | | - | |
48360 | | - | |
48361 | | - | |
48362 | | - | |
48363 | | - | |
48364 | | - | |
48365 | | - | |
| 48358 | + | |
| 48359 | + | |
| 48360 | + | |
| 48361 | + | |
| 48362 | + | |
| 48363 | + | |
| 48364 | + | |
| 48365 | + | |
| 48366 | + | |
| 48367 | + | |
| 48368 | + | |
| 48369 | + | |
| 48370 | + | |
| 48371 | + | |
| 48372 | + | |
| 48373 | + | |
| 48374 | + | |
| 48375 | + | |
| 48376 | + | |
| 48377 | + | |
| 48378 | + | |
| 48379 | + | |
| 48380 | + | |
| 48381 | + | |
| 48382 | + | |
| 48383 | + | |
| 48384 | + | |
| 48385 | + | |
| 48386 | + | |
| 48387 | + | |
| 48388 | + | |
| 48389 | + | |
| 48390 | + | |
| 48391 | + | |
| 48392 | + | |
| 48393 | + | |
| 48394 | + | |
| 48395 | + | |
| 48396 | + | |
| 48397 | + | |
| 48398 | + | |
| 48399 | + | |
| 48400 | + | |
| 48401 | + | |
| 48402 | + | |
48366 | 48403 | | |
48367 | 48404 | | |
48368 | 48405 | | |
| |||
48392 | 48429 | | |
48393 | 48430 | | |
48394 | 48431 | | |
| 48432 | + | |
| 48433 | + | |
48395 | 48434 | | |
| 48435 | + | |
48396 | 48436 | | |
48397 | 48437 | | |
48398 | 48438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51877 | 51877 | | |
51878 | 51878 | | |
51879 | 51879 | | |
51880 | | - | |
51881 | | - | |
51882 | | - | |
51883 | | - | |
51884 | | - | |
51885 | | - | |
51886 | | - | |
51887 | | - | |
| 51880 | + | |
| 51881 | + | |
| 51882 | + | |
| 51883 | + | |
| 51884 | + | |
| 51885 | + | |
| 51886 | + | |
| 51887 | + | |
| 51888 | + | |
| 51889 | + | |
| 51890 | + | |
| 51891 | + | |
| 51892 | + | |
| 51893 | + | |
| 51894 | + | |
| 51895 | + | |
| 51896 | + | |
| 51897 | + | |
| 51898 | + | |
| 51899 | + | |
| 51900 | + | |
| 51901 | + | |
| 51902 | + | |
| 51903 | + | |
| 51904 | + | |
| 51905 | + | |
| 51906 | + | |
| 51907 | + | |
| 51908 | + | |
| 51909 | + | |
| 51910 | + | |
| 51911 | + | |
| 51912 | + | |
| 51913 | + | |
| 51914 | + | |
| 51915 | + | |
| 51916 | + | |
| 51917 | + | |
| 51918 | + | |
| 51919 | + | |
| 51920 | + | |
| 51921 | + | |
| 51922 | + | |
| 51923 | + | |
| 51924 | + | |
51888 | 51925 | | |
51889 | 51926 | | |
51890 | 51927 | | |
| |||
51914 | 51951 | | |
51915 | 51952 | | |
51916 | 51953 | | |
| 51954 | + | |
| 51955 | + | |
51917 | 51956 | | |
| 51957 | + | |
51918 | 51958 | | |
51919 | 51959 | | |
51920 | 51960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
0 commit comments