Database cleanup and renumbering
- Closed 82 duplicate issues - Deleted 330 test/duplicate issues - Implemented bd renumber command with proper text reference updates - Cleaned database: 674 → 344 issues (49% reduction) - All issues now numbered bd-1 through bd-344 - Added RPC infrastructure (Phase 1) for daemon support - Delete helper scripts for cleanup operations Fixes: bd-696, bd-667, bd-698 Related: bd-695 (Epic: Database cleanup) Amp-Thread-ID: https://ampcode.com/threads/T-456af77c-8b7f-4004-9027-c37b95e10ea5 Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
24
delete_remaining_tests.sh
Executable file
24
delete_remaining_tests.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
# Delete remaining test issues from current database
|
||||
|
||||
set -e
|
||||
|
||||
echo "Deleting remaining test issues..."
|
||||
echo ""
|
||||
|
||||
# Get current test issues from database
|
||||
test_ids=$(./bd list --status open --json --no-auto-import | jq -r '.[] | select(.title | test("^(parallel_test|race_test|stress_test|final_test|final_review_test|verification_)")) | .id')
|
||||
|
||||
count=$(echo "$test_ids" | wc -l | tr -d ' ')
|
||||
echo "Found $count test issues to delete"
|
||||
echo ""
|
||||
|
||||
# Delete each one
|
||||
for id in $test_ids; do
|
||||
./bd delete "$id" --force --no-auto-import 2>&1 | grep -E "(✓|Error)" || true
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "Done! Deleted test issues."
|
||||
echo ""
|
||||
./bd stats --no-auto-import
|
||||
Reference in New Issue
Block a user