diff --git a/CHANGELOG.md b/CHANGELOG.md index d913dd8a80..177aeec7c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm +## 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 diff --git a/port_ocean/core/integrations/mixins/sync_raw.py b/port_ocean/core/integrations/mixins/sync_raw.py index 9c7fb96d53..bce005dac3 100644 --- a/port_ocean/core/integrations/mixins/sync_raw.py +++ b/port_ocean/core/integrations/mixins/sync_raw.py @@ -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 + ) ) ) diff --git a/pyproject.toml b/pyproject.toml index 49d46bfcab..dd14570ab2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"