Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix files and events replicators #134

Merged
merged 7 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Changes are grouped as follows

## [Unreleased]

## [0.8.2] - 2020-11-11

## Fixed
- Fix broken behavior: add arg to copy functions of events and files replicators (code was broken as a result of the addition of a 7th arg to the invoking replication.thread function)

## [0.8.1] - 2020-07-06

## Fixed
Expand Down Expand Up @@ -157,4 +162,4 @@ and no exclusion of final datapoint
### Fixed
- Time series replication no longer attempts to create security category-protected time series
- Use pre-commit hooks to run black and unit tests
- Send logs to google cloud stackdriver if configured, needed the right dependencies.
- Send logs to google cloud stackdriver if configured, needed the right dependencies
2 changes: 1 addition & 1 deletion cognite/replicator/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.1"
__version__ = "0.8.2"
2 changes: 2 additions & 0 deletions cognite/replicator/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def copy_events(
project_src: str,
runtime: int,
client: CogniteClient,
dst_ts = None,
):
"""
Creates/updates event objects and then attempts to create and update these objects in the destination.
Expand All @@ -90,6 +91,7 @@ def copy_events(
project_src: The name of the project the object is being replicated from.
runtime: The timestamp to be used in the new replicated metadata.
client: The client corresponding to the destination project.
dst_ts: Is None for events, is called from replication's thread() fn for timeseries.

"""
logging.debug(f"Starting to replicate {len(src_events)} events.")
Expand Down
2 changes: 2 additions & 0 deletions cognite/replicator/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def copy_files(
project_src: str,
runtime: int,
client: CogniteClient,
dst_ts = None,
):
"""
Creates/updates file objects and then attempts to create and update these objects in the destination.
Expand All @@ -83,6 +84,7 @@ def copy_files(
project_src: The name of the project the object is being replicated from.
runtime: The timestamp to be used in the new replicated metadata.
client: The client corresponding to the destination project.
dst_ts: Is None for events, is called from replication's thread() fn for timeseries.

"""
logging.debug(f"Starting to replicate {len(src_files)} files.")
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 = "0.8.1"
version = "0.8.2"
description = "Python package for replicating data across CDF tenants. Copyright 2019 Cognite AS"
license = "Apache-2.0"
authors = [
Expand Down