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.
🟡 Changes recommended
Partial polling-option hashes override defaults with nil and break polling after submission, while the RBS signature incorrectly requires a cancellation token, invalidating existing three-argument calls.
This PR separates polling configuration from V2 product parameters in the Mindee Ruby SDK, intentionally removing the legacy way of passing polling options through product parameters.
Changes:
Moves polling normalization and validation into PollingOptions and extracts the V2 polling loop.
Updates parameter classes, type signatures, and tests to use separate polling options.
Includes namespace cleanup, editor configuration updates, and a V1 PDF-processing call adjustment.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The signature incorrectly requires polling_options:, rejecting typed callers that omit the keyword even though the Ruby implementation supports that form with default settings.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Make polling_options optional to match the Ruby default
sig/mindee/input/polling_options.rbs:11
This signature requires polling_options:, but the Ruby implementation defaults it to {}, so PollingOptions.from_hash without arguments is valid and returns the default settings. Typed callers using that supported form will be rejected. Mark the keyword optional to match the implementation.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because existing tests do not verify how custom polling settings affect delays and request counts, leaving the rework’s key behavior insufficiently validated.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Critical polling errors can reject jobs completed on the final attempt and create remote jobs before validating options, leaving callers without a job ID.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Regression tests are missing for polling-option normalization and custom settings during polling, and for preserving text_context and data_schema through ExtractionParameters.from_hash.
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