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
Get rid of recover from snapshot dialog #4328
Conversation
@evoevodin could you please explain how I can start a workspace ignoring its snapshot if auto restoring is turned on and I've closed tab after workspace stop? |
From the API perspective you have 3 configuration options. From the UI no way, unless you go and edit workspace config directly on dashboard. |
@slemeur any opinions? |
I see two different use cases: Configuring default behavior per workspace Allowing the user to by-pass the default behavior
|
Deprecation requires notifying users prior to implementation. Do we plan to notify user in our release notes before merging? I think we need to provide what @slemeur describes above before removing this option. |
I don't think this is a deprecation - it's a change in behaviour but not a
deprecation.
We'll need to document it though.
--
Brad Micklea | Codenvy | bmicklea@codenvy.com | 416.707.0792
|
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2115/ |
I've added a workspace attribute |
588170b
to
bf9702a
Compare
@evoevodin: Stevan and I chatted - you have PM approval for merge. |
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2125/ |
bf9702a
to
0b9da35
Compare
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2130/ |
0b9da35
to
81782e8
Compare
Build finished. Please check console output at $BUILD_URL to view the results. |
Build # 2138 - FAILED Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2138/ to view the results. |
81782e8
to
b9a0382
Compare
QA report on the changes
|
Build finished. |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/2141/ |
What does this PR do?
Removes recover from snapshot dialog from workspace start sequence.
The behaviour of IDE is now the same to dashboard, so recovery is enforced
by either of:
restore
auto_restore
che.workspace.auto_restore
The dialog view was:
It's still possible to choose whether to recover from snapshot or not after workspace stop:
Along with that i turned on snapshot status notifications:
.
What issues does this PR fix or reference?
Resolves #3611
Changelog
Explicit snapshot creation becomes an internal approach.
Recover from snapshot dialog is removed from IDE.
Workspace REST API methods related to snapshots are deprecated.
Release Notes
API methods for creating and getting workspace snapshots are deprecated.
The reason is that snapshotting itself becomes an internal approach which is going to be
used on workspace stop only.
Pull request #3405 introduced a deprecation of
WorkspaceStatusEvent.getEventType()
the alternative would be to useWorkspaceStatusEvent.getStatus()
, but it turned out that usage of combination of status + previous status + optional error is not always convenient as the usage of the single event type, so it's reverted and not deprecated any more.Docs PR
N/A
As a dialog alternative it could make sense to provide a kind of control like 'checkbox' on dashboard which would allow to decide per workspace whether to snapshot/recover it(discussion is welcome).