Skip to content

[7.x] [Ingest Manager] Install uploaded package (#77986)#79505

Merged
skh merged 1 commit intoelastic:7.xfrom
skh:backport/7.x/pr-77986
Oct 5, 2020
Merged

[7.x] [Ingest Manager] Install uploaded package (#77986)#79505
skh merged 1 commit intoelastic:7.xfrom
skh:backport/7.x/pr-77986

Conversation

@skh
Copy link
Copy Markdown
Contributor

@skh skh commented Oct 5, 2020

Backports the following commits to 7.x:

* Refactor: installPackage -> installPackageFromRegistry

* Refactor: factor out source-agnostic installation steps

* Unpack and cache uploaded zip and tgz files.

* Add basic archive verification and parse manifest.

* Catch error when zip archive is uploaded as gzip.

* Add API integration tests.

* Remove unnecessary use of "package key" concept.

* Add 'install_source' property to saved object epm-packages.

* Adjust tests.

* Add API integration test for manifest missing fields.

* Refactor loadArchive -> loadArchivePackage.

* Refactor caching of package archive content

* Get datasets and config templates from manifest files.

* Use file paths from archive instead of asset paths from registry.

* Correctly load registry packages into cache

* Use InstallablePackage instead of RegistryPackage where possible.

* Actually install uploaded package.

* Add missing field to saved objects in tests.

* Adjust unit test to pick buffer extractor.

* Adjust unit test.

* Fix and re-enable getAsset() test.

* Adjust integration tests.

* Make error message match test.

* Pick data_stream.dataset from manifest if set.

* dataset -> data_stream also in comments

* Remove unused variable.

* Use pkgToPkgKey() where appropriate.

* More dataset -> data stream renaming.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@skh skh added the backport This PR is a backport of another PR label Oct 5, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

distributable file count

id before after diff
default 47391 47392 +1

Saved Objects .kibana field count

id before after diff
epm-packages 14 15 +1

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@skh skh merged commit b6d3f33 into elastic:7.x Oct 5, 2020
@skh skh deleted the backport/7.x/pr-77986 branch October 5, 2020 18:39
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.

2 participants