che icon indicating copy to clipboard operation
che copied to clipboard

Always fetch raw devfiles from the dashboard

Open akurinnoy opened this issue 1 year ago • 1 comments

Is your enhancement related to a problem? Please describe

Right now, the dashboard can only get raw devfiles from registries (defined in CR). The che-server is responsible for resolving all other URLs. But the che-server can't resolve some raw devfile URLs, like https://registry.devfile.io/devfiles/dotnet60/1.0.3.

Describe the solution you'd like

The dashboard should try to get the data from a URL and determine if it is a raw devfile. If it isn't, it should use the che-server API to resolve the URL.

Describe alternatives you've considered

No response

Additional context

https://github.com/eclipse-che/che-website/pull/98#issue-2246410666

akurinnoy avatar Apr 17 '24 12:04 akurinnoy

@akurinnoy @vinokurig smth. to discuss before the next sprint planning currently I'm not convinced that dashboard should handle raw devfiles e.g. the fix might be on che-server side to support URLs like https://registry.devfile.io/devfiles/dotnet60/1.0.3 (I suspect it does not work atm due to missing .devfile in the path)

ibuziuk avatar Apr 17 '24 13:04 ibuziuk