GenAI | added ListIndexingJobs #1745
Open
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.
Issue
APICLI-2961
Code Changes
Added IndexingJob data structure - Created new IndexingJob type with 15 fields including UUID, status, phase, timestamps, and processing metrics
Implemented ListIndexingJobs service method - Added HTTP client integration to call /v2/gen-ai/indexing_jobs endpoint with pagination support
Created list-indexing-jobs CLI command - Added new command with alias ls-jobs and detailed help documentation explaining all returned fields
Built IndexingJob displayer - Implemented output formatting with column mapping for table display and JSON serialization
Updated service interface - Extended GenAIService interface to include the new ListIndexingJobs() method
Testing
Added unit test - Created TestKnowledgeBaseListIndexingJobs with mock expectations and sample test data
Updated command validation - Added "list-indexing-jobs" to expected command names in existing test
Built integration test - Implemented HTTP mock server test with authentication and response validation