port-ocean 0.9.1__py3-none-any.whl → 0.9.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.

@@ -52,7 +52,10 @@ class JQEntityProcessor(BaseEntityProcessor):
52
52
  compiled_pattern = self._compile(pattern)
53
53
  first_value_callable = functools.partial(compiled_pattern.first, data)
54
54
  return await loop.run_in_executor(None, first_value_callable)
55
- except Exception:
55
+ except Exception as exc:
56
+ logger.debug(
57
+ f"Failed to search for pattern {pattern} in data {data}, {exc}"
58
+ )
56
59
  return None
57
60
 
58
61
  async def _search_as_bool(self, data: dict[str, Any], pattern: str) -> bool:
@@ -207,6 +210,15 @@ class JQEntityProcessor(BaseEntityProcessor):
207
210
  examples_to_send.append(result.raw_data)
208
211
  else:
209
212
  failed_entities.append(parsed_entity)
213
+ if (
214
+ not calculated_entities_results
215
+ and raw_results
216
+ and send_raw_data_examples_amount > 0
217
+ ):
218
+ logger.warning(
219
+ f"No entities were parsed from {len(raw_results)} raw results, sending raw data examples"
220
+ )
221
+ examples_to_send = raw_results[:send_raw_data_examples_amount]
210
222
 
211
223
  await self._send_examples(examples_to_send, mapping.kind)
212
224
 
@@ -90,7 +90,6 @@ class SyncRawMixin(HandlerMixin, EventsMixin):
90
90
  ) -> tuple[RESYNC_RESULT, list[RAW_RESULT | Exception]]:
91
91
  tasks = []
92
92
  results = []
93
-
94
93
  for task in fns:
95
94
  if inspect.isasyncgenfunction(task):
96
95
  results.append(resync_generator_wrapper(task, resource_config.kind))
@@ -415,7 +414,7 @@ class SyncRawMixin(HandlerMixin, EventsMixin):
415
414
  app_config = await self.port_app_config_handler.get_port_app_config(
416
415
  use_cache=False
417
416
  )
418
-
417
+ logger.info(f"Resync will use the following mappings: {app_config.dict()}")
419
418
  try:
420
419
  entities_at_port = await ocean.port_client.search_entities(
421
420
  user_agent_type
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.9.1
3
+ Version: 0.9.2
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
@@ -21,11 +21,11 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
21
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
22
  Classifier: Topic :: Utilities
23
23
  Provides-Extra: cli
24
- Requires-Dist: aiostream (>=0.5.2,<0.6.0)
24
+ Requires-Dist: aiostream (>=0.5.2,<0.7.0)
25
25
  Requires-Dist: click (>=8.1.3,<9.0.0) ; extra == "cli"
26
26
  Requires-Dist: confluent-kafka (>=2.1.1,<3.0.0)
27
27
  Requires-Dist: cookiecutter (>=2.1.1,<3.0.0) ; extra == "cli"
28
- Requires-Dist: fastapi (>=0.100,<0.111)
28
+ Requires-Dist: fastapi (>=0.100,<0.112)
29
29
  Requires-Dist: httpx (>=0.24.1,<0.28.0)
30
30
  Requires-Dist: jinja2-time (>=0.2.0,<0.3.0) ; extra == "cli"
31
31
  Requires-Dist: loguru (>=0.7.0,<0.8.0)
@@ -38,7 +38,7 @@ Requires-Dist: rich (>=13.4.1,<14.0.0) ; extra == "cli"
38
38
  Requires-Dist: six (>=1.16.0,<2.0.0)
39
39
  Requires-Dist: tomli (>=2.0.1,<3.0.0)
40
40
  Requires-Dist: urllib3 (>=1.26.16,<3.0.0)
41
- Requires-Dist: uvicorn (>=0.22,<0.30)
41
+ Requires-Dist: uvicorn (>=0.22,<0.31)
42
42
  Requires-Dist: werkzeug (>=2.3.4,<4.0.0)
43
43
  Project-URL: Repository, https://github.com/port-labs/Port-Ocean
44
44
  Description-Content-Type: text/markdown
@@ -77,7 +77,7 @@ port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py,sha
77
77
  port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py,sha256=82BvU8t5w9uhsxX8hbnwuRPuWhW3cMeuT_5sVIkip1I,1550
78
78
  port_ocean/core/handlers/entity_processor/__init__.py,sha256=FvFCunFg44wNQoqlybem9MthOs7p1Wawac87uSXz9U8,156
79
79
  port_ocean/core/handlers/entity_processor/base.py,sha256=udR0w5TstTOS5xOfTjAZIEdldn4xr6Oyb3DylatYX3Q,1869
80
- port_ocean/core/handlers/entity_processor/jq_entity_processor.py,sha256=uVHclCctUS3FGSCBLWD8Mesqttv-ege-X6K5o94zVOc,7797
80
+ port_ocean/core/handlers/entity_processor/jq_entity_processor.py,sha256=Jddo1CCC9AYIeB-RR1W4nlvyOaoVtRzs7ctRbMAdku0,8293
81
81
  port_ocean/core/handlers/port_app_config/__init__.py,sha256=8AAT5OthiVM7KCcM34iEgEeXtn2pRMrT4Dze5r1Ixbk,134
82
82
  port_ocean/core/handlers/port_app_config/api.py,sha256=6VbKPwFzsWG0IYsVD81hxSmfqtHUFqrfUuj1DBX5g4w,853
83
83
  port_ocean/core/handlers/port_app_config/base.py,sha256=oufdNLzUmEgJY5PgIz75zDlowWrjA-y8WR4UnM58E58,2897
@@ -88,7 +88,7 @@ port_ocean/core/integrations/mixins/__init__.py,sha256=FA1FEKMM6P-L2_m7Q4L20mFa4
88
88
  port_ocean/core/integrations/mixins/events.py,sha256=Ddfx2L4FpghV38waF8OfVeOV0bHBxNIgjU-q5ffillI,2341
89
89
  port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcOU2H_g33tZar7PwTv8,3771
90
90
  port_ocean/core/integrations/mixins/sync.py,sha256=TKqRytxXONVhuCo3CB3rDvWNbITnZz33TYTDs3SWWVk,3880
91
- port_ocean/core/integrations/mixins/sync_raw.py,sha256=yFORznT6TXX7SXP1sSoHAjLxmjDzXIr3Vu-plbhLBoA,18017
91
+ port_ocean/core/integrations/mixins/sync_raw.py,sha256=qgkxlh6_comyPNZ9p52ZhM9I7YQOwaEpn4kR0j20vbw,18103
92
92
  port_ocean/core/integrations/mixins/utils.py,sha256=7y1rGETZIjOQadyIjFJXIHKkQFKx_SwiP-TrAIsyyLY,2303
93
93
  port_ocean/core/models.py,sha256=4bDvMeydlSpG0YSXjE1Bo2AcZC0aQ2zqFhpsOvZat_A,1190
94
94
  port_ocean/core/ocean_types.py,sha256=3_d8-n626f1kWLQ_Jxw194LEyrOVupz05qs_Y1pvB-A,990
@@ -122,8 +122,8 @@ port_ocean/utils/queue_utils.py,sha256=KWWl8YVnG-glcfIHhM6nefY-2sou_C6DVP1VynQwz
122
122
  port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,3231
123
123
  port_ocean/utils/signal.py,sha256=K-6kKFQTltcmKDhtyZAcn0IMa3sUpOHGOAUdWKgx0_E,1369
124
124
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
125
- port_ocean-0.9.1.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
- port_ocean-0.9.1.dist-info/METADATA,sha256=PRjfspeABVsgg4gcPiaSSNnBITeqLQS3mzYKE9J7Ldk,6561
127
- port_ocean-0.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
- port_ocean-0.9.1.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
- port_ocean-0.9.1.dist-info/RECORD,,
125
+ port_ocean-0.9.2.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
+ port_ocean-0.9.2.dist-info/METADATA,sha256=uFLtOTLoVMha9ksgnO8IYOl0RoPSuzkh4NE-Wa1Jz3A,6561
127
+ port_ocean-0.9.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
+ port_ocean-0.9.2.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
+ port_ocean-0.9.2.dist-info/RECORD,,