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:
22
cmd/bd/testdata/dep_add.txt
vendored
22
cmd/bd/testdata/dep_add.txt
vendored
@@ -1,10 +1,24 @@
|
||||
# Test bd dep add command
|
||||
bd init --prefix test
|
||||
|
||||
# Create issues and capture their hash IDs from output
|
||||
bd create 'First issue'
|
||||
bd create 'Second issue'
|
||||
bd dep add test-2 test-1
|
||||
cp stdout first.txt
|
||||
grep 'Created issue: test-' first.txt
|
||||
|
||||
bd create 'Second issue'
|
||||
cp stdout second.txt
|
||||
grep 'Created issue: test-' second.txt
|
||||
|
||||
# Extract IDs using grep (hash IDs are test-XXXXXXXX format)
|
||||
exec sh -c 'grep -oE "test-[a-f0-9]+" first.txt > first_id.txt'
|
||||
exec sh -c 'grep -oE "test-[a-f0-9]+" second.txt > second_id.txt'
|
||||
|
||||
# Add dependency: second depends on first
|
||||
exec sh -c 'bd dep add $(cat second_id.txt) $(cat first_id.txt)'
|
||||
stdout 'Added dependency'
|
||||
|
||||
bd show test-2
|
||||
# Verify the dependency was added
|
||||
exec sh -c 'bd show $(cat second_id.txt)'
|
||||
stdout 'Depends on'
|
||||
stdout 'test-1'
|
||||
stdout 'test-'
|
||||
|
||||
Reference in New Issue
Block a user