⚡ Scope deletion-reference validation to organization instead of full DB scan #11
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/project-deletion-org-wide-scan-perf-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR #9 scoped the run/workflow counting pass in buildProjectDeletionPlan but missed validateDeletionReferences, which still called ListAllWorkflows/ListRunArtifacts(ctx, "") — an unscoped scan across every organization on every project deletion preview. Scopes both to plan.OrganizationID. Tests: go build ./..., go test ./internal/api/... ./internal/store/... (TestProjectDeletion*/TestWorkflowDeletionPreview* pass; no new failures vs the pre-existing 75-failure baseline).
🤖 Generated with Claude Code