-
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
deploy_che.sh deletes project by default #13436
Comments
why on earth would we blindly delete the project without any confirmation? This is a high priority temporary fix to eclipse-che#13436 until a better solution is found.
@l0rd @davidfestal Can either of you respond to this, please? @wenzowski I see you are using deploy_che.sh - is this also an issue when deploying Che with the Operator? https://operatorhub.io/operator/cheoperator |
When specify --project=my-project, if my-projects is an existing project, it will delete it without giving a chance to quit. |
This is expected behavior I think. I believe CHE_REMOVE_PROJECT means should we delete or not before installation. @wenzowski @kuanfandevops What part of documentation made confusion? |
you should see |
I didn't set any value to CHE_REMOVE_PROJECT. What I add in my comment is all I can see from console. I recommend to set the env variable to be false by default and ask user's approval before removing the project. |
What are we trying to achieve here? Me as a developer I'm quite happy with |
@skabashnyuk Per the bug filed, that's exactly what I saw. This is terrible behaviour. DO NOT DELETE WITHOUT CONFIRMATION. The point of this bug is that "expected" behaviour is deeply and seriously flawed. I'm not trying to be an ass here; you are setting people up for irrecoverable data loss and you must change this default. |
Then at least document the default? Imagine, for a second, that a developer actually had something running in the project they're deploying to? This bug is open because delete-by-default is an unacceptable first experience. I would like to at least see a |
I haven't had a chance to try out the operator yet. This issue is specific to the |
The part where the project named |
I agree that this behavior is bad for an official user-facing functionality. I actually wasn't aware 👍 for only removing the project if explicitly asked for by a command line parameter. |
Let's imagine we have parameter |
@wenzowski your concern makes a lot of sense. I am not sure if we are going to fix the script Currently |
Can you at least put a big warning in documentation? I just lost like a week of work... |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Description
Why on earth is
CHE_REMOVE_PROJECT=true
the default increateNewProject()
@eivantsov? No harm done here, but that's really going to bite someone.Pretty shocking first experience following the docs.
Reproduction Steps
😿 api call already sent before a
^C
could stop the scriptOS and version:
Diagnostics:
Whoops...all gone.
The text was updated successfully, but these errors were encountered: