cognite-toolkit 0.7.5__py3-none-any.whl → 0.7.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -354,6 +354,16 @@ class TransformationCRUD(
354
354
  if "authentication" in local:
355
355
  # The hash added to the beginning of the query detects the change in the authentication
356
356
  dumped["authentication"] = local["authentication"]
357
+ cdf_destination = dumped.get("destination", {})
358
+ local_destination = local.get("destination", {})
359
+ if isinstance(cdf_destination, dict) and isinstance(local_destination, dict):
360
+ if cdf_destination.get("instanceSpace") is None and "instanceSpace" not in local_destination:
361
+ cdf_destination.pop("instanceSpace", None)
362
+ if not dumped.get("query") and "query" not in local:
363
+ dumped.pop("query", None)
364
+ if dumped.get("conflictMode") == "upsert" and "conflictMode" not in local:
365
+ # Default set from server side.
366
+ dumped.pop("conflictMode", None)
357
367
  return dumped
358
368
 
359
369
  def split_resource(
@@ -12,7 +12,7 @@ jobs:
12
12
  environment: dev
13
13
  name: Deploy
14
14
  container:
15
- image: cognite/toolkit:0.7.5
15
+ image: cognite/toolkit:0.7.6
16
16
  env:
17
17
  CDF_CLUSTER: ${{ vars.CDF_CLUSTER }}
18
18
  CDF_PROJECT: ${{ vars.CDF_PROJECT }}
@@ -10,7 +10,7 @@ jobs:
10
10
  environment: dev
11
11
  name: Deploy Dry Run
12
12
  container:
13
- image: cognite/toolkit:0.7.5
13
+ image: cognite/toolkit:0.7.6
14
14
  env:
15
15
  CDF_CLUSTER: ${{ vars.CDF_CLUSTER }}
16
16
  CDF_PROJECT: ${{ vars.CDF_PROJECT }}
@@ -4,7 +4,7 @@ default_env = "<DEFAULT_ENV_PLACEHOLDER>"
4
4
  [modules]
5
5
  # This is the version of the modules. It should not be changed manually.
6
6
  # It will be updated by the 'cdf modules upgrade' command.
7
- version = "0.7.5"
7
+ version = "0.7.6"
8
8
 
9
9
 
10
10
  [plugins]
@@ -1 +1 @@
1
- __version__ = "0.7.5"
1
+ __version__ = "0.7.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognite_toolkit
3
- Version: 0.7.5
3
+ Version: 0.7.6
4
4
  Summary: Official Cognite Data Fusion tool for project templates and configuration deployment
5
5
  Project-URL: Homepage, https://docs.cognite.com/cdf/deploy/cdf_toolkit/
6
6
  Project-URL: Changelog, https://github.com/cognitedata/toolkit/releases
@@ -1,6 +1,6 @@
1
1
  cognite_toolkit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  cognite_toolkit/_cdf.py,sha256=PzDig6dgbDX5VL88AeijQuTeYb2SS_yvenw9gr4fnxY,5794
3
- cognite_toolkit/_version.py,sha256=6qL_qyowXO9Pc6v11Zx2s-yd28_548ZZC-OsfzO_Pjc,22
3
+ cognite_toolkit/_version.py,sha256=wu65dmVM9fKR1rBHH263ls8Ca2FZzb0ejYcrP_Ld0iY,22
4
4
  cognite_toolkit/_cdf_tk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  cognite_toolkit/_cdf_tk/cdf_toml.py,sha256=VSWV9h44HusWIaKpWgjrOMrc3hDoPTTXBXlp6-NOrIM,9079
6
6
  cognite_toolkit/_cdf_tk/constants.py,sha256=TplKm2J9pGRHq7nAnLI0caTMHetS04OIz3hfq-jvGzo,7236
@@ -165,7 +165,7 @@ cognite_toolkit/_cdf_tk/cruds/_resource_cruds/robotics.py,sha256=dG45TvMcmpwV6Oy
165
165
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/streams.py,sha256=-vFcurvfoWZJLBXla7qmMFAtu81Nbcerx2IoizDC7EQ,3266
166
166
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/three_d_model.py,sha256=YmzIQp1cjU6ttqmwwDfU9wXFkKaW5ZuypdEu-LZsOXY,7545
167
167
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/timeseries.py,sha256=VUvg6geF8d7N6PY1kMXs6v2xbWReiSbbRhQNqlAlhUM,23518
168
- cognite_toolkit/_cdf_tk/cruds/_resource_cruds/transformation.py,sha256=8GtwjzkkOIMmVsV73QPtUtRdTbEefF7pnGj2QcW4I2Q,34234
168
+ cognite_toolkit/_cdf_tk/cruds/_resource_cruds/transformation.py,sha256=omaeqM5SKsG-WFyXg2WxaAq3EKifZOYXAYTf5j376Fw,34869
169
169
  cognite_toolkit/_cdf_tk/cruds/_resource_cruds/workflow.py,sha256=OMHOxFY2ZLi0RTw0LmE_dTeOmFUh9LDIEDykyiCOCIw,26773
170
170
  cognite_toolkit/_cdf_tk/data_classes/__init__.py,sha256=4zL-zR3lgQTCWfcy28LK0HEcukQOndPEFXVqfYfdKHU,1720
171
171
  cognite_toolkit/_cdf_tk/data_classes/_base.py,sha256=0jy9VrYIO6iRgOZIcRASv-xIQjU3QbMICffEEIqzx6A,2673
@@ -303,13 +303,13 @@ cognite_toolkit/_repo_files/.gitignore,sha256=ip9kf9tcC5OguF4YF4JFEApnKYw0nG0vPi
303
303
  cognite_toolkit/_repo_files/AzureDevOps/.devops/README.md,sha256=OLA0D7yCX2tACpzvkA0IfkgQ4_swSd-OlJ1tYcTBpsA,240
304
304
  cognite_toolkit/_repo_files/AzureDevOps/.devops/deploy-pipeline.yml,sha256=brULcs8joAeBC_w_aoWjDDUHs3JheLMIR9ajPUK96nc,693
305
305
  cognite_toolkit/_repo_files/AzureDevOps/.devops/dry-run-pipeline.yml,sha256=OBFDhFWK1mlT4Dc6mDUE2Es834l8sAlYG50-5RxRtHk,723
306
- cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=QzZ_9Fdgtk4XGRzjhz38X2gJLTUdpql2QhNhjVd0Kcc,666
307
- cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=mNYPPj62DTJmltAA9B6vYCzD4q4FFwJc_OwrtlnLpz4,2429
308
- cognite_toolkit/_resources/cdf.toml,sha256=UyImfcvX-B9HGOZWLuuIVlTAP5xk58FZCewFtaLmFJ8,474
306
+ cognite_toolkit/_repo_files/GitHub/.github/workflows/deploy.yaml,sha256=XvP8OhTGJMa0AnOG7k51u5RCOtpW3C0z03YrRQMlgek,666
307
+ cognite_toolkit/_repo_files/GitHub/.github/workflows/dry-run.yaml,sha256=fn6BudZx5hqu8HZaaLtQb70n-CCo4g5FBoz0RmMyFs4,2429
308
+ cognite_toolkit/_resources/cdf.toml,sha256=yT6jI66XOIcoO9aGveyggGlR2y6x8MxRFD392d6KjQg,474
309
309
  cognite_toolkit/demo/__init__.py,sha256=-m1JoUiwRhNCL18eJ6t7fZOL7RPfowhCuqhYFtLgrss,72
310
310
  cognite_toolkit/demo/_base.py,sha256=6xKBUQpXZXGQ3fJ5f7nj7oT0s2n7OTAGIa17ZlKHZ5U,8052
311
- cognite_toolkit-0.7.5.dist-info/METADATA,sha256=I83-hIqQN-b6yZzbtNqTaLxQIiTqklrkdg8mCnxdKi0,4500
312
- cognite_toolkit-0.7.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
313
- cognite_toolkit-0.7.5.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
314
- cognite_toolkit-0.7.5.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
315
- cognite_toolkit-0.7.5.dist-info/RECORD,,
311
+ cognite_toolkit-0.7.6.dist-info/METADATA,sha256=wIeDWoSuP-t7OIsklYvwEL751GNdvna_Bu1331e0gXQ,4500
312
+ cognite_toolkit-0.7.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
313
+ cognite_toolkit-0.7.6.dist-info/entry_points.txt,sha256=JlR7MH1_UMogC3QOyN4-1l36VbrCX9xUdQoHGkuJ6-4,83
314
+ cognite_toolkit-0.7.6.dist-info/licenses/LICENSE,sha256=CW0DRcx5tL-pCxLEN7ts2S9g2sLRAsWgHVEX4SN9_Mc,752
315
+ cognite_toolkit-0.7.6.dist-info/RECORD,,