Skip to content

Commit 6763ba2

Browse files
committed
make -B gen fmt
1 parent 9badf7c commit 6763ba2

File tree

9 files changed

+39
-12
lines changed

9 files changed

+39
-12
lines changed

cli/testdata/coder_list_--output_json.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
"count": 0,
6868
"available": 0,
6969
"most_recently_seen": null
70-
}
70+
},
71+
"template_version_preset_id": null
7172
},
7273
"outdated": false,
7374
"name": "test-workspace",

coderd/apidoc/docs.go

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

coderd/apidoc/swagger.json

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

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ func (s *MethodTestSuite) TestUser() {
17481748
check.Args(database.DeleteCustomRoleParams{
17491749
Name: customRole.Name,
17501750
}).Asserts(
1751-
// fails immediately, missing organization id
1751+
// fails immediately, missing organization id
17521752
).Errors(dbauthz.NotAuthorizedError{Err: xerrors.New("custom roles must belong to an organization")})
17531753
}))
17541754
s.Run("Blank/UpdateCustomRole", s.Subtest(func(db database.Store, check *expects) {
@@ -1779,7 +1779,7 @@ func (s *MethodTestSuite) TestUser() {
17791779
codersdk.ResourceWorkspace: {codersdk.ActionRead},
17801780
}), convertSDKPerm),
17811781
}).Asserts(
1782-
// fails immediately, missing organization id
1782+
// fails immediately, missing organization id
17831783
).Errors(dbauthz.NotAuthorizedError{Err: xerrors.New("custom roles must belong to an organization")})
17841784
}))
17851785
s.Run("OrgPermissions/UpdateCustomRole", s.Subtest(func(db database.Store, check *expects) {
@@ -1832,7 +1832,7 @@ func (s *MethodTestSuite) TestUser() {
18321832
codersdk.ResourceWorkspace: {codersdk.ActionRead},
18331833
}), convertSDKPerm),
18341834
}).Asserts(
1835-
// fails immediately, missing organization id
1835+
// fails immediately, missing organization id
18361836
).Errors(dbauthz.NotAuthorizedError{Err: xerrors.New("custom roles must belong to an organization")})
18371837
}))
18381838
s.Run("OrgPermissions/InsertCustomRole", s.Subtest(func(db database.Store, check *expects) {
@@ -3843,7 +3843,7 @@ func (s *MethodTestSuite) TestSystemFunctions() {
38433843
s.Run("GetProvisionerJobsCreatedAfter", s.Subtest(func(db database.Store, check *expects) {
38443844
// TODO: add provisioner job resource type
38453845
_ = dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{CreatedAt: time.Now().Add(-time.Hour)})
3846-
check.Args(time.Now()).Asserts( /*rbac.ResourceSystem, policy.ActionRead*/)
3846+
check.Args(time.Now()).Asserts( /*rbac.ResourceSystem, policy.ActionRead*/ )
38473847
}))
38483848
s.Run("GetTemplateVersionsByIDs", s.Subtest(func(db database.Store, check *expects) {
38493849
dbtestutil.DisableForeignKeysAndTriggers(s.T(), db)
@@ -4020,7 +4020,7 @@ func (s *MethodTestSuite) TestSystemFunctions() {
40204020
a := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
40214021
b := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
40224022
check.Args([]uuid.UUID{a.ID, b.ID}).
4023-
Asserts( /*rbac.ResourceSystem, policy.ActionRead*/).
4023+
Asserts( /*rbac.ResourceSystem, policy.ActionRead*/ ).
40244024
Returns(slice.New(a, b))
40254025
}))
40264026
s.Run("InsertWorkspaceAgent", s.Subtest(func(db database.Store, check *expects) {
@@ -4065,22 +4065,22 @@ func (s *MethodTestSuite) TestSystemFunctions() {
40654065
OrganizationID: j.OrganizationID,
40664066
Types: []database.ProvisionerType{j.Provisioner},
40674067
ProvisionerTags: must(json.Marshal(j.Tags)),
4068-
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/)
4068+
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
40694069
}))
40704070
s.Run("UpdateProvisionerJobWithCompleteByID", s.Subtest(func(db database.Store, check *expects) {
40714071
// TODO: we need to create a ProvisionerJob resource
40724072
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
40734073
check.Args(database.UpdateProvisionerJobWithCompleteByIDParams{
40744074
ID: j.ID,
4075-
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/)
4075+
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
40764076
}))
40774077
s.Run("UpdateProvisionerJobByID", s.Subtest(func(db database.Store, check *expects) {
40784078
// TODO: we need to create a ProvisionerJob resource
40794079
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
40804080
check.Args(database.UpdateProvisionerJobByIDParams{
40814081
ID: j.ID,
40824082
UpdatedAt: time.Now(),
4083-
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/)
4083+
}).Asserts( /*rbac.ResourceSystem, policy.ActionUpdate*/ )
40844084
}))
40854085
s.Run("InsertProvisionerJob", s.Subtest(func(db database.Store, check *expects) {
40864086
dbtestutil.DisableForeignKeysAndTriggers(s.T(), db)
@@ -4091,21 +4091,21 @@ func (s *MethodTestSuite) TestSystemFunctions() {
40914091
StorageMethod: database.ProvisionerStorageMethodFile,
40924092
Type: database.ProvisionerJobTypeWorkspaceBuild,
40934093
Input: json.RawMessage("{}"),
4094-
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/)
4094+
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/ )
40954095
}))
40964096
s.Run("InsertProvisionerJobLogs", s.Subtest(func(db database.Store, check *expects) {
40974097
// TODO: we need to create a ProvisionerJob resource
40984098
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
40994099
check.Args(database.InsertProvisionerJobLogsParams{
41004100
JobID: j.ID,
4101-
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/)
4101+
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/ )
41024102
}))
41034103
s.Run("InsertProvisionerJobTimings", s.Subtest(func(db database.Store, check *expects) {
41044104
// TODO: we need to create a ProvisionerJob resource
41054105
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
41064106
check.Args(database.InsertProvisionerJobTimingsParams{
41074107
JobID: j.ID,
4108-
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/)
4108+
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/ )
41094109
}))
41104110
s.Run("UpsertProvisionerDaemon", s.Subtest(func(db database.Store, check *expects) {
41114111
dbtestutil.DisableForeignKeysAndTriggers(s.T(), db)

docs/reference/api/builds.md

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

docs/reference/api/schemas.md

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

docs/reference/api/workspaces.md

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

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ require (
470470
)
471471

472472
replace github.com/coder/terraform-provider-coder/v2 => github.com/coder/terraform-provider-coder/v2 v2.1.4-0.20250211100915-129c295afed8
473+
473474
require github.com/coder/clistat v1.0.0
474475

475476
require github.com/SherClockHolmes/webpush-go v1.4.0

site/src/api/typesGenerated.ts

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

0 commit comments

Comments
 (0)