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

fix: redirect to home only when delete and exit workspace successfully #89

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Conversation

yuye-aws
Copy link
Collaborator

@yuye-aws yuye-aws commented Aug 17, 2023

Description

A navigation bug for delete and exit workspace has been fixed in this PR. With this PR, the user will only navigation to home page when delete and exit workspace successfully. Also, I also fixed a bug for workspace start. The value of workspaceEnabled$ will unsubscribe when WorkspaceService get stopped.

Issues Resolved

Screenshot

The error message remains the same:

image

Testing the changes

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@@ -127,16 +137,6 @@ export const WorkspaceUpdater = () => {
}
}
setDeleteWorkspaceModalVisible(false);
Copy link
Collaborator

@SuZhou-Joe SuZhou-Joe Aug 17, 2023

Choose a reason for hiding this comment

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

This line should be moved into if clause I think.

Signed-off-by: yuye-aws <yuyezhu@amazon.com>
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
@yuye-aws yuye-aws merged commit d732833 into ruanyl:workspace Aug 17, 2023
37 of 39 checks passed
@yuye-aws yuye-aws deleted the delete branch August 21, 2023 03:52
SuZhou-Joe pushed a commit that referenced this pull request Aug 31, 2023
#89)

* only navigate to home page when delete and exit workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* unsubscribe workspaceEnabled when workspace service stop

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* only hide delete modal when delete workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

---------

Signed-off-by: yuye-aws <yuyezhu@amazon.com>
SuZhou-Joe pushed a commit that referenced this pull request Aug 31, 2023
#89)

* only navigate to home page when delete and exit workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* unsubscribe workspaceEnabled when workspace service stop

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* only hide delete modal when delete workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

---------

Signed-off-by: yuye-aws <yuyezhu@amazon.com>
ruanyl pushed a commit that referenced this pull request Sep 15, 2023
#89)

* only navigate to home page when delete and exit workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* unsubscribe workspaceEnabled when workspace service stop

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

* only hide delete modal when delete workspace successfully

Signed-off-by: yuye-aws <yuyezhu@amazon.com>

---------

Signed-off-by: yuye-aws <yuyezhu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants