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

Use dashboard to restart the workspace #15180

Merged
merged 2 commits into from
Nov 14, 2019
Merged

Conversation

vitaliy-guliy
Copy link
Contributor

Signed-off-by: Vitaliy Gulyy vgulyy@redhat.com

What does this PR do?

Adds an event handler to the Dashboard to restart the workspace by the request from the IDE opened in the frame.

What issues does this PR fix or reference?

#15006

Connected with eclipse-che/che-theia#541

Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/bug Outline of a bug - must adhere to the bug report template. labels Nov 13, 2019
@che-bot
Copy link
Contributor

che-bot commented Nov 13, 2019

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

⚠️ https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

}, (error: any) => {
if (error && error.status === 304) {
defer.resolve();
return;
Copy link
Contributor

@AndrienkoAleksandr AndrienkoAleksandr Nov 13, 2019

Choose a reason for hiding this comment

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

Should we return return defer.promise;?

Copy link
Contributor

Choose a reason for hiding this comment

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

No, we only need there to resolve or reject that deferred object promise. And return it at the end of the method.

@che-bot
Copy link
Contributor

che-bot commented Nov 13, 2019

E2E tests of Eclipse Che Multiuser on OCP has been successful:

Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Nov 13, 2019

❌ E2E Happy path tests failed ❗

See Details

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

⚠️ https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

ℹ️ Use comment "crw-ci-test" to rerun happy path E2E test.

@che-bot
Copy link
Contributor

che-bot commented Nov 13, 2019

E2E tests of Eclipse Che Multiuser on OCP has been successful:

@evidolob
Copy link
Contributor

@vitaliy-guliy you need to cherry-pick this PR to 7.3.x branch

@vitaliy-guliy
Copy link
Contributor Author

Corresponding PR to 7.3.x #15194

@vitaliy-guliy
Copy link
Contributor Author

ci-test

@che-bot
Copy link
Contributor

che-bot commented Nov 14, 2019

E2E tests of Eclipse Che Multiuser on OCP has been successful:

@vitaliy-guliy vitaliy-guliy merged commit 490413c into master Nov 14, 2019
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Nov 14, 2019
@che-bot che-bot added this to the 7.5.0 milestone Nov 14, 2019
@l0rd l0rd mentioned this pull request Nov 14, 2019
23 tasks
skabashnyuk pushed a commit that referenced this pull request Jan 3, 2020
* Use dashboard to restart the workspace

Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>

* Use authorization header instead of query parameter

Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
@vitaliy-guliy vitaliy-guliy deleted the dashboard-restart branch February 18, 2020 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants