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: sample plan check run key (#15939)
Danny Xuc0f71bd7ccae
diff --git a/backend/api/v1/plan_service_plan_check.go b/backend/api/v1/plan_service_plan_check.goindex 0c013202ee..195f38293a 100644--- a/backend/api/v1/plan_service_plan_check.go+++ b/backend/api/v1/plan_service_plan_check.go@@ -56,7 +56,7 @@ func getPlanCheckRunsFromPlanSpecs(ctx context.Context, s *store.Store, plan *stvar updatedRuns []*store.PlanCheckRunMessagecountMap := make(map[string]int32)for _, run := range planCheckRuns {- key := fmt.Sprintf("%s/%s/%s/%d", run.Type, run.Config.GetInstanceId(), run.Config.GetDatabaseName(), run.Config.GetSheetUid())+ key := fmt.Sprintf("%s/%d", run.Type, run.Config.GetSheetUid())if countMap[key] >= project.Setting.GetCiSamplingSize() {continue}