Conversation
The backend exposes DELETE /api/v1/test_run_executions/{id} to remove
a test run execution, but no CLI command called it.
Adds `test-run-execution delete --id <id>`, mirroring `project delete`'s
confirmation pattern: prompts for confirmation unless --yes is passed,
then calls remove_test_run_execution_api_v1_test_run_executions__id__delete
and reports success or surfaces the API error.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Confirmation
participant API
User->>CLI: Run test-run-execution delete
CLI->>Confirmation: Request confirmation when --yes is absent
Confirmation-->>CLI: Return confirmation result
CLI->>API: Delete execution by id when confirmed
API-->>CLI: Return success or API error
CLI-->>User: Print result
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The delete command preserves confirmation behavior and reports API errors through the established CLI path. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Tick the box to add this pull request to the merge queue (same as
|
Summary
The backend exposes
DELETE /api/v1/test_run_executions/{id}to remove a test run execution, but the CLI had no command that called it.Changes
deletesubcommand to thetest_run_executioncommand group (th_cli/commands/test_run_execution.py), mirroring the existingproject deletecommand's confirmation pattern (--id,--yesto skip confirmation).remove_test_run_execution_api_v1_test_run_executions__id__delete(already present in the autogenerated API client).--yesand with interactive confirmation), cancel-on-decline, API error surfacing, missing--id, and--helpoutput.Usage
Closes #1112