Remove obsolete collision remapping code and tests
- Deleted collision remapping tests (obsolete with hash IDs bd-8e05) - Simplified collision.go from 704 to 138 lines - Removed RemapCollisions, ScoreCollisions, and reference update code - Removed issue_counters table dependencies (bd-807b) - Added COLLISION_MATH.md documentation - Fixed RenameCounterPrefix and ResetCounter to be no-ops - Closed bd-a58f, bd-3d65, bd-807b Hash-based IDs make collision remapping unnecessary since collisions are extremely rare (same ID = same content). Amp-Thread-ID: https://ampcode.com/threads/T-cbb0f111-6a95-4598-b03e-c137112f9875 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
12
cmd/bd/testdata/show.txt
vendored
12
cmd/bd/testdata/show.txt
vendored
@@ -1,8 +1,16 @@
|
||||
# Test bd show command
|
||||
bd init --prefix test
|
||||
bd create 'Test issue for show'
|
||||
|
||||
bd show test-1
|
||||
# Create issue and capture its hash ID
|
||||
bd create 'Test issue for show'
|
||||
cp stdout issue.txt
|
||||
grep 'Created issue: test-' issue.txt
|
||||
|
||||
# Extract ID using grep
|
||||
exec sh -c 'grep -oE "test-[a-f0-9]+" issue.txt > issue_id.txt'
|
||||
|
||||
# Show the issue
|
||||
exec sh -c 'bd show $(cat issue_id.txt)'
|
||||
stdout 'Test issue for show'
|
||||
stdout 'Status:'
|
||||
stdout 'Priority:'
|
||||
|
||||
Reference in New Issue
Block a user