diff --git a/hub/internal/store/telemetry.go b/hub/internal/store/telemetry.go index ef014d9..9138554 100644 --- a/hub/internal/store/telemetry.go +++ b/hub/internal/store/telemetry.go @@ -469,12 +469,14 @@ func (s *Store) DeleteAppTelemetry(appName string) (int64, error) { return res.RowsAffected() } -// DeleteAppIssues removes all known-issue records for a specific app. +// DeleteAppIssues removes all known-issue records for a specific app +// and zeroes the error/warning counters in telemetry history. func (s *Store) DeleteAppIssues(appName string) (int64, error) { res, err := s.db.Exec("DELETE FROM app_log_issues WHERE app_name = ?", appName) if err != nil { return 0, err } + s.db.Exec("UPDATE app_telemetry SET log_errors = 0, log_warnings = 0 WHERE app_name = ?", appName) return res.RowsAffected() } diff --git a/hub/internal/web/templates/app_detail.html b/hub/internal/web/templates/app_detail.html index eea5542..b424ccf 100644 --- a/hub/internal/web/templates/app_detail.html +++ b/hub/internal/web/templates/app_detail.html @@ -236,7 +236,7 @@ {{end}} diff --git a/hub/internal/web/templates/apps.html b/hub/internal/web/templates/apps.html index d3a2aac..2b1c2f4 100644 --- a/hub/internal/web/templates/apps.html +++ b/hub/internal/web/templates/apps.html @@ -91,7 +91,7 @@ {{end}} diff --git a/hub/internal/web/templates/configuration.html b/hub/internal/web/templates/configuration.html index 3bdb46b..5b3b7f1 100644 --- a/hub/internal/web/templates/configuration.html +++ b/hub/internal/web/templates/configuration.html @@ -59,7 +59,7 @@