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-03 12:02:15 -08:00
2025-11-04 01:08:21 -08:00
2025-11-03 12:02:15 -08:00
2025-11-04 22:25:33 -08:00
2025-11-04 22:25:33 -08:00
2025-10-30 14:04:03 -07:00
2025-11-04 22:25:33 -08:00
2025-11-01 22:47:07 -07:00
2025-11-02 15:28:09 -08:00
2025-11-01 22:53:38 -07:00
2025-10-31 00:19:42 -07:00
2025-11-02 12:55:47 -08:00
2025-11-01 22:51:58 -07:00
2025-11-01 22:47:07 -07:00
2025-11-02 08:40:10 -08:00
2025-11-02 12:55:47 -08:00
2025-11-02 14:49:27 -08:00
2025-11-02 12:55:47 -08:00
2025-11-02 14:49:27 -08:00
2025-11-02 12:55:47 -08:00
2025-11-02 16:27:42 -08:00
2025-11-03 12:02:15 -08:00
2025-11-02 14:49:27 -08:00
2025-10-29 21:57:15 -07:00
2025-11-04 23:12:39 -08:00
2025-11-02 14:49:27 -08:00
2025-11-02 12:55:47 -08:00
2025-11-02 14:03:14 -08:00
2025-11-02 14:03:14 -08:00
2025-11-02 16:27:42 -08:00
2025-11-02 16:27:42 -08:00
2025-11-03 20:31:11 -08:00
2025-11-04 22:25:33 -08:00
2025-11-04 22:25:33 -08:00
2025-11-02 15:28:09 -08:00
2025-11-04 01:08:21 -08:00
2025-11-04 22:25:33 -08:00
2025-11-04 01:08:21 -08:00
2025-11-01 11:35:31 -07:00
2025-11-02 12:55:47 -08:00
2025-11-01 19:55:48 -07:00
2025-11-01 19:55:48 -07:00