Skip to content

feat(UI): add workspace restart button #7137

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

Merged
merged 11 commits into from
Apr 14, 2023
Merged

Conversation

Kira-Pilot
Copy link
Member

This PR replaces #7070 and resolves #6241 (but not #5800). We've decided to implement the restart functionality entirely on the FE after realizing the previous PR would require Provisioner changes, and this small feature does not warrant such a change at this point in time.
Kapture 2023-04-14 at 10 59 16

@Kira-Pilot Kira-Pilot changed the base branch from main to bq/refactor-workspace-header April 14, 2023 15:03
@@ -124,6 +124,7 @@ export const WorkspaceReadyPage = ({
workspace={workspace}
handleStart={() => workspaceSend({ type: "START" })}
handleStop={() => workspaceSend({ type: "STOP" })}
handleRestart={() => workspaceSend({ type: "START" })}
Copy link
Member Author

Choose a reason for hiding this comment

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

A restart is essentially just a start, so I simplified here instead of building out a new state in our workspace machine.
There might be edge cases that require a stop before a start, but we do the exact same thing (start without stopping first) for update and we haven't had any complaints about that feature, so I figure we start simple.

Base automatically changed from bq/refactor-workspace-header to main April 14, 2023 15:28
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM

@Kira-Pilot Kira-Pilot merged commit 9ec16d4 into main Apr 14, 2023
@Kira-Pilot Kira-Pilot deleted the w-restart-btn/kira-pilot branch April 14, 2023 15:48
@github-actions github-actions bot locked and limited conversation to collaborators Apr 14, 2023
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.

feat: add a restart button
2 participants