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

CODENVY-931: add snapshot creating state to workspace status #2747

Merged
merged 1 commit into from
Oct 11, 2016

Conversation

ashumilova
Copy link
Contributor

What does this PR do?

Adds snapshot creating state to workspace status indicator.

What issues does this PR fix or reference?

codenvy/codenvy#931

Previous behavior

Snapshot creating was shown as stopped workspace.

New behavior

Orange circle for snapshot in progress is displayed.

Signed-off-by: Ann Shumilova ashumilova@codenvy.com

if (this.workspaceStatuses.indexOf(message.eventType) >= 0) {
this.getWorkspaceById(workspaceId).status = message.eventType;
} else if (message.eventType === 'SNAPSHOT_CREATED') {
this.getWorkspaceById(workspaceId).status = 'RUNNING';
Copy link
Contributor

Choose a reason for hiding this comment

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

status is RUNNING ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, workspace snapshot can be created for running workspace only, so it's really running. But we artificially introduce - SNAPSHOT_CREATING - to display it as status, though real status is still RUNNING. And we get back to it on SNAPSHOT_CREATED event

Copy link
Contributor

Choose a reason for hiding this comment

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

ok I see thx

if (this.workspaceStatuses.indexOf(message.eventType) >= 0) {
this.getWorkspaceById(workspaceId).status = message.eventType;
} else if (message.eventType === 'SNAPSHOT_CREATED') {
this.getWorkspaceById(workspaceId).status = 'RUNNING';
Copy link
Contributor

Choose a reason for hiding this comment

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

ok I see thx

@codenvy-ci
Copy link

Build # 674 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/674/ to view the results.

@TylerJewell
Copy link

Missing labels

Signed-off-by: Ann Shumilova <ashumilova@codenvy.com>
@ashumilova ashumilova added this to the 5.0.0-M6 milestone Oct 11, 2016
@ashumilova ashumilova merged commit dfce2e0 into master Oct 11, 2016
@ashumilova ashumilova deleted the CODENVY-931 branch October 11, 2016 06:16
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
CODENVY-931: add snapshot creating state to workspace status
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.

None yet

4 participants