From cdbc99e34d139aa3fa2a1af7f776947bb3ea5190 Mon Sep 17 00:00:00 2001 From: Sven Urbanski Date: Fri, 4 Oct 2024 13:15:15 +0200 Subject: [PATCH] fix: release skips overview update on error --- pkg/db/overview.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/db/overview.go b/pkg/db/overview.go index ecb5a9d64..9ad57512e 100644 --- a/pkg/db/overview.go +++ b/pkg/db/overview.go @@ -20,6 +20,7 @@ import ( "context" "database/sql" "fmt" + "github.com/freiheit-com/kuberpult/pkg/logger" "regexp" "time" @@ -253,7 +254,8 @@ func (h *DBHandler) UpdateOverviewRelease(ctx context.Context, transaction *sql. if release.Deleted { return nil } - return fmt.Errorf("could not find application '%s' in overview", release.App) + logger.FromContext(ctx).Sugar().Warnf("could not find application '%s' in overview - skipping overview update", release.App) + return nil } apiRelease := &api.Release{ PrNumber: extractPrNumber(release.Metadata.SourceMessage),