Skip to content
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

CHE-1849: Modify start workspace by ID API method #1907

Merged
merged 1 commit into from
Jul 26, 2016
Merged

Conversation

vinokurig
Copy link
Contributor

@vinokurig vinokurig commented Jul 22, 2016

What does this PR do?

Adds query parameter to startById() method in WorkspaceService
to know if workspace needs to be recovered from snapshot or just to start.
Removes recoverWorkspace() API method from WorkspaceService.

What issues does this PR fix or reference?

When user starts workspace that has snapshot the 'recover from snapshots?' dialog will be shown.
If user will select not to recover and auto-restore will be enabled workspace will be recovered from snapshot anywhere.
#1849

Tests written?

Yes

Docs requirements?

API changes

@garagatyi
Copy link

@evoevodin @skabashnyuk Please take a look

@@ -116,10 +116,14 @@
* workspace ID
* @param envName
* the name of the workspace environment that should be used for start
* @param isRecover

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about option when server decides recover or not depending on auto-restore behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a client method and it will always send request with defined restore parameter, so server will never use auto-restore behavior if this method called

@voievodin
Copy link
Contributor

Please add yourself as author to the classes you changed

@codenvy-ci
Copy link

Build # 1284 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1284/ to view the results.

@vinokurig vinokurig force-pushed the CHE-1849 branch 2 times, most recently from 1272910 to f304e10 Compare July 25, 2016 08:15
@vinokurig
Copy link
Contributor Author

Added myself to authors

}
});
}

private void startById(@NotNull String workspaceId,
@Nullable String envName,
@Nullable boolean restore,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How primitive can be null?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean that Nullable annotations looks useless.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this have to be fixed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@garagatyi
Copy link

LGTM

@voievodin
Copy link
Contributor

+1

@codenvy-ci
Copy link

Build # 1291 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1291/ to view the results.

@codenvy-ci
Copy link

Build # 1294 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1294/ to view the results.

@skabashnyuk
Copy link
Contributor

ок

@codenvy-ci
Copy link

@vinokurig vinokurig force-pushed the CHE-1849 branch 3 times, most recently from b655b54 to 462c071 Compare July 26, 2016 06:36
When user starts workspace that has snapshot
the 'recover from snapshots?' dialog will be shown.
If user will select not to recover and auto-restore will be
enabled workspace will be recovered from snapshot anywhere.
@vinokurig vinokurig merged commit 921f62a into master Jul 26, 2016
@vinokurig vinokurig deleted the CHE-1849 branch July 26, 2016 06:42
@codenvy-ci
Copy link

Build # 1302 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1302/ to view the results.

@TylerJewell TylerJewell modified the milestone: 4.6.0 Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants