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

@@ -82,12 +82,10 @@ class BlueprintClientMixin:
82
82
  handle_status_code(response, should_raise)
83
83
  return response.json().get("migrationId", "")
84
84
 
85
- async def create_action(
86
- self, blueprint_identifier: str, action: dict[str, Any]
87
- ) -> None:
85
+ async def create_action(self, action: dict[str, Any]) -> None:
88
86
  logger.info(f"Creating action: {action}")
89
87
  response = await self.client.post(
90
- f"{self.auth.api_url}/blueprints/{blueprint_identifier}/actions",
88
+ f"{self.auth.api_url}/actions",
91
89
  json=action,
92
90
  headers=await self.auth.headers(),
93
91
  )
@@ -24,7 +24,7 @@ class Preset(TypedDict):
24
24
 
25
25
  class Defaults(BaseModel):
26
26
  blueprints: list[dict[str, Any]] = []
27
- actions: list[Preset] = []
27
+ actions: list[dict[str, Any]] = []
28
28
  scorecards: list[Preset] = []
29
29
  pages: list[dict[str, Any]] = []
30
30
  port_app_config: Optional[PortAppConfig] = Field(
@@ -21,7 +21,7 @@ from port_ocean.exceptions.port_defaults import (
21
21
 
22
22
 
23
23
  def deconstruct_blueprints_to_creation_steps(
24
- raw_blueprints: list[dict[str, Any]]
24
+ raw_blueprints: list[dict[str, Any]],
25
25
  ) -> tuple[list[dict[str, Any]], ...]:
26
26
  """
27
27
  Deconstructing the blueprint into stages so the api wont fail to create a blueprint if there is a conflict
@@ -154,11 +154,7 @@ async def _create_resources(
154
154
  )
155
155
 
156
156
  await asyncio.gather(
157
- *(
158
- port_client.create_action(blueprint_actions["blueprint"], action)
159
- for blueprint_actions in defaults.actions
160
- for action in blueprint_actions["data"]
161
- )
157
+ *(port_client.create_action(action) for action in defaults.actions)
162
158
  )
163
159
 
164
160
  await asyncio.gather(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.9.12
3
+ Version: 0.9.13
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
@@ -38,7 +38,7 @@ port_ocean/clients/port/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
38
38
  port_ocean/clients/port/authentication.py,sha256=t3z6h4vld-Tzkpth15sstaMJg0rccX-pXXjNtOa-nCY,2949
39
39
  port_ocean/clients/port/client.py,sha256=3GYCM0ZkX3pB6sNoOb-7_6dm0Jr5_vqhflD9iltf_As,2640
40
40
  port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
- port_ocean/clients/port/mixins/blueprints.py,sha256=BiqkhvDFdkySWgL1NHI-LAQ9ieZWazZAojPo9E8d7U4,4575
41
+ port_ocean/clients/port/mixins/blueprints.py,sha256=8ZVC5i8K1WKQMJJiPqZmgcOlF3OyxWz1aAQ_WA5UW3c,4500
42
42
  port_ocean/clients/port/mixins/entities.py,sha256=j3YqLb1zMmJrIutYsYsZ_WCT4xh9VXEIH1A0kYMUUtk,8104
43
43
  port_ocean/clients/port/mixins/integrations.py,sha256=Ro6h9BwLxglQWniCVmfC---4oyGuUxk_Qejswl2t-J8,4841
44
44
  port_ocean/clients/port/mixins/migrations.py,sha256=A6896oJF6WbFL2WroyTkMzr12yhVyWqGoq9dtLNSKBY,1457
@@ -58,8 +58,8 @@ port_ocean/context/resource.py,sha256=yDj63URzQelj8zJPh4BAzTtPhpKr9Gw9DRn7I_0mJ1
58
58
  port_ocean/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  port_ocean/core/defaults/__init__.py,sha256=8qCZg8n06WAdMu9s_FiRtDYLGPGHbOuS60vapeUoAks,142
60
60
  port_ocean/core/defaults/clean.py,sha256=S3UAfca-oU89WJKIB4OgGjGjPr0vxBQ2aRZsLTZhQ04,2185
61
- port_ocean/core/defaults/common.py,sha256=QnLFTkT3yIWIRtLQb7fUvvfe5AfInYJy0q5LjlzHkOw,3553
62
- port_ocean/core/defaults/initialize.py,sha256=DSY7kbSHQxs6-4ZAK3QYw-kVRsYq5txX7mUjkUB20Qw,8865
61
+ port_ocean/core/defaults/common.py,sha256=uVUg6VEn4RqtXQwLwMNGfkmT5zYRN_h5USfKw3poVyo,3561
62
+ port_ocean/core/defaults/initialize.py,sha256=U1JWdpG_snAyqBXEikCjA7JzL7UtpOyx5rLfPhrBIZk,8721
63
63
  port_ocean/core/event_listener/__init__.py,sha256=mzJ33wRq0kh60fpVdOHVmvMTUQIvz3vxmifyBgwDn0E,889
64
64
  port_ocean/core/event_listener/base.py,sha256=4RujgPz4VfDFlviu4qLGJFnJougSCL-Ewf0rfTQfwgc,1133
65
65
  port_ocean/core/event_listener/factory.py,sha256=AYYfSHPAF7P5H-uQECXT0JVJjKDHrYkWJJBSL4mGkg8,3697
@@ -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.12.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
- port_ocean-0.9.12.dist-info/METADATA,sha256=NfGdV5F1XK94l7JwkE9cBoHyuVY-0Q0sLTxWftP4n1g,6616
127
- port_ocean-0.9.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
- port_ocean-0.9.12.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
- port_ocean-0.9.12.dist-info/RECORD,,
125
+ port_ocean-0.9.13.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
126
+ port_ocean-0.9.13.dist-info/METADATA,sha256=R4G-A12rA_TwQDsgzcL7ppXQAAcsy2tyAnxygAanwk0,6616
127
+ port_ocean-0.9.13.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
128
+ port_ocean-0.9.13.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
129
+ port_ocean-0.9.13.dist-info/RECORD,,