Skip to content

Commit 78e6c4d

Browse files
committed
db: dismissed healthchecks
1 parent e311e9e commit 78e6c4d

File tree

7 files changed

+89
-0
lines changed

7 files changed

+89
-0
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,10 @@ func (q *querier) GetDeploymentWorkspaceStats(ctx context.Context) (database.Get
948948
return q.db.GetDeploymentWorkspaceStats(ctx)
949949
}
950950

951+
func (q *querier) GetDismissedHealthchecks(ctx context.Context) (string, error) {
952+
panic("not implemented")
953+
}
954+
951955
func (q *querier) GetExternalAuthLink(ctx context.Context, arg database.GetExternalAuthLinkParams) (database.ExternalAuthLink, error) {
952956
return fetch(q.log, q.auth, q.db.GetExternalAuthLink)(ctx, arg)
953957
}
@@ -2958,6 +2962,10 @@ func (q *querier) UpsertDefaultProxy(ctx context.Context, arg database.UpsertDef
29582962
return q.db.UpsertDefaultProxy(ctx, arg)
29592963
}
29602964

2965+
func (q *querier) UpsertDismissedHealthchecks(ctx context.Context, value string) error {
2966+
panic("not implemented")
2967+
}
2968+
29612969
func (q *querier) UpsertLastUpdateCheck(ctx context.Context, value string) error {
29622970
if err := q.authorizeContext(ctx, rbac.ActionUpdate, rbac.ResourceSystem); err != nil {
29632971
return err

coderd/database/dbmem/dbmem.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,10 @@ func (q *FakeQuerier) GetDeploymentWorkspaceStats(ctx context.Context) (database
15911591
return stat, nil
15921592
}
15931593

1594+
func (q *FakeQuerier) GetDismissedHealthchecks(ctx context.Context) (string, error) {
1595+
panic("not implemented")
1596+
}
1597+
15941598
func (q *FakeQuerier) GetExternalAuthLink(_ context.Context, arg database.GetExternalAuthLinkParams) (database.ExternalAuthLink, error) {
15951599
if err := validateDatabaseType(arg); err != nil {
15961600
return database.ExternalAuthLink{}, err
@@ -6790,6 +6794,10 @@ func (q *FakeQuerier) UpsertDefaultProxy(_ context.Context, arg database.UpsertD
67906794
return nil
67916795
}
67926796

6797+
func (q *FakeQuerier) UpsertDismissedHealthchecks(ctx context.Context, value string) error {
6798+
panic("not implemented")
6799+
}
6800+
67936801
func (q *FakeQuerier) UpsertLastUpdateCheck(_ context.Context, data string) error {
67946802
q.mutex.Lock()
67956803
defer q.mutex.Unlock()

coderd/database/dbmetrics/dbmetrics.go

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

coderd/database/dbmock/dbmock.go

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

coderd/database/querier.go

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

coderd/database/queries.sql.go

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

coderd/database/queries/siteconfig.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ SELECT value FROM site_configs WHERE key = 'oauth_signing_key';
7070
-- name: UpsertOAuthSigningKey :exec
7171
INSERT INTO site_configs (key, value) VALUES ('oauth_signing_key', $1)
7272
ON CONFLICT (key) DO UPDATE set value = $1 WHERE site_configs.key = 'oauth_signing_key';
73+
74+
-- name: GetDismissedHealthchecks :one
75+
SELECT value FROM site_configs WHERE key = 'dismissed_healthchecks';
76+
77+
-- name: UpsertDismissedHealthchecks :exec
78+
INSERT INTO site_configs (key, value) VALUES ('dismissed_healthchecks', $1)
79+
ON CONFLICT (key) DO UPDATE SET value = $1 WHERE site_configs.key = 'dismissed_healthchecks';

0 commit comments

Comments
 (0)