-
Notifications
You must be signed in to change notification settings - Fork 52
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
Switch to existing tab with the same workspace #1111
Conversation
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1111 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1111", name: che-dashboard}]}}]" |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested these changes with Minikube. Everything looks like it was expected.
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1111 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1111", name: che-dashboard}]}}]" |
@akurinnoy : I have followed test scenario from description on Eclipse Che Next with quay.io/eclipse/che-dashboard:pr-1111 and failed on step 2:
There was no new workspace in the Workspaces list, of RECENT WORKSPACES section of left panel after the new Empty workspace has started: New running workspace had been displayed after the refresh of browser tab, but existing workspace tab wasn't focused. Note: it took some time between step 1 and 2, long enough to have user oauth session expired. Here the screencast of test case which is using logout to reproduce user oauth session expiration:
There were doubled workspace tab, which switched each other unexpectedly, and workspace start page showed error:
Could you please take a look? |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1111 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1111", name: che-dashboard}]}}]" |
@dmytro-ndp can you please test this PR one more time? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1111 +/- ##
==========================================
- Coverage 89.63% 89.49% -0.14%
==========================================
Files 407 408 +1
Lines 41480 41606 +126
Branches 2773 2769 -4
==========================================
+ Hits 37180 37235 +55
- Misses 4272 4346 +74
+ Partials 28 25 -3 ☔ View full report in Codecov by Sentry. |
@akurinnoy: thank you for the fixing relogin case. I have also identified 2 more test cases: Case "Open starting workspace again"
Case "Workspace with IntellijIDEA Community Editor"
I have also noticed https://issues.redhat.com/browse/CRW-6287 error: |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1111 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1111", name: che-dashboard}]}}]" |
Hi @dmytro-ndp ,
This has been the case for quite some time, and this PR doesn't change that behavior.
The latest fixup commit should fix these cases. |
@akurinnoy : thanks for the addressing review notices!
I can confirm that those cases are working as expected in the fresh User Dashboard deployed from this PR (quay.io/eclipse/che-dashboard@sha256:b6e591b610156484f1eb6195293c575c1d6f2487198efcadad3f93aa7598a229). Good job! I have also noticed that it was necessary to click several times on the workspace name in the left panel of the User Dashboard to redirect to the new tab, which was a bit annoying. However, I am not sure if this issue is specific to this PR because I encountered similar behavior on DevSandbox. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, dmytro-ndp, ibuziuk, olexii4 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?
When opening a workspace, the dashboard looks for an already open tab with the same workspace. If a tab exists, the dashboard focuses it without creating a new tab.
What issues does this PR fix or reference?
resolves eclipse-che/che#22933
Is it tested? How?