port-ocean 0.17.0__py3-none-any.whl → 0.17.2__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/context/ocean.py +4 -2
- port_ocean/core/integrations/mixins/events.py +3 -1
- {port_ocean-0.17.0.dist-info → port_ocean-0.17.2.dist-info}/METADATA +1 -1
- {port_ocean-0.17.0.dist-info → port_ocean-0.17.2.dist-info}/RECORD +7 -7
- {port_ocean-0.17.0.dist-info → port_ocean-0.17.2.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.17.0.dist-info → port_ocean-0.17.2.dist-info}/WHEEL +0 -0
- {port_ocean-0.17.0.dist-info → port_ocean-0.17.2.dist-info}/entry_points.txt +0 -0
port_ocean/context/ocean.py
CHANGED
|
@@ -73,8 +73,10 @@ class PortOceanContext:
|
|
|
73
73
|
def on_resync(
|
|
74
74
|
self,
|
|
75
75
|
kind: str | None = None,
|
|
76
|
-
) -> Callable[[RESYNC_EVENT_LISTENER], RESYNC_EVENT_LISTENER | None]:
|
|
77
|
-
def wrapper(
|
|
76
|
+
) -> Callable[[RESYNC_EVENT_LISTENER | None], RESYNC_EVENT_LISTENER | None]:
|
|
77
|
+
def wrapper(
|
|
78
|
+
function: RESYNC_EVENT_LISTENER | None,
|
|
79
|
+
) -> RESYNC_EVENT_LISTENER | None:
|
|
78
80
|
if not self.app.config.event_listener.should_resync:
|
|
79
81
|
logger.debug(
|
|
80
82
|
"Webhook only event listener is used, resync events are ignored"
|
|
@@ -46,7 +46,7 @@ class EventsMixin:
|
|
|
46
46
|
return func
|
|
47
47
|
|
|
48
48
|
def on_resync(
|
|
49
|
-
self, func: RESYNC_EVENT_LISTENER, kind: str | None = None
|
|
49
|
+
self, func: RESYNC_EVENT_LISTENER| None, kind: str | None = None
|
|
50
50
|
) -> RESYNC_EVENT_LISTENER:
|
|
51
51
|
"""Register a function as a listener for a "resync" event.
|
|
52
52
|
|
|
@@ -57,6 +57,8 @@ class EventsMixin:
|
|
|
57
57
|
Returns:
|
|
58
58
|
RESYNC_EVENT_LISTENER: The input function, unchanged.
|
|
59
59
|
"""
|
|
60
|
+
if func is None:
|
|
61
|
+
return None
|
|
60
62
|
if kind is None:
|
|
61
63
|
logger.debug(f"Registering resync event listener any kind")
|
|
62
64
|
else:
|
|
@@ -63,7 +63,7 @@ port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
|
63
63
|
port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
|
|
64
64
|
port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
65
65
|
port_ocean/context/event.py,sha256=tf254jMqBW1GBmYDhfXMCkOqHA7C_chaYp1OY3Dfnsg,5869
|
|
66
|
-
port_ocean/context/ocean.py,sha256=
|
|
66
|
+
port_ocean/context/ocean.py,sha256=0kgIi0zAsGarF52Qehu4bOxnAFEb0yayzG7xZioMHJc,4993
|
|
67
67
|
port_ocean/context/resource.py,sha256=yDj63URzQelj8zJPh4BAzTtPhpKr9Gw9DRn7I_0mJ1s,1692
|
|
68
68
|
port_ocean/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
69
|
port_ocean/core/defaults/__init__.py,sha256=8qCZg8n06WAdMu9s_FiRtDYLGPGHbOuS60vapeUoAks,142
|
|
@@ -98,7 +98,7 @@ port_ocean/core/handlers/resync_state_updater/updater.py,sha256=Yg9ET6ZV5B9GW7u6
|
|
|
98
98
|
port_ocean/core/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
99
|
port_ocean/core/integrations/base.py,sha256=eS0WDOfCTim1UOQQrNuP14I6hvT_fr8dof_cr1ls01s,3107
|
|
100
100
|
port_ocean/core/integrations/mixins/__init__.py,sha256=FA1FEKMM6P-L2_m7Q4L20mFa4_RgZnwSRmTCreKcBVM,220
|
|
101
|
-
port_ocean/core/integrations/mixins/events.py,sha256=
|
|
101
|
+
port_ocean/core/integrations/mixins/events.py,sha256=0jKRsBw6lU8Mqs7MaQK4n-t_H6Z4NEkXZ5VWzqTrKEc,2396
|
|
102
102
|
port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcOU2H_g33tZar7PwTv8,3771
|
|
103
103
|
port_ocean/core/integrations/mixins/sync.py,sha256=B9fEs8faaYLLikH9GBjE_E61vo0bQDjIGQsQ1SRXOlA,3931
|
|
104
104
|
port_ocean/core/integrations/mixins/sync_raw.py,sha256=Wir4aTSCkIvG6Ny9Eo0Xf55OkSbh_6wHfNSaCffAKJQ,20279
|
|
@@ -157,8 +157,8 @@ port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,32
|
|
|
157
157
|
port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
|
|
158
158
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
|
159
159
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
|
160
|
-
port_ocean-0.17.
|
|
161
|
-
port_ocean-0.17.
|
|
162
|
-
port_ocean-0.17.
|
|
163
|
-
port_ocean-0.17.
|
|
164
|
-
port_ocean-0.17.
|
|
160
|
+
port_ocean-0.17.2.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
|
161
|
+
port_ocean-0.17.2.dist-info/METADATA,sha256=NsWjuKEzMViUdT8QmciCXsB8ac204DhuKJGsurWDylM,6673
|
|
162
|
+
port_ocean-0.17.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
163
|
+
port_ocean-0.17.2.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
|
164
|
+
port_ocean-0.17.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|