Skip to content

feat: add example coverage for getVariableHistoryItem - #516

Merged
camunda-sdk-automation[bot] merged 2 commits into
mainfrom
agent/example-coverage-515
Nov 30, 2026
Merged

camunda-sdk-automation[bot] merged 2 commits into
mainfrom
agent/example-coverage-515

Conversation

@camunda-sdk-automation

Copy link
Copy Markdown
Contributor

Resolves #515.

Generated by the Copilot CLI in CI (agent-example-coverage workflow), 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.

camunda-sdk-automation Bot and others added 2 commits November 30, 2026 09:07
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>
@camunda-sdk-automation
camunda-sdk-automation Bot requested a review from a team as a code owner November 30, 2026 09:08
Copilot AI balanced review requested due to automatic review settings November 30, 2026 09:08
@camunda-sdk-automation
camunda-sdk-automation Bot enabled auto-merge (squash) November 30, 2026 09:11
@camunda-sdk-automation

Copy link
Copy Markdown
Contributor Author

🤖 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 agent-hold label, request changes, or press Disable auto-merge above.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 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

@camunda-sdk-automation
camunda-sdk-automation Bot merged commit bfe53b3 into main Nov 30, 2026
31 checks passed
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.

Missing example coverage: getVariableHistoryItem

1 participant