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

Add banner that triggers when websockets arent available #126

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

JPinkney
Copy link
Contributor

@JPinkney JPinkney commented Jan 13, 2021

Signed-off-by: Josh Pinkney joshpinkney@gmail.com

What does this PR do?

This PR adds a new component called WebSocketBannerAlert that is used for showing the banner alert when a WebSocket is failing to connect

Pre-req PRs:
che-incubator/che-dashboard-next#109
#127
eclipse-che/che-workspace-client#50

What issues does this PR fix or reference?

eclipse-che/che#18490

Release Notes

Added WebSocket troubleshooting banner that triggers when WebSockets are not available

Docs PR

Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

I think che-workspace-client version should be updated https://www.npmjs.com/package/@eclipse-che/workspace-client/v/0.0.1-1610629049 and then PR check should success

@JPinkney
Copy link
Contributor Author

I'm updating the workspace-client now, #127 is still required for tests to pass since the component isn't available in the current version of patternfly/react-core

@che-bot
Copy link
Contributor

che-bot commented Jan 20, 2021

❌ E2E dashboard-next tests failed ❗

See Details

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

  • Use comment "[dashboard-next-ci-test]" to rerun the 'dashboard-next' e2e tests

@che-bot
Copy link
Contributor

che-bot commented Jan 20, 2021

❌ E2E dashboard-next tests failed ❗

See Details

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

  • Use comment "[dashboard-next-ci-test]" to rerun the 'dashboard-next' e2e tests

Copy link
Member

@sleshchenko sleshchenko left a comment

Choose a reason for hiding this comment

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

I did not tested yet, but code LGTM

@@ -26,13 +29,18 @@ export class CheWorkspaceClient {
private websocketContext: string;
private _restApiClient: IRemoteAPI;
private _jsonRpcMasterApi: IWorkspaceMasterApi;
private _failingWebSockets: string[];
private webSocketEventEmitter: EventEmitter;
private webSocketEventName = 'websocketChanged';
Copy link
Member

Choose a reason for hiding this comment

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

If I understand code correctly, I wonder if Che Workspace Client should expose available event names, instead of creating constant in each of client. But it does not block the current PR, but just small refactoring suggestion for later.

@sleshchenko sleshchenko deleted the branch eclipse-che:master January 22, 2021 13:42
@sleshchenko sleshchenko reopened this Jan 22, 2021
@sleshchenko sleshchenko changed the base branch from main-react to master January 22, 2021 13:43
@che-bot
Copy link
Contributor

che-bot commented Jan 22, 2021

❌ E2E dashboard-next tests failed ❗

See Details

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

  • Use comment "[dashboard-next-ci-test]" to rerun the 'dashboard-next' e2e tests

@che-bot
Copy link
Contributor

che-bot commented Jan 22, 2021

❌ E2E dashboard-next tests failed ❗

See Details

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

  • Use comment "[dashboard-next-ci-test]" to rerun the 'dashboard-next' e2e tests

Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
@JPinkney JPinkney merged commit a7c5645 into eclipse-che:master Jan 22, 2021
@JPinkney JPinkney deleted the override-params2 branch January 22, 2021 19:17
@che-bot
Copy link
Contributor

che-bot commented Jan 22, 2021

❌ E2E dashboard-next tests failed ❗

See Details

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

  • Use comment "[dashboard-next-ci-test]" to rerun the 'dashboard-next' e2e tests

@che-bot che-bot added this to the 7.26 milestone Jan 22, 2021
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.

5 participants