Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Fix caching of images when multiple images specified #150

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

amisevsk
Copy link
Contributor

@amisevsk amisevsk commented Nov 25, 2019

What does this PR do?

Fix bug reading list of images specified in meta.yamls, where more than one unique URL would cause caching script to fail.

What issues does this PR fix or reference?

eclipse-che/che#15293

@amisevsk amisevsk requested a review from monaka November 25, 2019 18:48
@amisevsk
Copy link
Contributor Author

@monaka WDYT about this PR vs yours (#148)? They both work but if we ever get around to enabling CI on this repo, shellcheck will fail on the missing quotes in #148.

@amisevsk
Copy link
Contributor Author

I added a commit to resolve another issue I ran into while testing:

Images can be passed with query parameters, e.g. https://raw.githubusercontent.com/redhat-developer/codeready-workspaces/master/dependencies/che-devfile-registry/images/type-java.svg?sanitize=true

The devfile registry currently will save images with filename type-java.svg?sanitize=true, which makes them inaccessible in offline mode. Commit 3c68339 fixes that.

@monaka monaka self-requested a review December 3, 2019 03:38
@amisevsk amisevsk merged commit 54ac27e into eclipse-che:master Dec 3, 2019
amisevsk added a commit to amisevsk/che-devfile-registry that referenced this pull request Dec 4, 2019
* Fix caching of images when multiple images specified
* Remove query parameters from filename when saving devfile icon

Signed-off-by: Angel Misevski <[email protected]>
amisevsk added a commit that referenced this pull request Dec 4, 2019
* Fix caching of images when multiple images specified
* Remove query parameters from filename when saving devfile icon

Signed-off-by: Angel Misevski <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants