You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The RAG polling loops exceed the documented maxRetries limit by one request and an extra delay because the counter now starts at zero while the limit still adds one.
Preserve deprecated workflow exports to avoid breaking consumers
src/v1/index.ts:9
These workflow definitions are publicly exported, even though the remaining SDK implementation no longer uses them. Removing them breaks existing consumers referencing types such as v1.WorkflowOptions or values such as v1.parsing.common.ExecutionPriority. For this non-breaking cleanup, retain the definitions and exports as deprecated; otherwise, treat their removal as a breaking SDK release with migration guidance.
Test polling with the URL returned by the enqueue response
src/v2/client.ts:240
The existing enqueueAndGetResult unit tests all reject during enqueue with HTTP 400, so none exercises this new URL-based polling path; the getJob test only covers lookup by ID. Please add a mocked enqueue/poll/result test whose returned polling URL differs from the URL constructed from the job ID, and assert that polling uses the returned URL. Otherwise, reverting this behavior to ID-based polling would still pass the current tests.
Test polling failures after successful enqueue
src/v2/client.ts:254
The existing enqueueAndGetResult tests in tests/v2/client/client.spec.ts reject during enqueue, leaving the changed polling-error contract untested. Add a successful enqueue followed by an HTTP 200 job response with status Failed, and assert that MindeeHttpErrorV2 preserves the job's error fields. Also cover the no-detail MindeeError fallback.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Existing enqueueAndGetResult() tests fail during enqueue, leaving no regression coverage that verifies polling the supplied polling_url through completion and fetching the completed job’s result_url.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The refactor removes public types, execution classes, and an enum, breaking existing consumers despite being marked non-breaking; these APIs must be retained or removed in an explicitly breaking release with migration guidance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Description
Types of changes