Skip to content

Better polling - #445

Merged
ianardee merged 3 commits into
mainfrom
better-polling
Oct 7, 2026
Merged

ianardee merged 3 commits into
mainfrom
better-polling

Conversation

@ianardee

@ianardee ianardee commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Description

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Poll exhaustion waits unnecessarily after the final attempt, and the rewritten polling state machine lacks deterministic unit coverage.

Review effort: Balanced
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Refines V2 polling behavior, logging, documentation, and test naming.

Changes:

  • Splits job polling from result retrieval and improves failure handling.
  • Uses null logging by default and adjusts polling logs.
  • Improves API documentation and test display names.
File Description
src/​Mindee/​V2/​Client.cs Refactors polling and logging behavior.
src/​Mindee/​V2/​Http/​HttpApiV2.cs Documents the deletion parameter.
tests/​Mindee.UnitTests/​V2/​Product/​Extraction/​RagDocumentsTest.cs Adds descriptive test names.
tests/​Mindee.UnitTests/​V2/​Parsing/​FailedInferenceResponseTest.cs Adds a descriptive test name.
tests/​Mindee.IntegrationTests/​V2/​Product/​Extraction/​RagDocumentsTest.cs Adds a descriptive lifecycle test name.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Mindee/V2/Client.cs
Comment thread src/Mindee/V2/Client.cs
Comment thread src/Mindee/V2/Client.cs Outdated
@ianardee
ianardee force-pushed the better-polling branch 4 times, most recently from f863da1 to 8513d3a Compare October 6, 2026 19:17
@ianardee
ianardee merged commit 9a67f1e into main Oct 7, 2026
11 checks passed
@ianardee
ianardee deleted the better-polling branch October 7, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants