From 26db55d6dfe03e9d02b7d9aa3a107cc3f7a8919f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20Garc=C3=ADa=20Veytia=20=28Puerco=29?= Date: Wed, 10 Jul 2024 20:58:24 -0600 Subject: [PATCH] Add SDLC noops to history and exec aggregator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adolfo GarcĂ­a Veytia (Puerco) --- internal/eea/eea.go | 7 ++++--- internal/history/service.go | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/eea/eea.go b/internal/eea/eea.go index 242492a89f..480a1a7d0d 100644 --- a/internal/eea/eea.go +++ b/internal/eea/eea.go @@ -302,10 +302,11 @@ func (e *EEA) buildEntityWrapper( return e.buildArtifactInfoWrapper(ctx, repoID, projID, artID) case db.EntitiesPullRequest: return e.buildPullRequestInfoWrapper(ctx, repoID, projID, prID) - case db.EntitiesBuildEnvironment: - return nil, fmt.Errorf("build environment entity not supported") + case db.EntitiesBuildEnvironment, db.EntitiesRelease, + db.EntitiesPipelineRun, db.EntitiesTaskRun, db.EntitiesBuild: + return nil, fmt.Errorf("entity type %q not yet supported", entity) default: - return nil, fmt.Errorf("unknown entity type: %s", entity) + return nil, fmt.Errorf("unknown entity type: %q", entity) } } diff --git a/internal/history/service.go b/internal/history/service.go index 8c3982bcc3..f85ddcf992 100644 --- a/internal/history/service.go +++ b/internal/history/service.go @@ -191,9 +191,10 @@ func paramsFromEntity( params.PullRequestID = nullableEntityID case db.EntitiesArtifact: params.ArtifactID = nullableEntityID - case db.EntitiesBuildEnvironment: + case db.EntitiesBuildEnvironment, db.EntitiesRelease, + db.EntitiesPipelineRun, db.EntitiesTaskRun, db.EntitiesBuild: default: - return nil, fmt.Errorf("unknown entity %s", entityType) + return nil, fmt.Errorf("unknown entity %q", entityType) } return ¶ms, nil }