Skip to content

Commit

Permalink
Merge pull request #228 from cognitedata/pyyaml-upgrade
Browse files Browse the repository at this point in the history
Refactor obsolete datapoints insert API usage
  • Loading branch information
pcperera committed Jan 30, 2024
2 parents 895d31a + 734841f commit b4b973a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: cognite/cognite-replicator:latest,cognite/cognite-replicator:1.3.1
tags: cognite/cognite-replicator:latest,cognite/cognite-replicator:1.3.2
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ Changes are grouped as follows
## [Planned]

- Support for replicating file data
-
## [1.3.1] - 2023-01-29

## [1.3.2] - 2023-01-30

## Fixed
- Obsolete datapoints insert API usage fixed.

## [1.3.1] - 2023-01-30

## Fixed
- Obsolete datapoints API usage fixed.
Expand Down
2 changes: 1 addition & 1 deletion cognite/replicator/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.3.1"
__version__ = "1.3.2"
2 changes: 1 addition & 1 deletion cognite/replicator/datapoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def replicate_datapoints_several_ts(
print("Ready to insert datapoints...", time.ctime())
# insert the multiple lists of datapoints into CDF
if not mock_run:
client_dst.datapoints.insert_multiple(insert_format_datapoints)
client_dst.time_series.data.insert_multiple(insert_format_datapoints)
print("DATAPOINTS INSERTED AT: ", time.ctime())

except CogniteAPIError as exc:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cognite_replicator"
version = "1.3.1"
version = "1.3.2"
description = "Python package for replicating data across CDF projects. Copyright 2023 Cognite AS"
license = "Apache-2.0"
authors = [
Expand Down

0 comments on commit b4b973a

Please sign in to comment.