[7.x] [Ingest Manager] Support both zip & tar archives from Registry (#76197)#76485
Merged
jfsiii merged 1 commit intoelastic:7.xfrom Sep 2, 2020
jfsiii:backport/7.x/pr-76197
Merged
[7.x] [Ingest Manager] Support both zip & tar archives from Registry (#76197)#76485jfsiii merged 1 commit intoelastic:7.xfrom jfsiii:backport/7.x/pr-76197
jfsiii merged 1 commit intoelastic:7.xfrom
jfsiii:backport/7.x/pr-76197
Conversation
* Quick pass at restoring support for both zip & tar Restored unzip functions from #43764 Persist the `download` value returned by EPR (e.g. `/epr/system/system-0.5.3.zip` or `/epr/system/system-0.5.3.tar.gz`) as "archive key" for a package name/version combo. The same name&version should return the same archive. The value initially given by the registry. Based on that value, we decide which decompression to use. * Use template literal vs JSON.stringify for keygen * Factor unzip/untar logic out to getBufferExtractor * Add tests for getBufferExtractor * Replace `[aA]rchiveKey*` with `[aA]rchiveLocation*` * Include given name & version in error message Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/ingest_manager/server/services/epm/registry/cache.ts
Contributor
|
Pinging @elastic/ingest-management (Team:Ingest Management) |
ruflin
approved these changes
Sep 2, 2020
Contributor
ruflin
left a comment
There was a problem hiding this comment.
I tried this against the registry branch with zip files and things seem to be working as expected.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backports the following commits to 7.x: