Skip to content

Commit

Permalink
Merge branch 'main' into port-9537-spec-parameters-url-firehydrant
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch authored Aug 4, 2024
2 parents 515c6d7 + 7f75c02 commit 2f3e0d7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

## 0.9.8 (2024-08-01)


### Bug Fixes

- Fixed an issue where a `ValueError` was raised in `unregister_raw` method due to incorrect unpacking of results from asyncio.gather. The fix involved using zip to properly handle the output and ensure both entities and errors are processed correctly.


## 0.9.7 (2024-07-31)

### Bug Fixes
Expand Down
10 changes: 6 additions & 4 deletions port_ocean/core/integrations/mixins/sync_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,12 @@ async def unregister_raw(
resource for resource in config.resources if resource.kind == kind
]

entities, errors = await asyncio.gather(
*(
self._unregister_resource_raw(resource, results, user_agent_type)
for resource in resource_mappings
entities, errors = zip_and_sum(
await asyncio.gather(
*(
self._unregister_resource_raw(resource, results, user_agent_type)
for resource in resource_mappings
)
)
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "port-ocean"
version = "0.9.7"
version = "0.9.8"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
Expand Down

0 comments on commit 2f3e0d7

Please sign in to comment.