port-ocean 0.1.4.dev1__py3-none-any.whl → 0.1.4.dev2__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 port-ocean might be problematic. Click here for more details.

@@ -19,11 +19,15 @@ def order_by_entities_dependencies(entities: list[Entity]) -> list[Entity]:
19
19
  entities_map[node(entity)] = entity
20
20
 
21
21
  for entity in entities:
22
- relation_target_ids = [
23
- identifier
24
- for relation in entity.relations.values()
25
- for identifier in relation
26
- ]
22
+ relation_target_ids: list[str] = sum(
23
+ [
24
+ identifier if isinstance(identifier, list) else [identifier]
25
+ for relation in entity.relations.values()
26
+ for identifier in relation
27
+ if identifier is not None
28
+ ],
29
+ [],
30
+ )
27
31
  related_entities = [
28
32
  related for related in entities if related.identifier in relation_target_ids
29
33
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.1.4.dev1
3
+ Version: 0.1.4.dev2
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -62,7 +62,7 @@ port_ocean/core/handlers/entities_state_applier/base.py,sha256=P31b_5JU5AbnblNFY
62
62
  port_ocean/core/handlers/entities_state_applier/port/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  port_ocean/core/handlers/entities_state_applier/port/applier.py,sha256=SCgcY01aCTLjCkikxhy6_4ChWNsOv_pWP8bZReOTfJI,7977
64
64
  port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py,sha256=1zncwCbE-Gej0xaWKlzZgoXxOBe9bgs_YxlZ8QW3NdI,1751
65
- port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py,sha256=lbFwg5mRYxulYBvo5KmN5vQ59a-ChWzwwUtqfyigR-o,988
65
+ port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py,sha256=QMMcoGoMmDj9tRZAXOQlWmxSS_I2NBJpM2F61ZRu3O0,1151
66
66
  port_ocean/core/handlers/entities_state_applier/port/validate_entity_relations.py,sha256=nKuQ-RlalGG07olxm6l5NHeOuQT9dEZLoMpD-AN5nq0,1392
67
67
  port_ocean/core/handlers/entity_processor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
68
  port_ocean/core/handlers/entity_processor/base.py,sha256=3_THK7X6LgXjaA_iqr8DP6kFCsg7YEevSPbQCIhuWXo,955
@@ -95,8 +95,8 @@ port_ocean/port_defaults.py,sha256=QzrO_7Q0hRX-bgMpm-6XTedMbTZQH73NfHby3l1FEDw,7
95
95
  port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
96
96
  port_ocean/run.py,sha256=Bd6c6qYqQZlZqTLyRWRIkf579NQNqrr-o4mVAnBIISA,2834
97
97
  port_ocean/utils.py,sha256=2a30qmGMSPgsTxfpz2RiI3xDsM0-TkaKAbvJBaYqvCc,1007
98
- port_ocean-0.1.4.dev1.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
99
- port_ocean-0.1.4.dev1.dist-info/METADATA,sha256=aKR6P1fwHSM0S1KPmZzGFjHdUwh4YP8DFcQloH7gQ7s,6361
100
- port_ocean-0.1.4.dev1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
101
- port_ocean-0.1.4.dev1.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
102
- port_ocean-0.1.4.dev1.dist-info/RECORD,,
98
+ port_ocean-0.1.4.dev2.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
99
+ port_ocean-0.1.4.dev2.dist-info/METADATA,sha256=f01Rc91icIJpWp9m_iIL4uHssrroFzKiVvG3ZkKu0Zg,6361
100
+ port_ocean-0.1.4.dev2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
101
+ port_ocean-0.1.4.dev2.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
102
+ port_ocean-0.1.4.dev2.dist-info/RECORD,,