che
che copied to clipboard
Handle gracefully when an invalid devfile is found in a git repository
Is your enhancement related to a problem? Please describe
Currently Che starts successfully workspaces from a Git repository where there are no devfiles: the default component and editor will be used. When a workspace has a devfile that's invalid instead, there is no way for a user to start it using the default component (to fix the devfile for example).
Describe the solution you'd like
When Che finds a devfile in a git repository but that's an invalid devfile, we should warn the user and prompt him if the workspace should start anyway (ignoring the existing devfile) or if he wants to cancel the workspace startup.

This is related to https://github.com/eclipse/che/issues/20616.
Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen label to avoid stale mode.
I have updated the wireframe and the description.
I have updated the warning text after some a @RickJWagner comment on #21606
Sync'd with Red Hat JIRA https://issues.redhat.com/browse/CRW-3638