-
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
Update / clean up snapshots on environments configuration update #3017
Comments
@TylerJewell @bmicklea is it ok to delete snaphots on batch environments update of a workspace? |
@mmorhun - I don't really understand. Are you saying that when a user renames a workspace we need to delete previous snapshots and restart the workspace from recipe? |
@bmicklea no, I am talking about environment configuration updating (In dashboard it calls Runtimes). I'll try to explain what I meant. |
Okay I think I understand:
For now let's just deny the operation for batch renames and updates. On Tue, Nov 8, 2016 at 11:14 AM, Mykola Morhun notifications@github.com
Brad Micklea | Operations | bmicklea@codenvy.com | 416.707.0792 |
@bmicklea, @mmorhun - I think I agree with Brad. If you are trying to do a batch update, we should deny the operation and provide a message explaining why we are denying it. If we deny batch update of environments, then is it the case that users must create new environment in a workspace if they want to do a big modification. I think the answer here will be yes. |
@TylerJewell I am not sure that I fully understand you. Please clarify.
|
Reading this through I think that when a user makes a change to a workspace configuration or environment we need to warn them that the change will force a deletion of the snapshot. The popup would be something like:
@mmorhun is there a way that the user can find out the snapshot ID in case they want to save it elsewhere for example? |
No, a user cannot get internal ID of a snapshot. And in case of snapshot deletion we delete record about it in database. |
@mmorhun is there really no way to keep the old snapshot when renaming a workspace or environment? That seems like a small change that shouldn't require deleting snapshots... |
It is a new environment, no need to keep old snapshots. |
@bmicklea In case of workspace renaming nothing changes. |
But can't we make the rule:
|
@bmicklea workspace renaming doesn't touch snapshots. |
Great, thanks |
Because of new spec and according to docs is not needed any more :( . |
We have API method which updates workspace configuration. One of the fields of this API method is array with environments configurations. But in case of batch update we cannot determine for sure which environments should be updated.
For example, we have 2 environments in our workspace. A user makes update request with 2 environments, but exchanges their names. The problem is that we cannot determine whether user just renamed both environments or changed all parameters except names.
This information is needed for updating snaphots. And if we cannot correctly update snapshots we should delete them.
Also we have other API method which can update specified environment. In this case snapshots should be updated and than workspace will be able to start from snapshot.
Use Cases
Is needed for: #2528
The text was updated successfully, but these errors were encountered: