bd sync: 2025-10-27 19:36:25
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
{"id":"bd-204","title":"Update LINTING.md with current baseline","description":"After cleanup, document the remaining acceptable baseline in LINTING.md so we can track regression.","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-27T18:53:14.531787-07:00","updated_at":"2025-10-27T18:53:14.531787-07:00","closed_at":"2025-10-27T18:37:08.880971-07:00"}
|
||||
{"id":"bd-205","title":"Update LINTING.md with current baseline","description":"After cleanup, document the remaining acceptable baseline in LINTING.md so we can track regression.","status":"open","priority":2,"issue_type":"task","created_at":"2025-10-27T18:53:14.532297-07:00","updated_at":"2025-10-27T18:53:14.532297-07:00"}
|
||||
{"id":"bd-206","title":"Import fails when updating open issue to closed without setting closed_at","description":"When importing JSONL, if an issue exists in the database as \"open\" but the JSONL has it as \"closed\", the import tries to UPDATE status to \"closed\" without setting the closed_at timestamp. This violates the CHECK constraint: (status = 'closed') = (closed_at IS NOT NULL).\n\n**Steps to reproduce:**\n1. Have issue bd-X in database with status=\"open\", closed_at=NULL\n2. JSONL has same issue with status=\"closed\", closed_at=\"2025-10-27T...\"\n3. Run bd import -i .beads/beads.jsonl --resolve-collisions\n4. Error: \"constraint failed: CHECK constraint failed: (status = 'closed') = (closed_at IS NOT NULL) (275)\"\n\n**Expected behavior:**\nImport should update both status AND closed_at when transitioning to closed.\n\n**Actual behavior:**\nImport only updates status field, leaving closed_at=NULL, violating constraint.\n\n**Observed during:**\nSyncing two workspaces where collision resolution remapped bd-45. One workspace had it open, the other had it closed. Import tried to update open→closed but didn't copy closed_at from JSONL.\n\n**Impact:**\n- Prevents successful import when JSONL has closed issues that DB has as open\n- Blocks multi-workspace sync scenarios\n- Forces manual database rebuilds\n\n**Suggested fix:**\nIn import code, when updating an issue, if status changes to \"closed\", ensure closed_at is set from JSONL. Similarly, if status changes from \"closed\" to \"open\", ensure closed_at is cleared.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-27T18:58:42.228957-07:00","updated_at":"2025-10-27T19:06:37.684793-07:00","closed_at":"2025-10-27T19:06:37.684793-07:00"}
|
||||
{"id":"bd-207","title":"Fix remaining test failures - database initialization errors","description":"36 tests in cmd/bd are failing with 'database not initialized: issue_prefix config is missing' errors.\n\nAlready fixed (24 tests):\n- ✅ autoimport_collision_test.go - updated createTestDBWithIssues helper\n- ✅ autostart_test.go - added config.Initialize() call\n- ✅ compact_test.go - added SetConfig calls \n- ✅ compactor_test.go - updated setupTestStorage and createClosedIssue\n- ✅ ready_test.go - using newTestStore helper\n\nStill failing (36 tests in cmd/bd):\n- merge_test.go (TestValidateMerge, TestValidateMergeMultipleSelfReferences, TestPerformMergeIdempotent, TestPerformMergePartialRetry)\n- main_test.go (various auto-import/export tests)\n- dep_test.go (TestDepAdd, TestDepRemove, TestDepTypes, TestDepCycleDetection)\n- export_import_test.go, import_*.go files (various import tests)\n- init_test.go (TestInitWithCustomDBPath)\n- integrity_test.go (TestCheckOrphanedDeps, TestCountDBIssues, TestValidatePreExport)\n\nSolution:\nUpdated test_helpers_test.go with newTestStore(t, dbPath) helper that:\n1. Creates directory structure\n2. Initializes SQLite store\n3. Sets issue_prefix config to 'test'\n4. Auto-cleanup via t.Cleanup()\n\nAll remaining tests need to replace manual sqlite.New() calls with newTestStore(t, dbPath).","status":"in_progress","priority":1,"issue_type":"task","created_at":"2025-10-27T19:36:16.764891-07:00","updated_at":"2025-10-27T19:36:22.932238-07:00"}
|
||||
{"id":"bd-21","title":"Fix bd sync prefix mismatch error message suggesting non-existent flag","description":"GH #103: bd sync suggests using --rename-on-import flag that doesn't exist. Need to either implement the flag or fix the error message to suggest the correct workflow.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-22T17:54:24.473508-07:00","updated_at":"2025-10-25T23:15:33.481941-07:00","closed_at":"2025-10-22T17:57:46.973029-07:00"}
|
||||
{"id":"bd-22","title":"Fix MCP close tool method signature error","description":"GH #107: MCP close() tool fails with \"BdDaemonClient.close() takes 1 positional argument but 2 were given\". Need to fix method signature in beads-mcp server.","status":"closed","priority":1,"issue_type":"bug","created_at":"2025-10-22T19:17:05.429429-07:00","updated_at":"2025-10-25T23:15:33.482758-07:00","closed_at":"2025-10-22T19:19:54.601153-07:00"}
|
||||
{"id":"bd-23","title":"Update Claude Code marketplace plugin","description":"Update the beads plugin in the Claude Code marketplace to the latest version. This may help resolve some of the open GitHub issues related to marketplace installation and compatibility (#54, #112).\n\nShould include:\n- Latest beads version\n- Updated documentation\n- Any new features or bug fixes","status":"closed","priority":2,"issue_type":"task","created_at":"2025-10-22T22:29:11.293161-07:00","updated_at":"2025-10-25T23:15:33.483625-07:00","closed_at":"2025-10-23T22:27:37.671065-07:00"}
|
||||
|
||||
Reference in New Issue
Block a user