-
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
Message "Devfile version 1 found" is shown although project has no Devfile #21957
Comments
Thanks for opening this @nickboldt. I am raising the sev to P1 as this misleading message is shown systematically to new users that are trying Che on their git repository (where they didn't had the chance to include a devfile, yet). And considered that we support v2.2 of the devfile spec we should say "converting to devfile version 2" (although here there is nothing to convert so the converting message doesn't make any sense). |
@olexii4 @akurinnoy folks, just a heads-up we would need to take this issue in the next sprint and backport to 7.60.x |
Seems like a simple thing to fix... |
@nickboldt not really following how exactly eclipse-che/che-dashboard#714 can help with the PR contains just cosmetic wording changes and does not seem to handle the case when the project does not contain a devfile. |
I moved the second half of the comment up inside the if block so that it won't echo unless a conversion is actually happening, for a found devfile. If no devfile is found, then the message should just say "using the default" and not "which we also converted from v1 to v2 for some reason" :D But if you have a better solution, happy to review your PR. Was just looking for a simple fix to a confusing error message. |
Is your task related to a problem? Please describe
There's a message reported when a project is loaded with no devfile, which states that:
Describe the solution you'd like
If v2.1 is the curent default, then why are we using a v1 default for workspaces without a devfile, then converting it to 2.1?
Surely we should use a v2.1 devfile from the start and avoid the dependency on the devfile converter API?
Describe alternatives you've considered
If in fact this is just a bad status message, we could simply remove the note about conversion.
But it's worth making sure we use a default devfile that's already v2.1
Additional context
screenshot is from dev sandbox, Dev Spaces 3.3.0: https://devspaces.apps.sandbox.x8i5.p1.openshiftapps.com/dashboard/#/load-factory?url=https%3A%2F%2Fgithub.com%2Fnickboldt%2Fwin10-bluetooth-headphones%2F
Error icon is because I already had this same project open, so ignore that.
The text was updated successfully, but these errors were encountered: