Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: expect no issue (#14984)
p0ny5d23ffabafc6
diff --git a/backend/store/pipeline.go b/backend/store/pipeline.goindex e5f9a4ada7..a45cf2f1b9 100644--- a/backend/store/pipeline.go+++ b/backend/store/pipeline.go@@ -132,10 +132,15 @@ func (s *Store) updatePipelineUIDOfIssueAndPlan(ctx context.Context, tx *Tx, plaWHERE plan_id = $2RETURNING id`, pipelineUID, planUID).Scan(&issueUID); err != nil {- return nil, errors.Wrapf(err, "failed to update issue pipeline_id")+ if err != sql.ErrNoRows {+ return nil, errors.Wrapf(err, "failed to update issue pipeline_id")+ }}return func() {- s.issueCache.Remove(issueUID)+ // TODO: need to remove planCache once we add planCache+ if issueUID != 0 {+ s.issueCache.Remove(issueUID)+ }}, nil}