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
Two changes from the PR #324 review:
1. Make ExportCreateRequest.FileFormat required.
Previously defaulted to ExportFileFormat.Parquet. Reviewer flagged
that adding a new file format later would silently change behaviour
for callers who relied on the default. Drop the default — callers
must now pass the format explicitly. Update all 7 call sites
(4 integration, 3 unit). PublicAPI.Unshipped.txt updated.
2. ExportClient.Cancel returns Task<bool>, no-throw on 409.
Previously threw WeaviateConflictException when the server responded
409 (export already in a terminal state — can't cancel). Reviewer
wanted a true/false pattern: false = could not cancel, throws only
for genuine errors like 404 Not Found.
- Rest/Export.cs ExportCancel: returns bool, returns false on 409,
delegates other status codes to ManageStatusCode.
- ExportClient.Cancel: signature now Task<bool>.
- ExportOperationBase: delegate type + public Cancel both return
Task<bool>, propagating the result.
- ExportOperation: matching delegate signature.
- Cancel_StopsRunningExport integration test: replace try/catch on
WeaviateConflictException with bool assertion.
- Two new unit tests cover 204→true, 409→false, 404→throws.
- PublicAPI.Unshipped.txt updated for all three signature changes.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments