port-ocean 0.10.3__py3-none-any.whl → 0.10.4__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.
- port_ocean/clients/port/mixins/entities.py +18 -5
- {port_ocean-0.10.3.dist-info → port_ocean-0.10.4.dist-info}/METADATA +1 -1
- {port_ocean-0.10.3.dist-info → port_ocean-0.10.4.dist-info}/RECORD +6 -6
- {port_ocean-0.10.3.dist-info → port_ocean-0.10.4.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.10.3.dist-info → port_ocean-0.10.4.dist-info}/WHEEL +0 -0
- {port_ocean-0.10.3.dist-info → port_ocean-0.10.4.dist-info}/entry_points.txt +0 -0
|
@@ -58,11 +58,24 @@ class EntityClientMixin:
|
|
|
58
58
|
)
|
|
59
59
|
handle_status_code(response, should_raise)
|
|
60
60
|
result = response.json()
|
|
61
|
-
result_entity =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
result_entity = (
|
|
62
|
+
Entity.parse_obj(result["entity"]) if result.get("entity") else entity
|
|
63
|
+
)
|
|
64
|
+
# In order to save memory we'll keep only the identifier, blueprint and relations of the
|
|
65
|
+
# upserted entity result for later calculations
|
|
66
|
+
reduced_entity = Entity(
|
|
67
|
+
identifier=result_entity.identifier, blueprint=result_entity.blueprint
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
# Turning dict typed relations (raw search relations) is required
|
|
71
|
+
# for us to be able to successfully calculate the participation related entities
|
|
72
|
+
# and ignore the ones that don't as they weren't upserted
|
|
73
|
+
reduced_entity.relations = {
|
|
74
|
+
key: None if isinstance(relation, dict) else relation
|
|
75
|
+
for key, relation in result_entity.relations.items()
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return reduced_entity
|
|
66
79
|
|
|
67
80
|
async def batch_upsert_entities(
|
|
68
81
|
self,
|
|
@@ -44,7 +44,7 @@ port_ocean/clients/port/authentication.py,sha256=t3z6h4vld-Tzkpth15sstaMJg0rccX-
|
|
|
44
44
|
port_ocean/clients/port/client.py,sha256=Xd8Jk25Uh4WXY_WW-z1Qbv6F3ZTBFPoOolsxHMfozKw,3366
|
|
45
45
|
port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
port_ocean/clients/port/mixins/blueprints.py,sha256=8ZVC5i8K1WKQMJJiPqZmgcOlF3OyxWz1aAQ_WA5UW3c,4500
|
|
47
|
-
port_ocean/clients/port/mixins/entities.py,sha256=
|
|
47
|
+
port_ocean/clients/port/mixins/entities.py,sha256=oyd1mVlaoRnQLMpN9oOuYOC2PqLTMfJ51Z7cNyuVNNc,8647
|
|
48
48
|
port_ocean/clients/port/mixins/integrations.py,sha256=Ro6h9BwLxglQWniCVmfC---4oyGuUxk_Qejswl2t-J8,4841
|
|
49
49
|
port_ocean/clients/port/mixins/migrations.py,sha256=A6896oJF6WbFL2WroyTkMzr12yhVyWqGoq9dtLNSKBY,1457
|
|
50
50
|
port_ocean/clients/port/retry_transport.py,sha256=PtIZOAZ6V-ncpVysRUsPOgt8Sf01QLnTKB5YeKBxkJk,1861
|
|
@@ -132,8 +132,8 @@ port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,32
|
|
|
132
132
|
port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
|
|
133
133
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
134
134
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
135
|
-
port_ocean-0.10.
|
|
136
|
-
port_ocean-0.10.
|
|
137
|
-
port_ocean-0.10.
|
|
138
|
-
port_ocean-0.10.
|
|
139
|
-
port_ocean-0.10.
|
|
135
|
+
port_ocean-0.10.4.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
136
|
+
port_ocean-0.10.4.dist-info/METADATA,sha256=2dqB44BHdzouR3rz4n8PIDdrYhE_AWmOewtOBFEKMqU,6616
|
|
137
|
+
port_ocean-0.10.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
138
|
+
port_ocean-0.10.4.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
139
|
+
port_ocean-0.10.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|