Conversation
Code ReviewIssues Found
Summary3 issues found. The PR title blocks the release pipeline; the missing |
|
Since multiple v4 APIs (units, unit-families, and upcoming v4 services) share this exact same contract ( Specifically, fetching the entity inside
Proposed shared abstraction:
This eliminates the hidden Feel free to implement any other abstraction |
|
# Fails with Pydantic ValidationError (missing name, type, symbol):
client.units_v4.update(unit=UnitV4(id="UNI123", description="New description"))If a caller passes dummy values to satisfy Pydantic (e.g. Suggested fix: name: str | None = None
type: UnitV4Type | None = None
symbol: str | None = NoneAlternatively, validate required fields during |
|
A couple of minor API validation gaps to align with the rest of the SDK:
|
|
Both test suites currently disable execution with: pytestmark = pytest.mark.skip(
reason="The v4 units API (master-data) is not yet available in the test environment."
)The v4 master-data API is actually live and accessible on staging (endpoints like For convertible units, if the test environment lacks pre-existing global reference units, using expressions (e.g., |
|
Code Review Issues Found
Summary |
|
Code Review Issues Found
Summary 3 issues found. No functional runtime bugs in the units_v4 logic (serialization, pagination mode, merge-patch diffing, and client registration all check out); the findings are convention/consistency issues, the most impactful being the non-conventional PR title which the new pr-title workflow will reject. |
…he v4 master-data API - client.units_v4 wraps /api/v4.0/master-data/units: create, get_by_id, get_by_ids, search, update, delete, lookup, get_compatible, merge - client.unit_families_v4 wraps /api/v4.0/master-data/unit-families: create, get_by_id, get_by_ids, search, update, delete, lookup - update() sends a JSON merge-patch of changed, patchable fields with the If-Match version read from the GET ETag header - UnitV4Id / UnitFamilyV4Id accept a UUID unchanged or a legacy UNI/UNF ID - Marked beta, following the substances v3/v4 split; v3 client.units is untouched Co-Authored-By: Claude Code <claude-code@anthropic.com>
Co-Authored-By: Claude Code <claude-code@anthropic.com>
…ntegration suites The integration suites are module-skipped until the test environment is migrated to the v4 master-data APIs. Co-Authored-By: Claude Code <claude-code@anthropic.com>
|
Code Review Issues Found:
Summary: 1 minor issue found. Low-severity latent inconsistency in response-key handling; no other correctness, serialization, pagination, or docstring problems. @validate_call, model_dump(by_alias=True, mode="json"), OFFSET pagination wiring, str-based enums, and modern type hints are all correct. |
3ba9697 to
31e6c48
Compare
|
Looks good - no bugs or correctness issues found. |
Add Coverage of Units V4 to SDK