Skip to content

Commit b601819

Browse files
chore: remove insights from experimental (#8868)
1 parent f7327dd commit b601819

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

coderd/apidoc/docs.go

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codersdk/deployment.go

-4
Original file line numberDiff line numberDiff line change
@@ -1868,9 +1868,6 @@ const (
18681868
// quiet hours instead of max_ttl.
18691869
ExperimentTemplateRestartRequirement Experiment = "template_restart_requirement"
18701870

1871-
// Insights page
1872-
ExperimentTemplateInsightsPage Experiment = "template_insights_page"
1873-
18741871
// Deployment health page
18751872
ExperimentDeploymentHealthPage Experiment = "deployment_health_page"
18761873

@@ -1883,7 +1880,6 @@ const (
18831880
// Experiments that are not ready for consumption by all users should
18841881
// not be included here and will be essentially hidden.
18851882
var ExperimentsAll = Experiments{
1886-
ExperimentTemplateInsightsPage,
18871883
ExperimentDeploymentHealthPage,
18881884
}
18891885

docs/api/schemas.md

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/components/TemplateLayout/TemplateLayout.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import { useQuery } from "@tanstack/react-query"
1616
import { AuthorizationRequest } from "api/typesGenerated"
1717
import { ErrorAlert } from "components/Alert/ErrorAlert"
18-
import { useDashboard } from "components/Dashboard/DashboardProvider"
1918

2019
const templatePermissions = (
2120
templateId: string,
@@ -72,12 +71,7 @@ export const TemplateLayout: FC<{ children?: JSX.Element }> = ({
7271
queryKey: ["template", templateName],
7372
queryFn: () => fetchTemplate(orgId, templateName),
7473
})
75-
const dashboard = useDashboard()
76-
const hasInsightsEnabled =
77-
dashboard.experiments.includes("template_insights_page") ||
78-
process.env.NODE_ENV === "development"
79-
const shouldShowInsights =
80-
hasInsightsEnabled && data?.permissions?.canUpdateTemplate
74+
const shouldShowInsights = data?.permissions?.canUpdateTemplate
8175

8276
if (error) {
8377
return (

0 commit comments

Comments
 (0)