Commit Graph

5 Commits

Author SHA1 Message Date
Steve Yegge
a46c2f79a9 Resolve merge conflicts: use importer package 2025-10-27 22:44:40 -07:00
Steve Yegge
ea7eaafb06 bd-211: Remove deprecated rename functions from import_shared.go
- Removed renameImportedIssuePrefixes (wrapper, 3 LOC)
- Removed renameImportedIssuePrefixesOld (deprecated, 61 LOC)
- Removed replaceIDReferences (32 LOC)
- Removed replaceBoundaryAware (31 LOC)
- Removed isBoundary (5 LOC)
- Removed TestIsBoundary (37 LOC)
- Removed TestReplaceBoundaryAware (54 LOC)
- Total: 223 LOC removed (136 LOC code + 91 LOC tests)
- Active implementation is in internal/importer/importer.go
- All tests pass
2025-10-27 20:38:13 -07:00
Ryan Newton + Claude
e3df9cfa97 Add rename-prefix --repair flag and consolidate issue ID parsing
Enhances rename-prefix command with --repair flag to consolidate databases
with multiple prefixes. Creates shared issue ID utilities to eliminate code
duplication across import and rename operations.

Key changes:
- Add --repair flag to detect and consolidate multiple issue prefixes
- Create internal/utils/issue_id.go with ExtractIssuePrefix() and ExtractIssueNumber()
- Update all duplicate prefix extraction code to use shared utilities
- Add comprehensive tests for repair functionality

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2025-10-27 18:31:01 +00:00
Steve Yegge
0f49d30535 Fix lint: mark unused test parameter with underscore 2025-10-24 21:34:56 -07:00
Steve Yegge
d0f6524c90 Add test coverage improvements (+2.7% overall)
- cmd/bd: 20.4% → 21.1% (+0.7%)
  - Added tests for helper functions: isBoundary, isNumeric,
    extractPrefix, getPrefixList, parseLabelArgs, replaceBoundaryAware
  - New files: helpers_test.go, simple_helpers_test.go

- internal/rpc: 46.6% → 58.0% (+11.4%)
  - Added tests for 11 RPC client methods: SetTimeout, Show, Ready,
    Stats, AddDependency, RemoveDependency, AddLabel, RemoveLabel,
    Batch, ReposList, ReposReady
  - New file: coverage_test.go

Overall coverage: 46.0% → 48.7%
Target: 75% (bd-136)

Amp-Thread-ID: https://ampcode.com/threads/T-a7ce061d-5a77-4654-a931-0a4f24aee192
Co-authored-by: Amp <amp@ampcode.com>
2025-10-24 17:06:22 -07:00