Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Fix page loading when websockets are not available #109

Merged

Conversation

JPinkney
Copy link
Collaborator

@JPinkney JPinkney commented Jan 6, 2021

What does this PR do?

This PR makes it so that if websockets aren't available the page will still load correctly. Previously, if you had websockets disabled and try to open the dashboard the view will instantly go white and the console will contain an error with TypeError: availableTypes is undefined. This way makes it so that everything will work correctly in PreloadData

Which issue does this PR related to?

Pre-req for eclipse-che/che#18490

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

@che-bot
Copy link

che-bot commented Jan 6, 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

src/services/storageTypes.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@olexii4 olexii4 left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix the feedback.

@JPinkney JPinkney force-pushed the fix-loading-when-websocket-missing branch from 156b4f1 to 5e19a95 Compare January 11, 2021 10:36
@JPinkney JPinkney changed the title Set defaults if che.workspace.storage.available_types is not found Fix page loading when websockets are not available Jan 11, 2021
@che-bot
Copy link

che-bot commented Jan 11, 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

@JPinkney JPinkney force-pushed the fix-loading-when-websocket-missing branch from 5e19a95 to f4febe5 Compare January 11, 2021 13:13
@JPinkney JPinkney merged commit a95b0bb into che-incubator:master Jan 11, 2021
@JPinkney JPinkney deleted the fix-loading-when-websocket-missing branch January 11, 2021 13:13
…orrectly when websockets are unavailable

Signed-off-by: Josh Pinkney <joshpinkney@gmail.com>
@che-bot
Copy link

che-bot commented Jan 11, 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

akurinnoy pushed a commit to akurinnoy/che-dashboard-next that referenced this pull request Jan 15, 2021
Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants