Skip to content

Commit 7abc92b

Browse files
committed
make gen
1 parent 92594dc commit 7abc92b

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

coderd/apidoc/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/dbauthz/dbauthz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,9 +2221,9 @@ func (q *querier) InsertWorkspaceBuild(ctx context.Context, arg database.InsertW
22212221
return xerrors.Errorf("get template by id: %w", err)
22222222
}
22232223

2224-
// If the template requires the promoted version we need to check if
2224+
// If the template requires the active version we need to check if
22252225
// the user is a template admin. If they aren't and are attempting
2226-
// to use a non-promoted version then we must fail the request.
2226+
// to use a non-active version then we must fail the request.
22272227
if t.RequireActiveVersion {
22282228
if arg.TemplateVersionID != t.ActiveVersionID {
22292229
if err = q.authorizeContext(ctx, rbac.ActionUpdate, t); err != nil {

coderd/schedule/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ type TemplateScheduleOptions struct {
153153
UpdateWorkspaceDormantAt bool `json:"update_workspace_dormant_at"`
154154
// RequireActiveVersion requires that a starting a workspace uses the active
155155
// version for a template.
156-
RequireActiveVersion bool `json:"require_promoted_version"`
156+
RequireActiveVersion bool `json:"require_active_version"`
157157
}
158158

159159
// TemplateScheduleStore provides an interface for retrieving template

codersdk/templates.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type Template struct {
5555

5656
// RequireActiveVersion mandates that workspaces are built with the active
5757
// template version.
58-
RequireActiveVersion bool `json:"require_promoted_version"`
58+
RequireActiveVersion bool `json:"require_active_version"`
5959
}
6060

6161
// WeekdaysToBitmap converts a list of weekdays to a bitmap in accordance with
@@ -226,9 +226,9 @@ type UpdateTemplateMeta struct {
226226
// deleted when updating the dormant_ttl field to a new, shorter value.
227227
UpdateWorkspaceDormantAt bool `json:"update_workspace_dormant_at"`
228228
// RequireActiveVersion mandates workspaces built using this template
229-
// use the latest promoted version of the template. This option has no
229+
// use the active version of the template. This option has no
230230
// effect on template admins.
231-
RequireActiveVersion bool `json:"require_promoted_version"`
231+
RequireActiveVersion bool `json:"require_active_version"`
232232
}
233233

234234
type TemplateExample struct {

docs/api/schemas.md

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

docs/api/templates.md

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

enterprise/coderd/templates_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ func TestTemplates(t *testing.T) {
573573
require.True(t, updatedDormantWS.LastUsedAt.After(dormantWorkspace.LastUsedAt))
574574
})
575575

576-
t.Run("RequirePromotedVersion", func(t *testing.T) {
576+
t.Run("RequireActiveVersion", func(t *testing.T) {
577577
t.Parallel()
578578
client, user := coderdenttest.New(t, &coderdenttest.Options{
579579
Options: &coderdtest.Options{

enterprise/coderd/workspaces_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ func TestWorkspaceAutobuild(t *testing.T) {
737737
require.Equal(t, database.WorkspaceTransitionDelete, stats.Transitions[ws.ID])
738738
})
739739

740-
t.Run("RequirePromotedVersion", func(t *testing.T) {
740+
t.Run("RequireActiveVersion", func(t *testing.T) {
741741
t.Parallel()
742742

743743
var (

site/src/api/typesGenerated.ts

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

0 commit comments

Comments
 (0)