Repository navigation
feat: add example coverage for getVariableHistoryItem - #516
Conversation
Refresh the bundled specification and generated SDK. Add getVariableHistoryItem support. References #515. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Show how to retrieve a variable history item by its typed key. Read the returned timestamp, name, and full value. Closes #515. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🤖 All auto-merge gates passed — review comments resolved, no changes requested, and the diff stays within the example-coverage set. Queued for auto-merge; GitHub will merge this once the required checks are green. To stop it: add the |
There was a problem hiding this comment.
🔵 Needs a closer look
The generated synchronous and asynchronous client docstrings omit the newly mapped GetVariableHistoryItem usage example, requiring SDK regeneration and a commit of the generated output.
No open issues 🎉
What changed in this PR
Adds example coverage for getVariableHistoryItem from issue #515, along with the specification and generated Python SDK support needed to retrieve a history item's full variable value.
Changes:
- Adds a region-tagged example and operation-map entry.
- Adds synchronous and asynchronous client methods, a response model, exports, and type stubs.
- Refreshes specification artifacts and includes upstream schema and documentation updates.
| File | Description |
|---|---|
stubs/camunda_orchestration_sdk/models/variable_history_item_result.pyi |
Declares the new response model. |
stubs/camunda_orchestration_sdk/models/__init__.pyi |
Exports the response model. |
stubs/camunda_orchestration_sdk/client.pyi |
Declares both client methods. |
stubs/camunda_orchestration_sdk/api/variable/get_variable_history_item.pyi |
Declares low-level endpoint functions. |
stubs/camunda_orchestration_sdk/_spec_hash.pyi |
Updates the specification fingerprint. |
stubs/camunda_orchestration_sdk/__init__.pyi |
Exposes the model at package level. |
generated/camunda_orchestration_sdk/models/variable_history_item_result.py |
Implements response serialization and parsing. |
generated/camunda_orchestration_sdk/models/__init__.py |
Exports the generated model. |
generated/camunda_orchestration_sdk/client.py |
Adds sync and async history-item retrieval. |
generated/camunda_orchestration_sdk/api/variable/get_variable_history_item.py |
Implements requests and response handling. |
generated/camunda_orchestration_sdk/_spec_hash.py |
Updates the generated specification fingerprint. |
generated/camunda_orchestration_sdk/__init__.py |
Adds the public model export. |
generated/bundled_spec.yaml |
Adds the endpoint and flattened response schema. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/variables.yaml |
Defines the endpoint and response schema. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/rest-api.yaml |
Registers the new endpoint. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/element-instances.yaml |
Makes an upstream request body optional. |
external-spec/upstream/zeebe/gateway-protocol/src/main/proto/v2/batch-operations.yaml |
Clarifies batch-operation end-date documentation. |
external-spec/bundled/spec-metadata.json |
Records endpoint metadata and updated counts. |
external-spec/bundled/rest-api.bundle.json |
Adds the bundled endpoint and response schema. |
examples/operation-map.json |
Maps the operation to its example. |
examples/extended_operations.py |
Demonstrates retrieval and printing of a history item. |
Review effort: Balanced
Resolves #515.
Generated by the Copilot CLI in CI (
agent-example-coverageworkflow), following AGENTS.md and the repo's example conventions. Coverage check and example build passed before this PR was opened — please still review the example bodies for correctness and idiomatic style.This may cover more operations than the issue names: the agent closes every gap the coverage check reports, including any that only appear after regenerating from a newer spec.