Skip to content

feat: add dismissed property to the healthcheck section #10940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Nov 29, 2023
Prev Previous commit
Next Next commit
sql.ErrNoRows
  • Loading branch information
mtojek committed Nov 29, 2023
commit 1bf4fbf10898bd7032bdb2fa14bb8ad9efc80f63
3 changes: 2 additions & 1 deletion coderd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package coderd
import (
"bytes"
"context"
"database/sql"
"encoding/json"
"fmt"
"net/http"
Expand Down Expand Up @@ -265,7 +266,7 @@ func loadDismissedHealthchecks(ctx context.Context, db database.Store, logger sl
dismissedHealthchecks = settings.DismissedHealthchecks
}
}
if err != nil {
if err != nil && !xerrors.Is(err, sql.ErrNoRows) {
logger.Error(ctx, "unable to fetch health settings: %w", err)
}
return dismissedHealthchecks
Expand Down