Skip to content

Commit

Permalink
Port 5583 ocean search entities routes stop returning entities after …
Browse files Browse the repository at this point in the history
…upgrading the integration (#264)

* Fixed the incorrect search of entities by datasource, which was causing entities from older versions not to be deleted.

* Fixed the incorrect search of entities by datasource, which was causing entities from older versions not to be deleted.

* Fixed the incorrect search of entities by datasource, which was causing entities from older versions not to be deleted.

* reverted agent change
  • Loading branch information
yairsimantov20 committed Dec 14, 2023
1 parent fab5684 commit 1b2a790
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 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.4.8 (2023-12-13)


### Bug Fixes

- Fixed the incorrect search of entities by datasource, which was causing entities from older versions not to be deleted. (PORT-5583)


## 0.4.7 (2023-12-05)


Expand Down
9 changes: 7 additions & 2 deletions port_ocean/clients/port/mixins/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,13 @@ async def search_entities(self, user_agent_type: UserAgentType) -> list[Entity]:
"rules": [
{
"property": "$datasource",
"operator": "=",
"value": self.auth.user_agent(user_agent_type),
"operator": "contains",
"value": f"port-ocean/{self.auth.integration_type}/",
},
{
"property": "$datasource",
"operator": "contains",
"value": f"/{self.auth.integration_identifier}/{user_agent_type.value}",
},
],
}
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.4.7"
version = "0.4.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 1b2a790

Please sign in to comment.