Skip to content

Commit

Permalink
if its a search entity or search relation there is no point to call t…
Browse files Browse the repository at this point in the history
…he search api because we wont find the entities
  • Loading branch information
yaelibarg committed Jan 16, 2025
1 parent dbf6c92 commit d41724d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions port_ocean/core/integrations/mixins/sync_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ async def _map_entities_compared_with_port(
resource: ResourceConfig,
user_agent_type: UserAgentType,
) -> list[Entity]:
if entities[0].is_using_search_identifier or entities[0].is_using_search_relation:
return entities

query = self._construct_search_query_for_entities(entities)
entities_at_port_with_properties = await ocean.port_client.search_entities(
user_agent_type,
Expand Down

0 comments on commit d41724d

Please sign in to comment.