feat(KB-066): add batch GitHub import with throttled request handling
- Add fetchThrottled utility to GitHubClient with 429 retry handling and exponential backoff - Implement POST /api/github/batch-import endpoint for bulk GitHub resource imports - Add frontend API client function for batch import operations - Add comprehensive tests for throttled requests and batch import endpoint - Add retryAfter field to batch import result types for rate limit handling - Clean up unfinished UsageIndicator component and worktree retry cleanup code - Add changeset documenting the new batch GitHub import feature
This commit is contained in:
11
.changeset/batch-github-import.md
Normal file
11
.changeset/batch-github-import.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
"@dustinbyrne/kb": minor
|
||||
---
|
||||
|
||||
Add batch GitHub issue import with intelligent throttling
|
||||
|
||||
- New `POST /api/github/issues/batch-import` endpoint for importing multiple issues sequentially
|
||||
- Throttled request utility with exponential backoff and Retry-After header support
|
||||
- Rate limit protection: 1 batch request per 10 seconds per IP
|
||||
- Frontend API client function `apiBatchImportGitHubIssues()` with full type support
|
||||
- Comprehensive test coverage for retry logic, validation, and error handling
|
||||
Reference in New Issue
Block a user