cognite-neat 1.0.35__py3-none-any.whl → 1.0.36__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.
@@ -236,6 +236,10 @@ class MissingReverseDirectRelationTargetIndex(DataModelRule):
236
236
  if not resolved.container or not resolved.container_property:
237
237
  continue
238
238
 
239
+ # Skip CDM containers - we can't modify these
240
+ if resolved.container_ref.space in COGNITE_SPACES:
241
+ continue
242
+
239
243
  # Must be a DirectNodeRelation type (other types handled by ReverseConnectionContainerPropertyWrongType)
240
244
  if not isinstance(resolved.container_property.type, DirectNodeRelation):
241
245
  continue
@@ -257,10 +261,9 @@ class MissingReverseDirectRelationTargetIndex(DataModelRule):
257
261
  Recommendation(
258
262
  message=(
259
263
  f"View '{resolved.reverse_view_ref!s}' has a reverse direct relation "
260
- f"'{resolved.reverse_property_id}' that points to container "
261
- f"'{resolved.container_ref!s}' property '{resolved.container_property_id}'. "
262
- f"Add a cursorable B-tree index on this target container property "
263
- f"to enable efficient query traversal."
264
+ f"'{resolved.reverse_property_id}' that cannot be efficently traversed through queries, "
265
+ f"since it points to container {resolved.container_ref!s}' "
266
+ f"property '{resolved.container_property_id}' that is unindexed. "
264
267
  ),
265
268
  fix="Add a cursorable B-tree index on the target direct relation property",
266
269
  code=self.code,
cognite/neat/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.0.35"
1
+ __version__ = "1.0.36"
2
2
  __engine__ = "^2.0.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cognite-neat
3
- Version: 1.0.35
3
+ Version: 1.0.36
4
4
  Summary: Knowledge graph transformation
5
5
  Author: Nikola Vasiljevic, Anders Albert
6
6
  Author-email: Nikola Vasiljevic <nikola.vasiljevic@cognite.com>, Anders Albert <anders.albert@cognite.com>
@@ -89,7 +89,7 @@ cognite/neat/_data_model/rules/dms/_consistency.py,sha256=7u-EDQk08eV4CJoY5nRbrY
89
89
  cognite/neat/_data_model/rules/dms/_containers.py,sha256=R67rAlA2V9oMbp0bQEpHu8VF1Yr3f8xXgox7NkQtWk8,10539
90
90
  cognite/neat/_data_model/rules/dms/_limits.py,sha256=L6dAsLWVBEpfVFZgw3SvJk1PnEGf4lhJ3SOXjDUsY2Q,14820
91
91
  cognite/neat/_data_model/rules/dms/_orchestrator.py,sha256=tTXxLH1yThAeTW_GdDeD-to19faK72c_z8QL9kzgGJc,3069
92
- cognite/neat/_data_model/rules/dms/_performance.py,sha256=Tp7D5cCEOqjfst9tLKuA9X2F9f4lQLJHEiGojm-rQUI,12229
92
+ cognite/neat/_data_model/rules/dms/_performance.py,sha256=FlrkePUQ0MIzC1YJciiABS-FcNhnRfJSYZzJbEWeIJQ,12322
93
93
  cognite/neat/_data_model/rules/dms/_views.py,sha256=Tp4VW2512eGSGgeMRoUFh7hqK2vsZD8ryN_EJ7QJoEg,6335
94
94
  cognite/neat/_exceptions.py,sha256=hOjPL1vFNNAZzqAHFB9l9ek-XJEBKcqiaPk0onwLPns,2540
95
95
  cognite/neat/_issues.py,sha256=wH1mnkrpBsHUkQMGUHFLUIQWQlfJ_qMfdF7q0d9wNhY,1871
@@ -333,9 +333,9 @@ cognite/neat/_v0/session/_template.py,sha256=BNcvrW5y7LWzRM1XFxZkfR1Nc7e8UgjBClH
333
333
  cognite/neat/_v0/session/_to.py,sha256=AnsRSDDdfFyYwSgi0Z-904X7WdLtPfLlR0x1xsu_jAo,19447
334
334
  cognite/neat/_v0/session/_wizard.py,sha256=baPJgXAAF3d1bn4nbIzon1gWfJOeS5T43UXRDJEnD3c,1490
335
335
  cognite/neat/_v0/session/exceptions.py,sha256=jv52D-SjxGfgqaHR8vnpzo0SOJETIuwbyffSWAxSDJw,3495
336
- cognite/neat/_version.py,sha256=pfiLq3MLQ7wyaAim2tr-d61GfU9oqrmB9vFVh7JRzNY,45
336
+ cognite/neat/_version.py,sha256=4o1XuHvwEjF7KiSdB7hr63IImWZB4eeRXgVJ49uZOfA,45
337
337
  cognite/neat/legacy.py,sha256=DMFeLCSBLT2enk-nm1KfX1rKR2DQDpxY-w6ThY0y9c8,421
338
338
  cognite/neat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
339
- cognite_neat-1.0.35.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
340
- cognite_neat-1.0.35.dist-info/METADATA,sha256=ra9SuJzQhAi_Yw6BM6qV-nnNNQ8DUCtCDG2RCe1hVxs,6872
341
- cognite_neat-1.0.35.dist-info/RECORD,,
339
+ cognite_neat-1.0.36.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
340
+ cognite_neat-1.0.36.dist-info/METADATA,sha256=YYDQNfGgqXLb5T8R-sbIihiaPFMVfA41JSmlxmo4Duc,6872
341
+ cognite_neat-1.0.36.dist-info/RECORD,,