Steve Yegge
f6e37bd25d
Refactor DeleteIssues to reduce complexity (37 → <10)
Extracted 10 helper functions:
- buildIDSet: ID deduplication
- resolveDeleteSet: Mode routing (cascade/force/validate)
- expandWithDependents: Recursive dependent collection
- validateNoDependents: Dependency validation
- checkSingleIssueValidation: Per-issue dependent check
- trackOrphanedIssues: Force-mode orphan tracking
- collectOrphansForID: Per-issue orphan collection
- buildSQLInClause: SQL placeholder generation
- populateDeleteStats: Dry-run statistics
- executeDelete: Actual deletion
Code review fix:
- Added rows.Err() check to catch iterator errors
Ref: bd-55
2025-10-25 12:51:29 -07:00
..
2025-10-24 12:40:56 -07:00
2025-10-24 12:40:56 -07:00
2025-10-24 19:49:16 -07:00
2025-10-25 12:51:29 -07:00
2025-10-21 19:53:27 -07:00