Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b4a46db

Browse files
committed
Don't show provisioner warnings for running workspaces
1 parent 2ec2e8a commit b4a46db

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

site/src/pages/WorkspacePage/Workspace.stories.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ type Story = StoryObj<typeof Workspace>;
6363

6464
export const Running: Story = {
6565
args: {
66-
workspace: Mocks.MockWorkspace,
66+
workspace: {
67+
...Mocks.MockWorkspace,
68+
latest_build: {
69+
...Mocks.MockWorkspace.latest_build,
70+
matched_provisioners: {
71+
count: 0,
72+
available: 0,
73+
},
74+
},
75+
},
6776
handleStart: action("start"),
6877
handleStop: action("stop"),
6978
buildInfo: Mocks.MockBuildInfo,

site/src/pages/WorkspacePage/Workspace.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const Workspace: FC<WorkspaceProps> = ({
116116
const provisionersHealthy =
117117
(workspace.latest_build.matched_provisioners?.available ?? 0) > 0;
118118
const shouldShowProvisionerAlert =
119-
!provisionersHealthy && (!buildLogs || buildLogs.length === 0);
119+
!shouldDisplayBuildLogs && !provisionersHealthy;
120120

121121
return (
122122
<div

0 commit comments

Comments
 (0)