-
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
Provide links to [stop/go to] running workspace when trying to start a workspace when workspace limit reached #607
Conversation
Skipping CI for Draft Pull Request. |
bce54dd
to
f12b244
Compare
f12b244
to
5e44f1c
Compare
5e44f1c
to
53fc942
Compare
packages/dashboard-frontend/src/containers/Loader/Workspace/Steps/StartWorkspace/index.tsx
Outdated
Show resolved
Hide resolved
packages/dashboard-frontend/src/containers/Loader/AbstractStep.tsx
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #607 +/- ##
==========================================
+ Coverage 58.42% 58.53% +0.11%
==========================================
Files 245 245
Lines 7939 7997 +58
Branches 1314 1320 +6
==========================================
+ Hits 4638 4681 +43
- Misses 3115 3129 +14
- Partials 186 187 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-607 |
27e3e07
to
552c5a0
Compare
This PR is now ready for review, I've updated the original PR description with steps to test this PR |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-607 |
packages/dashboard-frontend/src/store/Workspaces/devWorkspaces/index.ts
Outdated
Show resolved
Hide resolved
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-607 |
Signed-off-by: David Kwon <[email protected]>
6b53155
to
6c107d9
Compare
Signed-off-by: David Kwon <[email protected]>
6c107d9
to
c742d24
Compare
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-607 |
My only concern here (and maybe you've accounted for this already) is... what if the user is allowed to run more than one concurrent workspace?
or
Do you...
|
@nickboldt in that case the first case happens:
The only time the new links introduced in this PR appears is when the runningLimit has been reached. If the limit is more than 1, and the limit has been reached, at the moment this PR doesn't introduce a list of multiple open workspaces to close/switch to, but just shows a "Return to dashboard" link instead: But the list idea does sound like a very nice enhancement |
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.
Return to dashboard
That works for this PR! +1, good enough.
But the list idea does sound like a very nice enhancement
Feel free to open a separate GH issue to track / prioritize that enhancement. Thanks!
(Note that I'm not a TS expert so my review is based on screenshots and descriptions, not a technical code review.)
Signed-off-by: David Kwon <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, dkwon17, ibuziuk, nickboldt, 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 |
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-607 |
@dkwon17: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Thank you everyone for the feedback 👍 , I plan to merge this PR tomorrow @nickboldt I made an issue for the enhancement: eclipse-che/che#21660 |
Signed-off-by: dkwon17 [email protected]
What does this PR do?
When starting a workspace when there is already a workspace running, since the running workspace limit is
1
by default, there are now new links to:When clicking "Close running workspace (bash) and restart golang-example", if there is an error when trying to stop the workspace, and alert with an error message will be displayed on the top right:
When there is more than one running workspace, there is a 'Return to Dashboard' link instead:
Demo video
Screen.Recording.2022-08-15.at.5.27.06.PM.mov
What issues does this PR fix or reference?
eclipse-che/che#21359
Is it tested? How?
quay.io/eclipse/che-dashboard:pr-607
)spec.started
totrue
)To test the alert that appears on the top right of the dashboard when there is an error when stopping a workspace, I've created a dashboard image:
quay.io/dkwon17/che-dashboard:multiworkspace-improvement-error
that implements the following change:quay.io/dkwon17/che-dashboard:multiworkspace-improvement-error
Close running workspace and restart [current workspace]
link.Release Notes
Docs PR