port-ocean 0.5.14__py3-none-any.whl → 0.5.16__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.

@@ -5,7 +5,7 @@ define run_checks
5
5
  cd $1; \
6
6
  poetry check || exit_code=$$?;\
7
7
  mypy . || exit_code=$$?; \
8
- ruff . || exit_code=$$?; \
8
+ ruff check . || exit_code=$$?; \
9
9
  black --check . || exit_code=$$?; \
10
10
  if [ $$exit_code -eq 1 ]; then \
11
11
  echo "\033[0;31mOne or more checks failed with exit code $$exit_code\033[0m"; \
@@ -125,10 +125,13 @@ async def event_context(
125
125
  event_type: str,
126
126
  trigger_type: TriggerType = "manual",
127
127
  attributes: dict[str, Any] | None = None,
128
+ parent_override: EventContext | None = None,
128
129
  ) -> AsyncIterator[EventContext]:
129
- attributes = attributes or {}
130
+ parent = parent_override or _event_context_stack.top
131
+ parent_attributes = parent.attributes if parent else {}
130
132
 
131
133
  parent = _event_context_stack.top
134
+ attributes = {**parent_attributes, **(attributes or {})}
132
135
  new_event = EventContext(
133
136
  event_type,
134
137
  trigger_type=trigger_type,
@@ -219,6 +219,9 @@ class SyncRawMixin(HandlerMixin, EventsMixin):
219
219
  resource for resource in config.resources if resource.kind == kind
220
220
  ]
221
221
 
222
+ if not resource_mappings:
223
+ return []
224
+
222
225
  diffs: list[EntitySelectorDiff] = await asyncio.gather(
223
226
  *(
224
227
  self._register_resource_raw(resource, results, user_agent_type, True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.5.14
3
+ Version: 0.5.16
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
@@ -23,7 +23,7 @@ port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/resources/.g
23
23
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/.port/spec.yaml,sha256=Yq06gYoC6jFWES5mxlvJGFTGXbfD7E9R8j_PDbVIM3M,497
24
24
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/CHANGELOG.md,sha256=nzAmB0Bjnd2eZo79OjrlyVOdpTBHTmTxvO7c2C8Q-VQ,292
25
25
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Dockerfile,sha256=Hh1dBnL959V2n28pmqFpXSrNvSMQjX6fDCUos8ITiu0,326
26
- port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile,sha256=HdDAoHiL0unYoMubrfngUA9GrweJny8jdTDqYFcNnTY,1773
26
+ port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/Makefile,sha256=kTa72qEp8pi-joOH6zl8oeIgjEHSCF628p2074yHHNA,1779
27
27
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/README.md,sha256=5VZmgDRW9gO4d8UuzkujslOIDfIDBiAGL2Hd74HK770,468
28
28
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/changelog/.gitignore,sha256=kCpRPdl3S_jqYYZaOrc0-xa6-l3KqVjNRXc6jCkd_-Q,12
29
29
  port_ocean/cli/cookiecutter/{{cookiecutter.integration_slug}}/config.yaml,sha256=zKaBQNCbWEE3MFxDHaMn9NIeBGVPiZUV6cBjH35f2kw,906
@@ -53,7 +53,7 @@ port_ocean/config/settings.py,sha256=5bQmOAIZ2IMDzUEsiVkfZokv9LxHLPOUVKA0TPoJh68
53
53
  port_ocean/consumers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  port_ocean/consumers/kafka_consumer.py,sha256=N8KocjBi9aR0BOPG8hgKovg-ns_ggpEjrSxqSqF_BSo,4710
55
55
  port_ocean/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
- port_ocean/context/event.py,sha256=sa-BzqC6Z1kYgRVAZIl29z2bEYu4e_FodxVBgSJOB3g,5275
56
+ port_ocean/context/event.py,sha256=AUFAqc6NCnXidKekFElr4zqHpvoj2W_ocIZcbf29XRM,5468
57
57
  port_ocean/context/ocean.py,sha256=2EreWOj-N2H7QUjEt5wGiv5KHP4pTZc70tn_wHcpF4w,4657
58
58
  port_ocean/context/resource.py,sha256=yDj63URzQelj8zJPh4BAzTtPhpKr9Gw9DRn7I_0mJ1s,1692
59
59
  port_ocean/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -89,7 +89,7 @@ port_ocean/core/integrations/mixins/__init__.py,sha256=FA1FEKMM6P-L2_m7Q4L20mFa4
89
89
  port_ocean/core/integrations/mixins/events.py,sha256=Ddfx2L4FpghV38waF8OfVeOV0bHBxNIgjU-q5ffillI,2341
90
90
  port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcOU2H_g33tZar7PwTv8,3771
91
91
  port_ocean/core/integrations/mixins/sync.py,sha256=TKqRytxXONVhuCo3CB3rDvWNbITnZz33TYTDs3SWWVk,3880
92
- port_ocean/core/integrations/mixins/sync_raw.py,sha256=-JhaWt7N4R4vYe73cmJ00PEeIHUYJq-x8Pf89_-WgZ0,14992
92
+ port_ocean/core/integrations/mixins/sync_raw.py,sha256=kWZ44L2M2G6B0n3oOqF1Ko9Rct06CXnTnWY25Q2eh3c,15049
93
93
  port_ocean/core/integrations/mixins/utils.py,sha256=7y1rGETZIjOQadyIjFJXIHKkQFKx_SwiP-TrAIsyyLY,2303
94
94
  port_ocean/core/models.py,sha256=bDO_I4Yd33TEZIh2QSV8UwXQIuwE7IgrINkYDHI0dkc,714
95
95
  port_ocean/core/ocean_types.py,sha256=ltnn22eRuDMFW02kIgmIAu6S06-i9jJV2NJ-MZcwwj0,879
@@ -122,8 +122,8 @@ port_ocean/utils/misc.py,sha256=2XmO8W0SgPjV0rd9HZvrHhoMlHprIwmMFsINxlAmgyw,1723
122
122
  port_ocean/utils/repeat.py,sha256=0EFWM9d8lLXAhZmAyczY20LAnijw6UbIECf5lpGbOas,3231
123
123
  port_ocean/utils/signal.py,sha256=Fab0049Cjs69TPTQgvEvilaVZKACQr6tGkRdySjNCi8,1515
124
124
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
125
- port_ocean-0.5.14.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
- port_ocean-0.5.14.dist-info/METADATA,sha256=5DHXN2mLFMECLS5hooI0bnSMhqLa0FiTTyA65V9ozO8,6554
127
- port_ocean-0.5.14.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
- port_ocean-0.5.14.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
- port_ocean-0.5.14.dist-info/RECORD,,
125
+ port_ocean-0.5.16.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
+ port_ocean-0.5.16.dist-info/METADATA,sha256=-pqPH1Oq1PpH5bmFmYV2FU6fO_kHRdeTV-731XhsI-Q,6554
127
+ port_ocean-0.5.16.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
+ port_ocean-0.5.16.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
+ port_ocean-0.5.16.dist-info/RECORD,,