Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: cannot run plan checks for release (#17784)

p0ny7f05eb5040f6
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index eeff10c2c5..ada18d2221 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -1002,6 +1002,9 @@ func (s *PlanService) RunPlanChecks(ctx context.Context, request *connect.Reques
if plan == nil {
return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("plan not found"))
}
+ if storePlanConfigHasRelease(plan.Config) {
+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("cannot run plan checks because plan %q has release", plan.Name))
+ }
var planCheckRuns []*store.PlanCheckRunMessage
if req.SpecId != nil {