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-16 18:08:58 -07:00
2025-10-23 10:25:13 -07:00
2025-10-23 10:25:13 -07:00
2025-10-16 17:43:38 -07:00
2025-10-24 12:27:07 -07:00
2025-10-22 00:07:00 -07:00
2025-10-24 12:40:56 -07:00
2025-10-16 13:32:44 -07:00
2025-10-24 00:34:52 -07:00
2025-10-24 00:34:52 -07:00
2025-10-24 19:45:47 -07:00
2025-10-21 15:01:26 -07:00
2025-10-17 13:50:20 -07:00
2025-10-19 21:14:23 -07:00
2025-10-20 22:18:08 -07:00
2025-10-20 22:18:08 -07:00
2025-10-18 13:12:14 -07:00
2025-10-19 21:14:23 -07:00
2025-10-19 18:28:41 -07:00
2025-10-24 19:45:47 -07:00
2025-10-25 12:51:29 -07:00
2025-10-22 22:05:58 -07:00
2025-10-18 17:14:21 -07:00