Skip to content

Commit

Permalink
Quote externalId and version when calling workflows.executions.run(..…
Browse files Browse the repository at this point in the history
….) (#1987)

Co-authored-by: Håkon V. Treider <[email protected]>
  • Loading branch information
VerstraeteBert and haakonvt authored Oct 21, 2024
1 parent a97a496 commit c36f442
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [7.63.8] - 2024-10-21
### Fixed
- Data Workflows: workflow external ID and version are now URL encoded to allow characters like `/` when calling `workflows.executions.run`

## [7.63.7] - 2024-10-18
### Fixed
- Calling `cognite_client.data_modeling.instances(..., chunk_size=False, include_typing=False)` no longer raises a
Expand Down
4 changes: 3 additions & 1 deletion cognite/client/_api/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ def run(
if metadata is not None:
body["metadata"] = metadata

response = self._post(url_path=f"/workflows/{workflow_external_id}/versions/{version}/run", json=body)
response = self._post(
url_path=f"/workflows/{quote(workflow_external_id, '')}/versions/{quote(version, '')}/run", json=body
)
return WorkflowExecution._load(response.json())

def list(
Expand Down
2 changes: 1 addition & 1 deletion cognite/client/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations

__version__ = "7.63.7"
__version__ = "7.63.8"
__api_subversion__ = "20230101"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "cognite-sdk"

version = "7.63.7"
version = "7.63.8"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
Expand Down

0 comments on commit c36f442

Please sign in to comment.