mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): remove build logs from experimental (#8619)
This commit is contained in:
@@ -1466,7 +1466,6 @@ export type Experiment =
|
||||
| "tailnet_ha_coordinator"
|
||||
| "template_restart_requirement"
|
||||
| "workspace_actions"
|
||||
| "workspace_build_logs_ui"
|
||||
export const Experiments: Experiment[] = [
|
||||
"convert-to-oidc",
|
||||
"moons",
|
||||
@@ -1474,7 +1473,6 @@ export const Experiments: Experiment[] = [
|
||||
"tailnet_ha_coordinator",
|
||||
"template_restart_requirement",
|
||||
"workspace_actions",
|
||||
"workspace_build_logs_ui",
|
||||
]
|
||||
|
||||
// From codersdk/deployment.go
|
||||
|
||||
@@ -93,13 +93,11 @@ export const WorkspaceReadyPage = ({
|
||||
const user = useMe()
|
||||
const { isWarningIgnored, ignoreWarning } = useIgnoreWarnings(user.id)
|
||||
const buildLogs = useBuildLogs(workspace)
|
||||
const dashboard = useDashboard()
|
||||
const shouldDisplayBuildLogs =
|
||||
hasJobError(workspace) ||
|
||||
(dashboard.experiments.includes("workspace_build_logs_ui") &&
|
||||
["canceling", "deleting", "pending", "starting", "stopping"].includes(
|
||||
workspace.latest_build.status,
|
||||
))
|
||||
["canceling", "deleting", "pending", "starting", "stopping"].includes(
|
||||
workspace.latest_build.status,
|
||||
)
|
||||
const {
|
||||
mutate: restartWorkspace,
|
||||
error: restartBuildError,
|
||||
|
||||
Reference in New Issue
Block a user