port-ocean 0.27.0__py3-none-any.whl → 0.27.1__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.
- port_ocean/core/handlers/entities_state_applier/port/applier.py +9 -0
- port_ocean/tests/core/handlers/entities_state_applier/test_applier.py +2 -2
- {port_ocean-0.27.0.dist-info → port_ocean-0.27.1.dist-info}/METADATA +1 -1
- {port_ocean-0.27.0.dist-info → port_ocean-0.27.1.dist-info}/RECORD +7 -7
- {port_ocean-0.27.0.dist-info → port_ocean-0.27.1.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.27.0.dist-info → port_ocean-0.27.1.dist-info}/WHEEL +0 -0
- {port_ocean-0.27.0.dist-info → port_ocean-0.27.1.dist-info}/entry_points.txt +0 -0
@@ -87,6 +87,15 @@ class HttpEntitiesStateApplier(BaseEntitiesStateApplier):
|
|
87
87
|
diff = get_port_diff(entities["before"], entities["after"])
|
88
88
|
|
89
89
|
if not diff.deleted:
|
90
|
+
ocean.metrics.inc_metric(
|
91
|
+
name=MetricType.OBJECT_COUNT_NAME,
|
92
|
+
labels=[
|
93
|
+
ocean.metrics.current_resource_kind(),
|
94
|
+
MetricPhase.DELETE,
|
95
|
+
MetricPhase.DeletionResult.DELETED,
|
96
|
+
],
|
97
|
+
value=0,
|
98
|
+
)
|
90
99
|
return
|
91
100
|
|
92
101
|
kept_entities = diff.created + diff.modified
|
@@ -14,8 +14,8 @@ from port_ocean.context.event import event_context, EventType
|
|
14
14
|
|
15
15
|
|
16
16
|
@pytest.mark.asyncio
|
17
|
-
async def test_delete_diff_no_deleted_entities() -> None:
|
18
|
-
applier = HttpEntitiesStateApplier(
|
17
|
+
async def test_delete_diff_no_deleted_entities(mock_context: PortOceanContext) -> None:
|
18
|
+
applier = HttpEntitiesStateApplier(mock_context)
|
19
19
|
entities = EntityDiff(
|
20
20
|
before=[Entity(identifier="1", blueprint="test")],
|
21
21
|
after=[Entity(identifier="1", blueprint="test")],
|
@@ -96,7 +96,7 @@ port_ocean/core/handlers/base.py,sha256=cTarblazu8yh8xz2FpB-dzDKuXxtoi143XJgPbV_
|
|
96
96
|
port_ocean/core/handlers/entities_state_applier/__init__.py,sha256=kgLZDCeCEzi4r-0nzW9k78haOZNf6PX7mJOUr34A4c8,173
|
97
97
|
port_ocean/core/handlers/entities_state_applier/base.py,sha256=5wHL0icfFAYRPqk8iV_wN49GdJ3aRUtO8tumSxBi4Wo,2268
|
98
98
|
port_ocean/core/handlers/entities_state_applier/port/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
99
|
-
port_ocean/core/handlers/entities_state_applier/port/applier.py,sha256=
|
99
|
+
port_ocean/core/handlers/entities_state_applier/port/applier.py,sha256=xNfDAstW1z9r46BCiuXApeNbEEfel4qfMzB2ssuZJQ8,7010
|
100
100
|
port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py,sha256=XKDIexoDPVWT2-Y1UTKqJJyRUWC3qiHKQD8bozIrni4,2038
|
101
101
|
port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py,sha256=lyv6xKzhYfd6TioUgR3AVRSJqj7JpAaj1LxxU2xAqeo,1720
|
102
102
|
port_ocean/core/handlers/entity_processor/__init__.py,sha256=FvFCunFg44wNQoqlybem9MthOs7p1Wawac87uSXz9U8,156
|
@@ -167,7 +167,7 @@ port_ocean/tests/config/test_config.py,sha256=Rk4N-ldVSOfn1p23NzdVdfqUpPrqG2cMut
|
|
167
167
|
port_ocean/tests/conftest.py,sha256=JXASSS0IY0nnR6bxBflhzxS25kf4iNaABmThyZ0mZt8,101
|
168
168
|
port_ocean/tests/core/conftest.py,sha256=5shShx81LRuQTBwS2sDIjNJO2LSD6cUNz46SgNYzjGY,7686
|
169
169
|
port_ocean/tests/core/defaults/test_common.py,sha256=sR7RqB3ZYV6Xn6NIg-c8k5K6JcGsYZ2SCe_PYX5vLYM,5560
|
170
|
-
port_ocean/tests/core/handlers/entities_state_applier/test_applier.py,sha256=
|
170
|
+
port_ocean/tests/core/handlers/entities_state_applier/test_applier.py,sha256=7XWgwUB9uVYRov4VbIz1A-7n2YLbHTTYT-4rKJxjB0A,10711
|
171
171
|
port_ocean/tests/core/handlers/entity_processor/test_jq_entity_processor.py,sha256=AyzLclJFKz8YzSi2hiFYVdXRzCFmqQwTxnwNFTo9roU,14091
|
172
172
|
port_ocean/tests/core/handlers/mixins/test_live_events.py,sha256=6yUsYooBYchiZP_eYa8PN1IhiztJShBdPguoseyNMzY,12482
|
173
173
|
port_ocean/tests/core/handlers/mixins/test_sync_raw.py,sha256=-Jd2rUG63fZM8LuyKtCp1tt4WEqO2m5woESjs1c91sU,44428
|
@@ -205,8 +205,8 @@ port_ocean/utils/repeat.py,sha256=U2OeCkHPWXmRTVoPV-VcJRlQhcYqPWI5NfmPlb1JIbc,32
|
|
205
205
|
port_ocean/utils/signal.py,sha256=mMVq-1Ab5YpNiqN4PkiyTGlV_G0wkUDMMjTZp5z3pb0,1514
|
206
206
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
207
207
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
208
|
-
port_ocean-0.27.
|
209
|
-
port_ocean-0.27.
|
210
|
-
port_ocean-0.27.
|
211
|
-
port_ocean-0.27.
|
212
|
-
port_ocean-0.27.
|
208
|
+
port_ocean-0.27.1.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
209
|
+
port_ocean-0.27.1.dist-info/METADATA,sha256=lMu1khMLwRsJuGctmRMHCZMr6fGDaXpSK53uQ0Iby1Y,6887
|
210
|
+
port_ocean-0.27.1.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
211
|
+
port_ocean-0.27.1.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
212
|
+
port_ocean-0.27.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|