From 8d92be06309f1fac076478096116dc0f8482c5a6 Mon Sep 17 00:00:00 2001 From: omby8888 <160610297+omby8888@users.noreply.github.com> Date: Wed, 1 May 2024 14:47:47 +0300 Subject: [PATCH] [Framework] Fix parent event context override copy typo (#603) # Description What - Fix parent event context override copy typo ## Type of change Please leave one option from the following and delete the rest: - [X] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] New Integration (non-breaking change which adds a new integration) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Non-breaking change (fix of existing functionality that will not change current behavior) - [ ] Documentation (added/updated documentation) ## Screenshots Include screenshots from your environment showing how the resources of the integration will look. ## API Documentation Provide links to the API documentation used for this integration. --------- Co-authored-by: Yair Siman Tov <63305203+yairsimantov20@users.noreply.github.com> --- CHANGELOG.md | 8 ++++++++ port_ocean/context/event.py | 1 - pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b7cb007fc..bbbd5a64c4 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.5.17 (2024-05-01) + +### Bug Fixes + +- Fixed an issue in creating a child event context from the parent context by removing an unnecessary line of code + + + ## 0.5.16 (2024-05-01) ### Features diff --git a/port_ocean/context/event.py b/port_ocean/context/event.py index 4bc0e2f542..601995709f 100644 --- a/port_ocean/context/event.py +++ b/port_ocean/context/event.py @@ -130,7 +130,6 @@ async def event_context( parent = parent_override or _event_context_stack.top parent_attributes = parent.attributes if parent else {} - parent = _event_context_stack.top attributes = {**parent_attributes, **(attributes or {})} new_event = EventContext( event_type, diff --git a/pyproject.toml b/pyproject.toml index bd125290c0..705cbf5e63 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "port-ocean" -version = "0.5.16" +version = "0.5.17" description = "Port Ocean is a CLI tool for managing your Port projects." readme = "README.md" homepage = "https://app.getport.io"