cognite-neat 0.113.2__py3-none-any.whl → 0.113.3__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.

Potentially problematic release.


This version of cognite-neat might be problematic. Click here for more details.

@@ -2,7 +2,6 @@ import warnings
2
2
  from collections import Counter, defaultdict
3
3
  from collections.abc import Mapping
4
4
  from functools import lru_cache
5
- from typing import ClassVar
6
5
 
7
6
  from cognite.client import data_modeling as dm
8
7
  from cognite.client.data_classes.data_modeling import ContainerList, ViewId, ViewList
@@ -59,10 +58,6 @@ class DMSValidation:
59
58
  """This class does all the validation of the DMS rules that have dependencies between
60
59
  components."""
61
60
 
62
- # When checking for changes extension=addition, we need to check if the new view has changed.
63
- # For example, changing the filter is allowed, but changing the properties is not.
64
- changeable_view_attributes: ClassVar[set[str]] = {"filter"}
65
-
66
61
  def __init__(
67
62
  self,
68
63
  rules: DMSRules,
@@ -96,6 +91,11 @@ class DMSValidation:
96
91
  imported_views.add(prop.view)
97
92
  view_with_properties.add(prop.view)
98
93
 
94
+ for container in self._containers or []:
95
+ for required in container.constraint or []:
96
+ if required not in existing_containers:
97
+ imported_containers.add(required)
98
+
99
99
  if include_views_with_no_properties:
100
100
  extra_views = existing_views - view_with_properties
101
101
  imported_views.update({view for view in extra_views})
cognite/neat/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "0.113.2"
1
+ __version__ = "0.113.3"
2
2
  __engine__ = "^2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cognite-neat
3
- Version: 0.113.2
3
+ Version: 0.113.3
4
4
  Summary: Knowledge graph transformation
5
5
  License: Apache-2.0
6
6
  Author: Nikola Vasiljevic
@@ -114,7 +114,7 @@ cognite/neat/_rules/models/dms/__init__.py,sha256=fRaUH0IwG0YwWd_DNKM6j-jHHFyiIV
114
114
  cognite/neat/_rules/models/dms/_exporter.py,sha256=tQeRZg0xHSTjG4BGB1BxNdewWaPVIi_8cAp0Mh0Isa4,27894
115
115
  cognite/neat/_rules/models/dms/_rules.py,sha256=dY4JYAtoy_TbYf1DIi1RYWjqoYxpR9FeVTXRJe9IfC0,21509
116
116
  cognite/neat/_rules/models/dms/_rules_input.py,sha256=a7Wfq6KR-L3yjc9J_aX1PUQZSJ7JISuOxziaqcKx0vY,13722
117
- cognite/neat/_rules/models/dms/_validation.py,sha256=gkNwiOuSEXdWAXS4WupdOSqBht7mO0-AYjirAO668fk,32227
117
+ cognite/neat/_rules/models/dms/_validation.py,sha256=Uh6DaCywdpTljy3trmVGaHrRI1wqZSAHRBpSi1hemsU,32165
118
118
  cognite/neat/_rules/models/entities/__init__.py,sha256=Hlucp3LyV6ncLl79aqRTbSy2qgiGzoyN8x54D_zaJCY,1469
119
119
  cognite/neat/_rules/models/entities/_constants.py,sha256=g52-pFP_Qghp86NYk76pLDM52b3T4MXMztxhpeDW3Oc,344
120
120
  cognite/neat/_rules/models/entities/_loaders.py,sha256=OQDbz5ANMQ_7ZcdMIBdTR94BoCpWrBA2KBH3fCW0JQo,2728
@@ -176,10 +176,10 @@ cognite/neat/_utils/text.py,sha256=BFJoEOQBFgpelysL92FdF0OVRVFl0q9tRNoz-oRanNc,7
176
176
  cognite/neat/_utils/time_.py,sha256=O30LUiDH9TdOYz8_a9pFqTtJdg8vEjC3qHCk8xZblG8,345
177
177
  cognite/neat/_utils/upload.py,sha256=xWtM6mFuD2QYQHaZ7zCAuGptbEpPIxcH-raWQu93-Ug,5845
178
178
  cognite/neat/_utils/xml_.py,sha256=FQkq84u35MUsnKcL6nTMJ9ajtG9D5i1u4VBnhGqP2DQ,1710
179
- cognite/neat/_version.py,sha256=V1axNMeW9jJrHGL6pgVYLUSuJlRf3pSUZW2Jdu7dFYE,46
179
+ cognite/neat/_version.py,sha256=WOuD_YdIg1vhJB33VJRiME1talrsamVg33rghwUP2Q4,46
180
180
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
181
- cognite_neat-0.113.2.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
182
- cognite_neat-0.113.2.dist-info/METADATA,sha256=Zr5iNVRwFkiIRyhv8hMfcHa89rAImVCaZvK_F9WUuMg,5361
183
- cognite_neat-0.113.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
184
- cognite_neat-0.113.2.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
185
- cognite_neat-0.113.2.dist-info/RECORD,,
181
+ cognite_neat-0.113.3.dist-info/LICENSE,sha256=W8VmvFia4WHa3Gqxq1Ygrq85McUNqIGDVgtdvzT-XqA,11351
182
+ cognite_neat-0.113.3.dist-info/METADATA,sha256=kEl6eFOgoccnwaAoosTWscrzdbb81fWKW-szRqo88ko,5361
183
+ cognite_neat-0.113.3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
184
+ cognite_neat-0.113.3.dist-info/entry_points.txt,sha256=SsQlnl8SNMSSjE3acBI835JYFtsIinLSbVmHmMEXv6E,51
185
+ cognite_neat-0.113.3.dist-info/RECORD,,