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:
Generated
-2
@@ -7775,7 +7775,6 @@ const docTemplate = `{
|
||||
"tailnet_ha_coordinator",
|
||||
"convert-to-oidc",
|
||||
"single_tailnet",
|
||||
"workspace_build_logs_ui",
|
||||
"template_restart_requirement"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
@@ -7784,7 +7783,6 @@ const docTemplate = `{
|
||||
"ExperimentTailnetHACoordinator",
|
||||
"ExperimentConvertToOIDC",
|
||||
"ExperimentSingleTailnet",
|
||||
"ExperimentWorkspaceBuildLogsUI",
|
||||
"ExperimentTemplateRestartRequirement"
|
||||
]
|
||||
},
|
||||
|
||||
Generated
-2
@@ -6960,7 +6960,6 @@
|
||||
"tailnet_ha_coordinator",
|
||||
"convert-to-oidc",
|
||||
"single_tailnet",
|
||||
"workspace_build_logs_ui",
|
||||
"template_restart_requirement"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
@@ -6969,7 +6968,6 @@
|
||||
"ExperimentTailnetHACoordinator",
|
||||
"ExperimentConvertToOIDC",
|
||||
"ExperimentSingleTailnet",
|
||||
"ExperimentWorkspaceBuildLogsUI",
|
||||
"ExperimentTemplateRestartRequirement"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1805,8 +1805,6 @@ const (
|
||||
// WARNING: This cannot be enabled when using HA.
|
||||
ExperimentSingleTailnet Experiment = "single_tailnet"
|
||||
|
||||
ExperimentWorkspaceBuildLogsUI Experiment = "workspace_build_logs_ui"
|
||||
|
||||
// ExperimentTemplateRestartRequirement allows template admins to have more
|
||||
// control over when workspaces created on a template are required to
|
||||
// restart, and allows users to ensure these restarts never happen during
|
||||
@@ -1827,9 +1825,7 @@ const (
|
||||
// users to opt-in to via --experimental='*'.
|
||||
// Experiments that are not ready for consumption by all users should
|
||||
// not be included here and will be essentially hidden.
|
||||
var ExperimentsAll = Experiments{
|
||||
ExperimentWorkspaceBuildLogsUI,
|
||||
}
|
||||
var ExperimentsAll = Experiments{}
|
||||
|
||||
// Experiments is a list of experiments that are enabled for the deployment.
|
||||
// Multiple experiments may be enabled at the same time.
|
||||
|
||||
@@ -2585,7 +2585,6 @@ AuthorizationObject can represent a "set" of objects, such as: all workspaces in
|
||||
| `tailnet_ha_coordinator` |
|
||||
| `convert-to-oidc` |
|
||||
| `single_tailnet` |
|
||||
| `workspace_build_logs_ui` |
|
||||
| `template_restart_requirement` |
|
||||
|
||||
## codersdk.Feature
|
||||
|
||||
@@ -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