feat: Add search-jobs CLI commands for managing search jobs #1145
+1,197
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add new
src search-jobs
command with subcommands to manage search jobs:The command provides functionality to:
Test plan
Automated tests
Command registration tests
Verifies proper registration of the main search-jobs command
Validates command aliases
Ensures all subcommands (cancel, create, delete, get, list) are registered
Individual command tests:
Test retrieving job details
Handles existing jobs, non-existent jobs, empty IDs
Tests various output formatting options
Test job creation
Validates query parameters
Tests successful job creation flow
Includes query validation before creation
Test listing jobs
Handles pagination limits
Supports sorting options (asc/desc)
Validates order-by parameters
Test job cancellation
Handles running vs completed jobs
Tests non-existent job scenarios
Test job deletion
Tests successful deletion flows
Handles non-existent jobs
Manual testing
Tested all new command functionality locally to ensure UX and functionality matched the new feature documentation.