port-ocean 0.19.2__py3-none-any.whl → 0.19.3__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/config/settings.py +1 -0
- port_ocean/ocean.py +15 -1
- {port_ocean-0.19.2.dist-info → port_ocean-0.19.3.dist-info}/METADATA +1 -1
- {port_ocean-0.19.2.dist-info → port_ocean-0.19.3.dist-info}/RECORD +7 -7
- {port_ocean-0.19.2.dist-info → port_ocean-0.19.3.dist-info}/LICENSE.md +0 -0
- {port_ocean-0.19.2.dist-info → port_ocean-0.19.3.dist-info}/WHEEL +0 -0
- {port_ocean-0.19.2.dist-info → port_ocean-0.19.3.dist-info}/entry_points.txt +0 -0
port_ocean/config/settings.py
CHANGED
@@ -72,6 +72,7 @@ class IntegrationConfiguration(BaseOceanSettings, extra=Extra.allow):
|
|
72
72
|
create_port_resources_origin: CreatePortResourcesOrigin | None = None
|
73
73
|
send_raw_data_examples: bool = True
|
74
74
|
oauth_access_token_file_path: str | None = None
|
75
|
+
base_url: str | None = None
|
75
76
|
port: PortSettings
|
76
77
|
event_listener: EventListenerSettingsType = Field(
|
77
78
|
default=cast(EventListenerSettingsType, {"type": "POLLING"})
|
port_ocean/ocean.py
CHANGED
@@ -118,6 +118,17 @@ class Ocean:
|
|
118
118
|
)
|
119
119
|
await repeated_function()
|
120
120
|
|
121
|
+
@property
|
122
|
+
def base_url(self) -> str:
|
123
|
+
integration_config = self.config.integration.config
|
124
|
+
if isinstance(integration_config, BaseModel):
|
125
|
+
integration_config = integration_config.dict()
|
126
|
+
if integration_config.get("app_host"):
|
127
|
+
logger.warning(
|
128
|
+
"The OCEAN__INTEGRATION__CONFIG__APP_HOST field is deprecated. Please use the OCEAN__BASE_URL field instead."
|
129
|
+
)
|
130
|
+
return self.config.base_url or integration_config.get("app_host")
|
131
|
+
|
121
132
|
def load_external_oauth_access_token(self) -> str | None:
|
122
133
|
if self.config.oauth_access_token_file_path is not None:
|
123
134
|
try:
|
@@ -137,7 +148,10 @@ class Ocean:
|
|
137
148
|
async def lifecycle(_: FastAPI) -> AsyncIterator[None]:
|
138
149
|
try:
|
139
150
|
await self.integration.start()
|
140
|
-
|
151
|
+
if self.base_url:
|
152
|
+
await self.webhook_manager.start_processing_event_messages()
|
153
|
+
else:
|
154
|
+
logger.warning("No base URL provided, skipping webhook processing")
|
141
155
|
await self._setup_scheduled_resync()
|
142
156
|
yield None
|
143
157
|
except Exception:
|
@@ -62,7 +62,7 @@ port_ocean/clients/port/utils.py,sha256=SjhgmJXAqH2JqXfGy8GoGwzUYiJvUhWDrJyxQcen
|
|
62
62
|
port_ocean/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
63
63
|
port_ocean/config/base.py,sha256=x1gFbzujrxn7EJudRT81C6eN9WsYAb3vOHwcpcpX8Tc,6370
|
64
64
|
port_ocean/config/dynamic.py,sha256=qOFkRoJsn_BW7581omi_AoMxoHqasf_foxDQ_G11_SI,2030
|
65
|
-
port_ocean/config/settings.py,sha256=
|
65
|
+
port_ocean/config/settings.py,sha256=PfMwhFQOI0zfK0bD32EunXqicVrlPYBkYC2A99nmZlg,5311
|
66
66
|
port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
67
67
|
port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
|
68
68
|
port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -136,7 +136,7 @@ port_ocean/log/handlers.py,sha256=ncVjgqrZRh6BhyRrA6DQG86Wsbxph1yWYuEC0cWfe-Q,36
|
|
136
136
|
port_ocean/log/logger_setup.py,sha256=CoEDowe5OwNOL_5clU6Z4faktfh0VWaOTS0VLmyhHjw,2404
|
137
137
|
port_ocean/log/sensetive.py,sha256=lVKiZH6b7TkrZAMmhEJRhcl67HNM94e56x12DwFgCQk,2920
|
138
138
|
port_ocean/middlewares.py,sha256=9wYCdyzRZGK1vjEJ28FY_DkfwDNENmXp504UKPf5NaQ,2727
|
139
|
-
port_ocean/ocean.py,sha256=
|
139
|
+
port_ocean/ocean.py,sha256=Gn9xypknv3PkhH6h3bQi2IQLV1TJNPPFiqm0BV0fZ5E,6702
|
140
140
|
port_ocean/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
141
141
|
port_ocean/run.py,sha256=COoRSmLG4hbsjIW5DzhV0NYVegI9xHd1POv6sg4U1No,2217
|
142
142
|
port_ocean/sonar-project.properties,sha256=X_wLzDOkEVmpGLRMb2fg9Rb0DxWwUFSvESId8qpvrPI,73
|
@@ -182,8 +182,8 @@ port_ocean/utils/repeat.py,sha256=U2OeCkHPWXmRTVoPV-VcJRlQhcYqPWI5NfmPlb1JIbc,32
|
|
182
182
|
port_ocean/utils/signal.py,sha256=mMVq-1Ab5YpNiqN4PkiyTGlV_G0wkUDMMjTZp5z3pb0,1514
|
183
183
|
port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
|
184
184
|
port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
|
185
|
-
port_ocean-0.19.
|
186
|
-
port_ocean-0.19.
|
187
|
-
port_ocean-0.19.
|
188
|
-
port_ocean-0.19.
|
189
|
-
port_ocean-0.19.
|
185
|
+
port_ocean-0.19.3.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
|
186
|
+
port_ocean-0.19.3.dist-info/METADATA,sha256=CPF-LXS--mI2bv0nA2y4OZZsZFN8g7uE7APaTf5vBto,6669
|
187
|
+
port_ocean-0.19.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
188
|
+
port_ocean-0.19.3.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
|
189
|
+
port_ocean-0.19.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|