Commit Graph

616 Commits

Author SHA1 Message Date
Steve Yegge
fbc95bcf11 bd sync: 2025-10-31 20:35:20 2025-10-31 20:35:20 -07:00
Steve Yegge
c840ba50bc Add comprehensive tests for show.go commands (bd-12c2)
Added test coverage for show, update, close, and edit commands in
cmd/bd/show_test.go:

- TestShowCommand (6 subtests): single/multiple issues, JSON output,
  dependencies, labels, compaction
- TestUpdateCommand (11 subtests): status, priority, title, assignee,
  description, design, notes, acceptance criteria, multiple fields/issues
- TestCloseCommand (4 subtests): single/multiple issues, JSON output,
  with/without reason
- TestEditCommand (1 subtest): argument validation

Key improvements:
- Properly sets global store variable to avoid "no issue found" errors
- Uses direct mode (BEADS_NO_DAEMON=1) for test isolation
- Follows existing test patterns from init_test.go and list_test.go
- All 22 test cases passing

Total cmd/bd coverage improved to 39.6%

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 20:29:17 -07:00
Steve Yegge
d8ff53a662 Merge remote changes 2025-10-31 20:28:58 -07:00
Steve Yegge
4fd1e20091 bd sync: 2025-10-31 20:28:38 2025-10-31 20:28:38 -07:00
Steve Yegge
b2d66b54e0 bd sync: 2025-10-31 20:21:25 2025-10-31 20:21:25 -07:00
Steve Yegge
8415639a32 bd sync: 2025-10-31 20:18:15 2025-10-31 20:18:15 -07:00
Steve Yegge
c460d00861 bd sync: 2025-10-31 20:15:58 2025-10-31 20:15:58 -07:00
Steve Yegge
7d73082d7e Fix duplicate pollution: filter closed issues from detection
- Closed issues no longer appear in duplicate scans
- Prevents infinite reappearance of merged duplicates
- Deleted 29 low-value closed issues to shrink DB
- Closes bd-c577

Amp-Thread-ID: https://ampcode.com/threads/T-51165824-9559-4696-919f-2c40459d5ef9
Co-authored-by: Amp <amp@ampcode.com>
2025-10-31 19:51:44 -07:00
Steve Yegge
76069a09dc Improve cmd/bd test coverage from 21% to 23.1% (bd-27ea)
Added comprehensive tests for:
- validate.go (parseChecks, validation results, orphaned deps, duplicates, git conflicts)
- restore.go (readIssueFromJSONL, git helpers)
- sync.go (git helpers, JSONL counting)

Progress: 21.0% → 23.1% (+2.1%)
Target: 40% (multi-session effort)
Amp-Thread-ID: https://ampcode.com/threads/T-540ebf64-e14f-4541-b098-586d2b07dc3e
Co-authored-by: Amp <amp@ampcode.com>
2025-10-31 19:44:43 -07:00
Steve Yegge
a753ce1e50 bd sync: 2025-10-31 19:39:20 2025-10-31 19:39:20 -07:00
Steve Yegge
b7252c1a16 bd sync: 2025-10-31 19:38:14 2025-10-31 19:38:14 -07:00
Steve Yegge
75a118b47c bd sync: 2025-10-31 19:21:40 2025-10-31 19:21:40 -07:00
Steve Yegge
45504dde91 bd sync: 2025-10-31 19:10:08 2025-10-31 19:10:08 -07:00
Steve Yegge
4fbff148f0 bd sync: 2025-10-31 18:27:27 2025-10-31 18:27:27 -07:00
Steve Yegge
19c1c1570d bd sync: 2025-10-31 18:05:57 2025-10-31 18:06:05 -07:00
Steve Yegge
5b342ff827 bd sync: apply rename detection from import 2025-10-31 17:56:47 -07:00
Steve Yegge
c2f7019786 bd sync: 2025-10-31 17:56:46 2025-10-31 17:56:47 -07:00
Steve Yegge
ddc04eb6f9 bd sync: 2025-10-31 17:54:26 2025-10-31 17:54:26 -07:00
Steve Yegge
48fdb3ee9c bd sync: 2025-10-31 17:54:06 2025-10-31 17:54:06 -07:00
Steve Yegge
cbd0bf0b53 bd sync: 2025-10-31 17:54:01 2025-10-31 17:54:01 -07:00
Steve Yegge
29f77b2220 bd sync: 2025-10-31 17:53:48 2025-10-31 17:53:49 -07:00
Steve Yegge
a60ae8d2de bd sync: 2025-10-31 17:51:09 2025-10-31 17:51:09 -07:00
Steve Yegge
dd959d09cd bd sync: 2025-10-31 17:47:46 2025-10-31 17:47:46 -07:00
Steve Yegge
7eb315bbe0 bd sync: 2025-10-31 17:41:02 2025-10-31 17:41:04 -07:00
Steve Yegge
d5483574fd Rebuild DB from JSONL after corruption cleanup
- Database had 72 duplicate issues from incomplete migration
- Sequential IDs (no content_hash) mixed with hash IDs
- Removed corrupt DB, rebuilt from JSONL (source of truth)
- 225 → 153 issues (duplicates eliminated)
- Updated config.json version to 0.20.1
2025-10-31 17:15:55 -07:00
Steve Yegge
a1b1b5b559 bd sync: 2025-10-31 17:15:49 2025-10-31 17:15:49 -07:00
Steve Yegge
33565f10db bd sync: 2025-10-31 15:12:13 2025-10-31 15:12:13 -07:00
Steve Yegge
c070a9e7d4 bd sync: 2025-10-31 14:36:24 2025-10-31 14:36:24 -07:00
Steve Yegge
b2b0373d08 bd sync: 2025-10-31 14:36:12 2025-10-31 14:36:12 -07:00
Steve Yegge
b9b1b162d1 bd sync: 2025-10-31 14:24:43 2025-10-31 14:24:43 -07:00
Steve Yegge
6dc768797e Update issues: close bd-a5e2bd80 epic and children 2025-10-31 13:51:22 -07:00
Steve Yegge
415f2e8206 bd sync: 2025-10-31 12:32:54 2025-10-31 12:32:54 -07:00
Steve Yegge
0c908f1fd5 bd sync: 2025-10-31 12:22:35 2025-10-31 12:22:35 -07:00
Steve Yegge
75b8e23c14 bd sync: apply rename detection from import 2025-10-31 12:00:44 -07:00
Steve Yegge
f0858bbf38 bd sync: 2025-10-31 12:00:43 2025-10-31 12:00:43 -07:00
Steve Yegge
1e99b251a6 bd sync: 2025-10-31 12:00:10 2025-10-31 12:00:10 -07:00
Steve Yegge
053edadf14 bd sync: apply rename detection from import 2025-10-31 10:43:25 -07:00
Steve Yegge
042e4a1799 bd sync: 2025-10-31 10:43:24 2025-10-31 10:43:24 -07:00
Steve Yegge
95b424035c bd sync: 2025-10-31 01:58:36 2025-10-31 01:58:36 -07:00
Steve Yegge
9225114c0b Fix tests after --resolve-collisions removal
Remove obsolete test file and update remaining tests to not use the
removed --resolve-collisions flag. Hash-based IDs make collision
resolution unnecessary.

Changes:
- Delete internal/rpc/server_autoimport_test.go (obsolete)
- Remove --resolve-collisions from beads_nway_test.go
- Remove --resolve-collisions from beads_twoclone_test.go
- Remove --resolve-collisions from cmd/bd/sync.go

All tests now pass.
2025-10-31 01:25:05 -07:00
Steve Yegge
0725c33fcc Remove vestigial --resolve-collisions flag
Hash-based IDs make collision resolution unnecessary. The flag was
already non-functional (handleCollisions returns error on collision
regardless of flag value).

Removed:
- --resolve-collisions flag from bd import
- ResolveCollisions field from ImportOptions and importer.Options
- All references in daemon, auto-import, and tests
- Updated error messages to reflect hash IDs don't collide

All import tests pass.

Amp-Thread-ID: https://ampcode.com/threads/T-47dfa0cc-bb71-4467-ac86-f0966a7c5d58
Co-authored-by: Amp <amp@ampcode.com>
2025-10-31 01:07:42 -07:00
Steve Yegge
b0f6630d0d bd sync: 2025-10-31 00:48:50 2025-10-31 00:48:50 -07:00
Steve Yegge
4e9f6e131c bd sync: 2025-10-31 00:19:27 2025-10-31 00:19:27 -07:00
Steve Yegge
613f0dfff4 removed obsolete/wrong database file 2025-10-30 22:47:49 -07:00
Steve Yegge
892c22145f bd sync: 2025-10-30 22:30:33 2025-10-30 22:30:33 -07:00
Steve Yegge
4a21005a31 bd sync: 2025-10-30 22:24:33 2025-10-30 22:24:33 -07:00
Steve Yegge
e441a5c04c bd sync: 2025-10-30 22:17:47 2025-10-30 22:17:47 -07:00
Steve Yegge
016fc155f3 bd sync: 2025-10-30 21:58:53 2025-10-30 21:58:53 -07:00
Steve Yegge
0f7ed1bdb4 bd sync: 2025-10-30 21:51:32 2025-10-30 21:51:32 -07:00
Steve Yegge
fb48d681a1 bd sync: 2025-10-30 21:40:44 2025-10-30 21:40:44 -07:00