Skip to content

Commit

Permalink
fix: Bug in transformation init method
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Nov 28, 2023
1 parent f4c00fe commit f11891e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Changes are grouped as follows
- `Fixed` for any bug fixes.
- `Security` in case of vulnerabilities.

## [7.4.1] - 2023-11-28
### Fixed
- Error in logic when creating a `Transformation`. This is causing when calling `client.transformations.update`.
This is now fixed.

## [7.4.0] - 2023-11-27
### Changed
- Unit Catalog API is out of beta and will no longer issue warnings on usage. Access is unchanged: `client.units`.
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.4.0"
__version__ = "7.4.1"
__api_subversion__ = "V20220125"
2 changes: 1 addition & 1 deletion cognite/client/data_classes/transformations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def __init__(
if (
(self.schedule and self.id != self.schedule.id)
or (self.running_job and self.id != self.running_job.id)
or (self.last_finished_job and self.id != self.last_finished_job.id)
or (self.last_finished_job and self.id != self.last_finished_job.transformation_id)
):
raise ValueError("Transformation id must be the same as the schedule, running_job, last_running_job id.")

Expand Down
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.4.0"
version = "7.4.1"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
Expand Down

0 comments on commit f11891e

Please sign in to comment.