beads/internal/storage/sqlite
Steve Yegge db8efd534c Fix bd-179: Derive prefix from database filename when config missing
- Add dbPath field to SQLiteStorage to track database file path
- Create derivePrefixFromPath() helper to extract prefix from filename
- Update ID generation in CreateIssue() and generateBatchIDs() to use filename fallback
- Fix tests to explicitly set issue_prefix config for bd- prefixed tests

When config doesn't have issue_prefix set, bd now correctly derives it from
the database filename (e.g., wy-.db -> wy) instead of always defaulting to 'bd'.

Fixes: bd-179
2025-10-20 22:18:08 -07:00
..
collision.go Cleanup and fixes: godoc comments, removed dead code, fixed renumber FK constraint bug 2025-10-19 19:37:58 -07:00
collision_dedup_test.go Fix bd-421: Add deduplication to prevent importing duplicate issues 2025-10-16 18:08:58 -07:00
collision_test.go Cache compiled regexes in ID replacement for 1.9x performance boost 2025-10-13 23:50:48 -07:00
compact.go Add compacted_at_commit field and git commit capture during compaction 2025-10-16 17:43:38 -07:00
compact_bench_test.go Remove snapshot/restore functionality from compaction 2025-10-16 00:26:42 -07:00
compact_test.go Add compacted_at_commit field and git commit capture during compaction 2025-10-16 17:43:38 -07:00
cycle_bench_test.go Add cycle detection performance benchmarks (bd-311) 2025-10-16 13:32:44 -07:00
dependencies.go Add daemon support for label commands and populate labels in issue queries 2025-10-19 21:14:23 -07:00
dependencies_test.go feat: implement --max-depth flag for bd dep tree (closes #87, bd-3, bd-159) 2025-10-19 09:00:11 -07:00
dirty.go Refactor dependency dirty marking to use shared helper (bd-56) 2025-10-14 00:35:43 -07:00
dirty_test.go test: Add comprehensive test coverage for storage layer 2025-10-15 01:30:28 -07:00
epics.go Add epic closure management commands (fixes #62) 2025-10-17 13:50:20 -07:00
events.go Add epic closure management commands (fixes #62) 2025-10-17 13:50:20 -07:00
events_test.go test: Add comprehensive test coverage for storage layer 2025-10-15 01:30:28 -07:00
labels.go Add daemon support for label commands and populate labels in issue queries 2025-10-19 21:14:23 -07:00
labels_test.go test: Add comprehensive test coverage for storage layer 2025-10-15 01:30:28 -07:00
lazy_init_test.go Fix bd-179: Derive prefix from database filename when config missing 2025-10-20 22:18:08 -07:00
migration_test.go Fix bd-179: Derive prefix from database filename when config missing 2025-10-20 22:18:08 -07:00
ready.go Add daemon support for label commands and populate labels in issue queries 2025-10-19 21:14:23 -07:00
ready_test.go Add ready test for handling closed/blocked filter combinations 2025-10-18 13:12:14 -07:00
schema.go Add comments feature (bd-162) 2025-10-19 18:28:41 -07:00
sqlite.go Fix bd-179: Derive prefix from database filename when config missing 2025-10-20 22:18:08 -07:00
sqlite_test.go Add label filtering to bd list with AND/OR semantics 2025-10-19 23:03:02 -07:00
util.go feat: Add 'bd stale' command to show and release orphaned executor claims 2025-10-18 17:14:21 -07:00