-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devfile Registry Should Serve Pictures #14844
Comments
cc @nickboldt as this is probably crw 2.0-relevant. |
If there's any info on how Theia would handle a relative path, I can implement this no problem. My main issue is knowing what to put for the icon/picture path so that Theia will be able to process it. |
@amisevsk I don't think theia handle devfile images, that would be more the dashboard, right? I think it would make sense to do the same "relative url" syntax as in html? |
P1, because crw 2.0-relevant |
what's the current "devfile provides no image or image can't be loaded" fallback image? is it the greyed-out Che logo? Asking because we need to reskin that too and if it's no an asset in the devfile registry, it must be coming from the dashboard css somewhere... cc: @vitaliy-guliy another question about white labelling. Added to checklist in #14110 (comment) |
edit: misunderstanding on my part. |
@tsmaeder I don't think there's a good way to get the devfile registry to serve pictures currently, since every time it's deployed it can be with a different URL. A prerequisite for this would be some way to handle the relative links we'd be putting in the devfile registry (e.g. if I put WDYT? |
@amisevsk I agree that there is no short-term fix here: the underlying problem is that the plugin registry is just passively serving files which are interpreted 100% by the consumer. If we ever want to scale the registry (to thousands of plugins), we'll need to have a proper API (for example, to search). |
@tsmaeder I created issue #15091 for provisioning a registry's public endpoint as an env var to support this; if we could rely on knowing what our URL is, I could implement this without much trouble, even without a proper API (we already do it for the devfile registry, for cached project zips). The issue with consumers interpreting relative URLs is that we would still need to pass the registry URL around -- Theia gets a devfile from Che; does it know where that devfile came from? |
It seems to be fixed now https://github.com/eclipse/che-devfile-registry/tree/master/images |
We currently have no place to serve the images from that represent the devfiles in the meta.yaml in the devfile registry.
Since these svg files are often developed together, we should find a way to serve those files from the devfile registry and we should be able to reference them in a non-absolute way from the meta.yaml file.
Currently, we reference the images at their github location, but abusing Github as a content delivery network seems asking for trouble.
See here for examples: https://github.com/redhat-developer/codeready-workspaces/tree/master/dependencies/che-devfile-registry/devfiles (PR's pending)
The text was updated successfully, but these errors were encountered: