Steve Yegge
d38a312583
Fix bd-3xq: Import gracefully handles missing parents
Implemented hybrid approach (topological sort + resurrection):
Phase 1: Import ordering (fixes latent bug)
- Sort issues by hierarchy depth before batch creation
- Create in depth-ordered batches (0→1→2→3)
- Ensures parents always created before children
Phase 2: Parent resurrection
- Attempt to resurrect missing parents from import batch
- Only fail if parent truly doesn't exist anywhere
- Enables deleted parent scenarios to work correctly
Benefits:
- Fixes import failure when parents deleted via bd-delete
- Handles parent-child pairs in same import batch
- Maintains referential integrity
- Enables multi-repo workflows with divergent deletion states
Amp-Thread-ID: https://ampcode.com/threads/T-14d3a206-aeac-4499-8ae9-47f3715e18fa
Co-authored-by: Amp <amp@ampcode.com>
2025-11-04 23:12:39 -08:00
..
2025-11-02 08:30:31 -08:00
2025-11-03 22:01:37 -08:00
2025-11-02 14:31:22 -08:00
2025-11-02 14:31:22 -08:00
2025-11-02 22:17:08 -08:00
2025-11-02 15:39:00 -08:00
2025-11-02 20:30:31 -08:00
2025-11-04 23:12:39 -08:00
2025-11-04 22:10:56 -08:00
2025-11-04 23:12:39 -08:00
2025-11-02 15:37:57 -08:00
2025-11-04 11:25:36 -08:00
2025-11-03 20:31:11 -08:00
2025-11-03 12:02:15 -08:00