Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb601819

Browse files
chore: remove insights from experimental (#8868)
1 parentf7327dd commitb601819

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

‎coderd/apidoc/docs.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎codersdk/deployment.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1868,9 +1868,6 @@ const (
18681868
// quiet hours instead of max_ttl.
18691869
ExperimentTemplateRestartRequirementExperiment="template_restart_requirement"
18701870

1871-
// Insights page
1872-
ExperimentTemplateInsightsPageExperiment="template_insights_page"
1873-
18741871
// Deployment health page
18751872
ExperimentDeploymentHealthPageExperiment="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
varExperimentsAll=Experiments{
1886-
ExperimentTemplateInsightsPage,
18871883
ExperimentDeploymentHealthPage,
18881884
}
18891885

‎docs/api/schemas.md

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/api/typesGenerated.ts

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/components/TemplateLayout/TemplateLayout.tsx

Lines changed: 1 addition & 7 deletions
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
consttemplatePermissions=(
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-
constdashboard=useDashboard()
76-
consthasInsightsEnabled=
77-
dashboard.experiments.includes("template_insights_page")||
78-
process.env.NODE_ENV==="development"
79-
constshouldShowInsights=
80-
hasInsightsEnabled&&data?.permissions?.canUpdateTemplate
74+
constshouldShowInsights=data?.permissions?.canUpdateTemplate
8175

8276
if(error){
8377
return(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp