port-ocean 0.22.0__py3-none-any.whl → 0.22.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of port-ocean might be problematic. Click here for more details.

@@ -133,7 +133,7 @@ class EntityClientMixin:
133
133
  request_options: RequestOptions,
134
134
  user_agent_type: UserAgentType | None = None,
135
135
  should_raise: bool = True,
136
- ) -> list[Entity]:
136
+ ) -> list[tuple[bool, Entity]]:
137
137
  modified_entities_results = await asyncio.gather(
138
138
  *(
139
139
  self.upsert_entity(
@@ -146,17 +146,17 @@ class EntityClientMixin:
146
146
  ),
147
147
  return_exceptions=True,
148
148
  )
149
- entity_results = [
150
- entity for entity in modified_entities_results if isinstance(entity, Entity)
151
- ]
152
- if not should_raise:
153
- return entity_results
154
149
 
155
- for entity_result in modified_entities_results:
156
- if isinstance(entity_result, Exception):
157
- raise entity_result
150
+ entities_results: list[tuple[bool, Entity]] = []
151
+ for original_entity, result in zip(entities, modified_entities_results):
152
+ if isinstance(result, Exception) and should_raise:
153
+ raise result
154
+ elif isinstance(result, Entity):
155
+ entities_results.append((True, result))
156
+ elif result is False:
157
+ entities_results.append((False, original_entity))
158
158
 
159
- return entity_results
159
+ return entities_results
160
160
 
161
161
  async def delete_entity(
162
162
  self,
@@ -68,6 +68,7 @@ def deconstruct_blueprints_to_creation_steps(
68
68
  with_relations.append(blueprint.copy())
69
69
 
70
70
  blueprint.pop("teamInheritance", {})
71
+ blueprint.pop("ownership", {})
71
72
  blueprint.pop("relations", {})
72
73
  bare_blueprint.append(blueprint)
73
74
 
@@ -42,8 +42,8 @@ def deconstruct_blueprints_to_creation_steps(
42
42
  blueprint.pop("mirrorProperties", {})
43
43
  blueprint.pop("aggregationProperties", {})
44
44
  with_relations.append(blueprint.copy())
45
-
46
45
  blueprint.pop("teamInheritance", {})
46
+ blueprint.pop("ownership", {})
47
47
  blueprint.pop("relations", {})
48
48
  bare_blueprint.append(blueprint)
49
49
 
@@ -121,26 +121,20 @@ class HttpEntitiesStateApplier(BaseEntitiesStateApplier):
121
121
  ) -> list[Entity]:
122
122
  logger.info(f"Upserting {len(entities)} entities")
123
123
  modified_entities: list[Entity] = []
124
- if event.port_app_config.create_missing_related_entities:
125
- modified_entities = await self.context.port_client.batch_upsert_entities(
126
- entities,
127
- event.port_app_config.get_port_request_options(),
128
- user_agent_type,
129
- should_raise=False,
130
- )
131
- else:
132
- for entity in entities:
133
- upsertedEntity = await self.context.port_client.upsert_entity(
134
- entity,
135
- event.port_app_config.get_port_request_options(),
136
- user_agent_type,
137
- should_raise=False,
138
- )
139
- if upsertedEntity:
140
- modified_entities.append(upsertedEntity)
141
- # condition to false to differentiate from `result_entity.is_using_search_identifier`
142
- if upsertedEntity is False:
143
- event.entity_topological_sorter.register_entity(entity)
124
+ upserted_entities: list[tuple[bool, Entity]] = []
125
+
126
+ upserted_entities = await self.context.port_client.batch_upsert_entities(
127
+ entities,
128
+ event.port_app_config.get_port_request_options(),
129
+ user_agent_type,
130
+ should_raise=False,
131
+ )
132
+
133
+ for is_upserted, entity in upserted_entities:
134
+ if is_upserted:
135
+ modified_entities.append(entity)
136
+ else:
137
+ event.entity_topological_sorter.register_entity(entity)
144
138
  return modified_entities
145
139
 
146
140
  async def delete(
@@ -22,7 +22,7 @@ class EntityMapping(BaseModel):
22
22
  identifier: str | IngestSearchQuery
23
23
  title: str | None
24
24
  blueprint: str
25
- team: str | None
25
+ team: str | IngestSearchQuery | None
26
26
  properties: dict[str, str] = Field(default_factory=dict)
27
27
  relations: dict[str, str | IngestSearchQuery] = Field(default_factory=dict)
28
28
 
@@ -51,6 +51,7 @@ class ResourceConfig(BaseModel):
51
51
 
52
52
 
53
53
  class PortAppConfig(BaseModel):
54
+ _default_entity_deletion_threshold: float = 0.9
54
55
  enable_merge_entity: bool = Field(alias="enableMergeEntity", default=True)
55
56
  delete_dependent_entities: bool = Field(
56
57
  alias="deleteDependentEntities", default=True
@@ -58,8 +59,8 @@ class PortAppConfig(BaseModel):
58
59
  create_missing_related_entities: bool = Field(
59
60
  alias="createMissingRelatedEntities", default=True
60
61
  )
61
- entity_deletion_threshold: float = Field(
62
- alias="entityDeletionThreshold", default=0.9
62
+ entity_deletion_threshold: float | None = Field(
63
+ alias="entityDeletionThreshold", default=None
63
64
  )
64
65
  resources: list[ResourceConfig] = Field(default_factory=list)
65
66
 
@@ -71,8 +72,13 @@ class PortAppConfig(BaseModel):
71
72
  "validation_only": False,
72
73
  }
73
74
 
75
+ def get_entity_deletion_threshold(self) -> float | None:
76
+ if self.entity_deletion_threshold is not None:
77
+ return self.entity_deletion_threshold
78
+ return self._default_entity_deletion_threshold
79
+
74
80
  def to_request(self) -> dict[str, Any]:
75
- return {
81
+ mapping = {
76
82
  "deleteDependentEntities": self.delete_dependent_entities,
77
83
  "createMissingRelatedEntities": self.create_missing_related_entities,
78
84
  "enableMergeEntity": self.enable_merge_entity,
@@ -81,6 +87,9 @@ class PortAppConfig(BaseModel):
81
87
  for resource in self.resources
82
88
  ],
83
89
  }
90
+ if self.entity_deletion_threshold is not None:
91
+ mapping["entityDeletionThreshold"] = self.entity_deletion_threshold
92
+ return mapping
84
93
 
85
94
  class Config:
86
95
  allow_population_by_field_name = True
@@ -102,7 +102,7 @@ class SyncMixin(HandlerMixin):
102
102
  entities, user_agent_type
103
103
  )
104
104
  await self.entities_state_applier.delete_diff(
105
- {"before": entities_at_port, "after": modified_entities}, user_agent_type, app_config.entity_deletion_threshold
105
+ {"before": entities_at_port, "after": modified_entities}, user_agent_type, app_config.get_entity_deletion_threshold()
106
106
  )
107
107
 
108
108
  logger.info("Finished syncing change")
@@ -671,7 +671,7 @@ class SyncRawMixin(HandlerMixin, EventsMixin):
671
671
  )
672
672
  await self.entities_state_applier.delete_diff(
673
673
  {"before": entities_at_port, "after": generated_entities},
674
- user_agent_type, app_config.entity_deletion_threshold
674
+ user_agent_type, app_config.get_entity_deletion_threshold()
675
675
  )
676
676
 
677
677
  logger.info("Resync finished successfully")
port_ocean/core/models.py CHANGED
@@ -40,7 +40,7 @@ class Entity(BaseModel):
40
40
  identifier: Any
41
41
  blueprint: Any
42
42
  title: Any
43
- team: str | None | list[Any] = []
43
+ team: str | None | list[Any] | dict[str, Any] = []
44
44
  properties: dict[str, Any] = {}
45
45
  relations: dict[str, Any] = {}
46
46
 
@@ -50,7 +50,11 @@ class Entity(BaseModel):
50
50
 
51
51
  @property
52
52
  def is_using_search_relation(self) -> bool:
53
- return any(isinstance(relation, dict) for relation in self.relations.values())
53
+ return any(
54
+ isinstance(relation, dict) for relation in self.relations.values()
55
+ ) or (
56
+ self.team is not None and any(isinstance(team, dict) for team in self.team)
57
+ )
54
58
 
55
59
 
56
60
  class BlueprintRelation(BaseModel):
@@ -110,7 +110,8 @@ def get_port_diff(before: Iterable[Entity], after: Iterable[Entity]) -> EntityPo
110
110
 
111
111
 
112
112
  def are_teams_different(
113
- first_team: str | None | list[Any], second_team: str | None | list[Any]
113
+ first_team: str | None | list[Any] | dict[str, Any],
114
+ second_team: str | None | list[Any] | dict[str, Any],
114
115
  ) -> bool:
115
116
  if isinstance(first_team, list) and isinstance(second_team, list):
116
117
  return sorted(first_team) != sorted(second_team)
@@ -122,6 +123,7 @@ def are_entities_fields_equal(
122
123
  ) -> bool:
123
124
  """
124
125
  Compare two entity fields by serializing them to JSON and comparing their SHA-256 hashes.
126
+ Removes keys with None values before comparison if the corresponding key doesn't exist in the other dict.
125
127
 
126
128
  Args:
127
129
  first_entity_field: First entity field dictionary to compare
@@ -130,7 +132,13 @@ def are_entities_fields_equal(
130
132
  Returns:
131
133
  bool: True if the entity fields have identical content
132
134
  """
133
- first_props = json.dumps(first_entity_field, sort_keys=True)
135
+ first_entity_field_copy = first_entity_field.copy()
136
+
137
+ for key in list(first_entity_field.keys()):
138
+ if first_entity_field[key] is None and key not in second_entity_field:
139
+ del first_entity_field_copy[key]
140
+
141
+ first_props = json.dumps(first_entity_field_copy, sort_keys=True)
134
142
  second_props = json.dumps(second_entity_field, sort_keys=True)
135
143
  first_hash = hashlib.sha256(first_props.encode()).hexdigest()
136
144
  second_hash = hashlib.sha256(second_props.encode()).hexdigest()
@@ -41,8 +41,9 @@ async def test_batch_upsert_entities_read_timeout_should_raise_false(
41
41
  result_entities = await entity_client.batch_upsert_entities(
42
42
  entities=all_entities, request_options=MagicMock(), should_raise=False
43
43
  )
44
+ entities_only = [entity for _, entity in result_entities]
44
45
 
45
- assert result_entities == expected_result_entities
46
+ assert entities_only == expected_result_entities
46
47
 
47
48
 
48
49
  async def test_batch_upsert_entities_read_timeout_should_raise_true(
@@ -177,10 +177,11 @@ def create_entity(
177
177
  blueprint: str,
178
178
  relation: dict[str, str] | None = None,
179
179
  is_to_fail: bool = False,
180
+ team: str | list[str] | dict[str, Any] | None = None,
180
181
  ) -> Entity:
181
182
  if relation is None:
182
183
  relation = {}
183
- entity = Entity(identifier=id, blueprint=blueprint)
184
+ entity = Entity(identifier=id, blueprint=blueprint, team=team)
184
185
  entity.relations = relation
185
186
  entity.properties = {"mock_is_to_fail": is_to_fail}
186
187
  return entity
@@ -95,6 +95,30 @@ async def test_delete_diff_custom_threshold_above_threshold_not_deleted(
95
95
  mock_safe_delete.assert_not_called()
96
96
 
97
97
 
98
+ @pytest.mark.asyncio
99
+ async def test_delete_diff_custom_threshold_0_not_deleted(
100
+ mock_context: PortOceanContext,
101
+ ) -> None:
102
+ applier = HttpEntitiesStateApplier(mock_context)
103
+ entities = EntityDiff(
104
+ before=[
105
+ Entity(identifier="1", blueprint="test"),
106
+ Entity(identifier="2", blueprint="test"),
107
+ ],
108
+ after=[
109
+ Entity(identifier="2", blueprint="test"),
110
+ Entity(identifier="3", blueprint="test"),
111
+ ],
112
+ )
113
+
114
+ with patch.object(applier, "_safe_delete") as mock_safe_delete:
115
+ await applier.delete_diff(
116
+ entities, UserAgentType.exporter, entity_deletion_threshold=0
117
+ )
118
+
119
+ mock_safe_delete.assert_not_called()
120
+
121
+
98
122
  @pytest.mark.asyncio
99
123
  async def test_applier_with_mock_context(
100
124
  mock_ocean: Ocean,
@@ -130,6 +154,74 @@ async def test_applier_with_mock_context(
130
154
  assert result[0].identifier == "test_entity"
131
155
 
132
156
 
157
+ @pytest.mark.asyncio
158
+ async def test_applier_one_not_upserted(
159
+ mock_ocean: Ocean,
160
+ mock_context: PortOceanContext,
161
+ mock_port_app_config: PortAppConfig,
162
+ ) -> None:
163
+ # Create an applier using the mock_context fixture
164
+ applier = HttpEntitiesStateApplier(mock_context)
165
+
166
+ # Create test entities
167
+ entity = Entity(identifier="test_entity", blueprint="test_blueprint")
168
+
169
+ async with event_context(EventType.RESYNC, trigger_type="machine") as event:
170
+ # Mock the register_entity method
171
+ event.entity_topological_sorter.register_entity = Mock() # type: ignore
172
+ event.port_app_config = mock_port_app_config
173
+
174
+ # Test the upsert method with mocked client
175
+ with patch.object(mock_ocean.port_client.client, "post") as mock_post:
176
+ mock_post.return_value = Mock(
177
+ status_code=404,
178
+ json=lambda: {"ok": False, "error": "not_found"},
179
+ )
180
+
181
+ result = await applier.upsert([entity], UserAgentType.exporter)
182
+
183
+ # Assert that the post method was called
184
+ mock_post.assert_called_once()
185
+ assert len(result) == 0
186
+ event.entity_topological_sorter.register_entity.assert_called_once_with(
187
+ entity
188
+ )
189
+
190
+
191
+ @pytest.mark.asyncio
192
+ async def test_applier_error_upserting(
193
+ mock_ocean: Ocean,
194
+ mock_context: PortOceanContext,
195
+ mock_port_app_config: PortAppConfig,
196
+ ) -> None:
197
+ # Create an applier using the mock_context fixture
198
+ applier = HttpEntitiesStateApplier(mock_context)
199
+
200
+ # Create test entities
201
+ entity = Entity(identifier="test_entity", blueprint="test_blueprint")
202
+
203
+ async with event_context(EventType.RESYNC, trigger_type="machine") as event:
204
+ # Mock the register_entity method
205
+ event.entity_topological_sorter.register_entity = Mock() # type: ignore
206
+ event.port_app_config = mock_port_app_config
207
+
208
+ # Test the upsert method with mocked client
209
+ with patch.object(mock_ocean.port_client.client, "post") as mock_post:
210
+ mock_post.return_value = Mock(
211
+ status_code=404,
212
+ json=lambda: {"ok": False, "error": "not_found"},
213
+ )
214
+
215
+ result = await applier.upsert([entity], UserAgentType.exporter)
216
+
217
+ # Assert that the post method was called
218
+ mock_post.assert_called_once()
219
+ assert len(result) == 0
220
+ event.entity_topological_sorter.register_entity.assert_called_once_with(
221
+ entity
222
+ )
223
+
224
+
133
225
  @pytest.mark.asyncio
134
226
  async def test_using_create_entity_helper(
135
227
  mock_ocean: Ocean,
@@ -249,7 +249,7 @@ class TestJQEntityProcessor:
249
249
  result = await mocked_processor._search(data, pattern)
250
250
  assert result == "bar"
251
251
 
252
- @pytest.mark.timeout(15)
252
+ @pytest.mark.timeout(30)
253
253
  async def test_parse_items_performance_10000(
254
254
  self, mocked_processor: JQEntityProcessor
255
255
  ) -> None:
@@ -417,6 +417,30 @@ async def test_map_entities_compared_with_port_no_port_entities_all_entities_are
417
417
  assert "entity_2" in [e.identifier for e in changed_entities]
418
418
 
419
419
 
420
+ @pytest.mark.asyncio
421
+ async def test_map_entities_compared_with_port_returns_original_entities_when_using_team_search_query(
422
+ mock_sync_raw_mixin: SyncRawMixin,
423
+ mock_resource_config: ResourceConfig,
424
+ ) -> None:
425
+
426
+ team_search_query = {
427
+ "combinator": "and",
428
+ "rules": [{"property": "$team", "operator": "=", "value": "my-team"}],
429
+ }
430
+
431
+ entities = [
432
+ create_entity("entity_1", "service", {}, False, team=team_search_query),
433
+ create_entity("entity_2", "service", {}, False, team=team_search_query),
434
+ ]
435
+
436
+ changed_entities = await mock_sync_raw_mixin._map_entities_compared_with_port(
437
+ entities, mock_resource_config, UserAgentType.exporter
438
+ )
439
+
440
+ assert len(changed_entities) == 2
441
+ assert changed_entities == entities
442
+
443
+
420
444
  @pytest.mark.asyncio
421
445
  async def test_map_entities_compared_with_port_with_existing_entities_only_changed_third_party_entities_are_mapped(
422
446
  mock_sync_raw_mixin: SyncRawMixin,
@@ -78,6 +78,88 @@ async def test_get_port_app_config_success(
78
78
  result.resources[0].port.entity.mappings.properties["defaultBranch"]
79
79
  == ".default_branch"
80
80
  )
81
+ assert result.entity_deletion_threshold is None
82
+ port_app_config_handler.mock_get_port_app_config.assert_called_once()
83
+
84
+
85
+ @pytest.mark.asyncio
86
+ async def test_get_port_app_config_get_entity_deletion_threshold_with_flag_defined(
87
+ port_app_config_handler: MockPortAppConfig,
88
+ ) -> None:
89
+ # Arrange
90
+ valid_config = {
91
+ "entityDeletionThreshold": 0.1,
92
+ "resources": [
93
+ {
94
+ "kind": "repository",
95
+ "selector": {"query": "true"},
96
+ "port": {
97
+ "entity": {
98
+ "mappings": {
99
+ "identifier": ".name",
100
+ "title": ".name",
101
+ "blueprint": '"service"',
102
+ "properties": {
103
+ "description": ".description",
104
+ "url": ".html_url",
105
+ "defaultBranch": ".default_branch",
106
+ },
107
+ }
108
+ }
109
+ },
110
+ }
111
+ ],
112
+ }
113
+ port_app_config_handler.mock_get_port_app_config.return_value = valid_config
114
+
115
+ # Act
116
+ async with event_context(EventType.RESYNC, trigger_type="machine"):
117
+ result = await port_app_config_handler.get_port_app_config()
118
+ deletion_threshold = result.get_entity_deletion_threshold()
119
+
120
+ # Assert
121
+ assert isinstance(result, PortAppConfig)
122
+ assert deletion_threshold == 0.1
123
+ port_app_config_handler.mock_get_port_app_config.assert_called_once()
124
+
125
+
126
+ @pytest.mark.asyncio
127
+ async def test_get_port_app_config_get_entity_deletion_threshold_with_flag_not_defined(
128
+ port_app_config_handler: MockPortAppConfig,
129
+ ) -> None:
130
+ # Arrange
131
+ valid_config = {
132
+ "resources": [
133
+ {
134
+ "kind": "repository",
135
+ "selector": {"query": "true"},
136
+ "port": {
137
+ "entity": {
138
+ "mappings": {
139
+ "identifier": ".name",
140
+ "title": ".name",
141
+ "blueprint": '"service"',
142
+ "properties": {
143
+ "description": ".description",
144
+ "url": ".html_url",
145
+ "defaultBranch": ".default_branch",
146
+ },
147
+ }
148
+ }
149
+ },
150
+ }
151
+ ]
152
+ }
153
+ port_app_config_handler.mock_get_port_app_config.return_value = valid_config
154
+
155
+ # Act
156
+ async with event_context(EventType.RESYNC, trigger_type="machine"):
157
+ result = await port_app_config_handler.get_port_app_config()
158
+ deletion_threshold = result.get_entity_deletion_threshold()
159
+
160
+ # Assert
161
+ assert isinstance(result, PortAppConfig)
162
+ assert deletion_threshold == result._default_entity_deletion_threshold
81
163
  port_app_config_handler.mock_get_port_app_config.assert_called_once()
82
164
 
83
165
 
@@ -246,6 +246,58 @@ def test_are_entities_fields_equal_different_nested_relations_should_be_false()
246
246
  )
247
247
 
248
248
 
249
+ def test_are_entities_fields_equal_null_properties_should_be_true() -> None:
250
+ assert (
251
+ are_entities_fields_equal(
252
+ {
253
+ "team": None,
254
+ "members": ["user1", "user2"],
255
+ "metadata": {"role": "admin"},
256
+ },
257
+ {"members": ["user1", "user2"], "metadata": {"role": "admin"}},
258
+ )
259
+ is True
260
+ )
261
+
262
+
263
+ def test_are_entities_fields_equal_null_properties_and_real_data_in_other_entity_should_be_false() -> (
264
+ None
265
+ ):
266
+ assert (
267
+ are_entities_fields_equal(
268
+ {
269
+ "team": None,
270
+ "members": ["user1", "user2"],
271
+ "metadata": {"role": "admin"},
272
+ },
273
+ {
274
+ "team": "team_id1",
275
+ "members": ["user1", "user2"],
276
+ "metadata": {"role": "admin"},
277
+ },
278
+ )
279
+ is False
280
+ )
281
+
282
+
283
+ def test_are_entities_fields_equal_null_properties_in_both_should_be_true() -> None:
284
+ assert (
285
+ are_entities_fields_equal(
286
+ {
287
+ "team": None,
288
+ "members": ["user1", "user2"],
289
+ "metadata": {"role": "admin"},
290
+ },
291
+ {
292
+ "team": None,
293
+ "members": ["user1", "user2"],
294
+ "metadata": {"role": "admin"},
295
+ },
296
+ )
297
+ is True
298
+ )
299
+
300
+
249
301
  def test_are_entities_different_identical_entities_should_be_false() -> None:
250
302
  entity1 = create_test_entity(
251
303
  "",
@@ -2,7 +2,6 @@ from os import path
2
2
  from typing import Any, Callable, Dict, List, Tuple, Union
3
3
 
4
4
  import pytest
5
- import pytest_asyncio
6
5
 
7
6
  from port_ocean.clients.port.client import PortClient
8
7
  from port_ocean.core.handlers.port_app_config.models import ResourceConfig
@@ -26,7 +25,7 @@ def port_client_for_fake_integration() -> Tuple[SmokeTestDetails, PortClient]:
26
25
  return smoke_test_details, port_client
27
26
 
28
27
 
29
- @pytest_asyncio.fixture
28
+ @pytest.fixture
30
29
  def get_mocked_ocean_app(request: Any) -> Callable[[], Ocean]:
31
30
  test_dir = path.join(path.dirname(request.module.__file__), "..")
32
31
 
@@ -36,7 +35,7 @@ def get_mocked_ocean_app(request: Any) -> Callable[[], Ocean]:
36
35
  return get_ocean_app
37
36
 
38
37
 
39
- @pytest_asyncio.fixture
38
+ @pytest.fixture
40
39
  def get_mock_ocean_resource_configs(request: Any) -> Callable[[], List[ResourceConfig]]:
41
40
  module_dir = path.join(path.dirname(request.module.__file__), "..")
42
41
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: port-ocean
3
- Version: 0.22.0
3
+ Version: 0.22.2
4
4
  Summary: Port Ocean is a CLI tool for managing your Port projects.
5
5
  Home-page: https://app.getport.io
6
6
  Keywords: ocean,port-ocean,port
@@ -35,6 +35,7 @@ Requires-Dist: prometheus-client (>=0.21.1,<0.22.0)
35
35
  Requires-Dist: pydantic[dotenv] (>=1.10.8,<2.0.0)
36
36
  Requires-Dist: pydispatcher (>=2.0.7,<3.0.0)
37
37
  Requires-Dist: pyhumps (>=3.8.0,<4.0.0)
38
+ Requires-Dist: pytest-cov (>=6.0.0,<7.0.0)
38
39
  Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0)
39
40
  Requires-Dist: pyyaml (>=6.0,<7.0)
40
41
  Requires-Dist: rich (>=13.4.1,<14.0.0) ; extra == "cli"
@@ -52,7 +52,7 @@ port_ocean/clients/port/authentication.py,sha256=6-uDMWsJ0xLe1-9IoYXHWmwtufj8rJR
52
52
  port_ocean/clients/port/client.py,sha256=OaNeN3U7Hw0tK4jYE6ESJEPKbTf9nGp2jcJVq00gnf8,3546
53
53
  port_ocean/clients/port/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
54
  port_ocean/clients/port/mixins/blueprints.py,sha256=POBl4uDocrgJBw4rvCAzwRcD4jk-uBL6pDAuKMTajdg,4633
55
- port_ocean/clients/port/mixins/entities.py,sha256=ACBq99r2ssc-8ybr6THE3bE4jRx7d_loAPeq1BfnZBQ,10769
55
+ port_ocean/clients/port/mixins/entities.py,sha256=se1RudWS2R1WXyZvvkFgSiLejra91gl79zPY8QsRHeQ,10881
56
56
  port_ocean/clients/port/mixins/integrations.py,sha256=nqz1gvQnR6Nzv62ZfbXEyli7FTKW5DCFpI1x1KoJJ_E,9341
57
57
  port_ocean/clients/port/mixins/migrations.py,sha256=A6896oJF6WbFL2WroyTkMzr12yhVyWqGoq9dtLNSKBY,1457
58
58
  port_ocean/clients/port/mixins/organization.py,sha256=fCo_ZS8UlQXsyIx-odTuWkbnfcYmVnQfIsSyJuPOPjM,1031
@@ -72,8 +72,8 @@ port_ocean/context/resource.py,sha256=WQlPzplxWic0hvvMxWKu8xPfQQC0VjrsJVeA6yZytw
72
72
  port_ocean/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  port_ocean/core/defaults/__init__.py,sha256=8qCZg8n06WAdMu9s_FiRtDYLGPGHbOuS60vapeUoAks,142
74
74
  port_ocean/core/defaults/clean.py,sha256=_rL-NCl6Q_x3lUxDW5ACOM27IYilTCWl6ISUfRleuL0,2891
75
- port_ocean/core/defaults/common.py,sha256=zJsj7jvlqIMLGXhdASUlbKS8GIAf-FDKKB0O7jB6nx0,4166
76
- port_ocean/core/defaults/initialize.py,sha256=wdc3UdhRTu_tRZuCnt9ZRtqbl4dSLa8u6E_dyiAuEWg,10980
75
+ port_ocean/core/defaults/common.py,sha256=FGB6sshNsU5tD1JLX1C__RiN7tJgQYZhUUxEQzK0sKE,4205
76
+ port_ocean/core/defaults/initialize.py,sha256=1-Yx1XcjENkoxC3-Yh2XIhXupEzZeGjqkKjsmexiWY8,11018
77
77
  port_ocean/core/event_listener/__init__.py,sha256=T3E52MKs79fNEW381p7zU9F2vOMvIiiTYWlqRUqnsg0,1135
78
78
  port_ocean/core/event_listener/base.py,sha256=GFBTHiYhCzps50phzopQFUlTGAluQkCRlyaRqOG4g1Y,2995
79
79
  port_ocean/core/event_listener/factory.py,sha256=M4Qi05pI840sjDIbdjUEgYe9Gp5ckoCkX-KgLBxUpZg,4096
@@ -87,7 +87,7 @@ port_ocean/core/handlers/base.py,sha256=cTarblazu8yh8xz2FpB-dzDKuXxtoi143XJgPbV_
87
87
  port_ocean/core/handlers/entities_state_applier/__init__.py,sha256=kgLZDCeCEzi4r-0nzW9k78haOZNf6PX7mJOUr34A4c8,173
88
88
  port_ocean/core/handlers/entities_state_applier/base.py,sha256=5wHL0icfFAYRPqk8iV_wN49GdJ3aRUtO8tumSxBi4Wo,2268
89
89
  port_ocean/core/handlers/entities_state_applier/port/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
- port_ocean/core/handlers/entities_state_applier/port/applier.py,sha256=hgZyFuJab-WNQfSLHwGHtKarxMVrvLkFXoiZsLmAGQA,6703
90
+ port_ocean/core/handlers/entities_state_applier/port/applier.py,sha256=CcYSTMa4nA-fDX_9ZswthoyK8jMkupS1v-LMB-XxYBk,6254
91
91
  port_ocean/core/handlers/entities_state_applier/port/get_related_entities.py,sha256=1zncwCbE-Gej0xaWKlzZgoXxOBe9bgs_YxlZ8QW3NdI,1751
92
92
  port_ocean/core/handlers/entities_state_applier/port/order_by_entities_dependencies.py,sha256=lyv6xKzhYfd6TioUgR3AVRSJqj7JpAaj1LxxU2xAqeo,1720
93
93
  port_ocean/core/handlers/entity_processor/__init__.py,sha256=FvFCunFg44wNQoqlybem9MthOs7p1Wawac87uSXz9U8,156
@@ -96,7 +96,7 @@ port_ocean/core/handlers/entity_processor/jq_entity_processor.py,sha256=C6zJbS3m
96
96
  port_ocean/core/handlers/port_app_config/__init__.py,sha256=8AAT5OthiVM7KCcM34iEgEeXtn2pRMrT4Dze5r1Ixbk,134
97
97
  port_ocean/core/handlers/port_app_config/api.py,sha256=r_Th66NEw38IpRdnXZcRvI8ACfvxW_A6V62WLwjWXlQ,1044
98
98
  port_ocean/core/handlers/port_app_config/base.py,sha256=4Nxt2g8voEIHJ4Y1Km5NJcaG2iSbCklw5P8-Kus7Y9k,3007
99
- port_ocean/core/handlers/port_app_config/models.py,sha256=5Tt2BWHOJ4nnkh4xVrwyVG4KO5Tp4e64Cu_eFF-9jBg,2449
99
+ port_ocean/core/handlers/port_app_config/models.py,sha256=Rf01rQpQZRse2qfr5PwgOz4pKwb53y0LuW9yp7v_ZoI,2912
100
100
  port_ocean/core/handlers/queue/__init__.py,sha256=1fICM0ZLATmmj6f7cdq_eV2kmw0_jy7y2INuLQIpzIE,121
101
101
  port_ocean/core/handlers/queue/abstract_queue.py,sha256=q_gpaWFFZHxM3XovEbgsDn8jEOLM45iAZWVC81Paxto,620
102
102
  port_ocean/core/handlers/queue/local_queue.py,sha256=EzqsGIX43xbVAcePwTcCg5QDrXATQpy-VzWxxN_OyAM,574
@@ -112,13 +112,13 @@ port_ocean/core/integrations/mixins/__init__.py,sha256=FA1FEKMM6P-L2_m7Q4L20mFa4
112
112
  port_ocean/core/integrations/mixins/events.py,sha256=2L7P3Jhp8XBqddh2_o9Cn4N261nN1SySfrEdJoqLrIw,2714
113
113
  port_ocean/core/integrations/mixins/handler.py,sha256=mZ7-0UlG3LcrwJttFbMe-R4xcOU2H_g33tZar7PwTv8,3771
114
114
  port_ocean/core/integrations/mixins/live_events.py,sha256=8HklZmlyffYY_LeDe8xbt3Tb08rlLkqVhFF-2NQeJP4,4126
115
- port_ocean/core/integrations/mixins/sync.py,sha256=GHiFbnw0XrBfl7aCTH_w67f_N7EZbcUgssc-0fPujNU,4047
116
- port_ocean/core/integrations/mixins/sync_raw.py,sha256=eUupD__avxQZKsgEvGWa7ibTidYShwsKWBq_wakiQAc,27481
115
+ port_ocean/core/integrations/mixins/sync.py,sha256=Vm_898pLKBwfVewtwouDWsXoxcOLicnAy6pzyqqk6U8,4053
116
+ port_ocean/core/integrations/mixins/sync_raw.py,sha256=uATzik6gSmkpKlIhbcRavlDo-xtkUvMwNp1wZltJj-I,27487
117
117
  port_ocean/core/integrations/mixins/utils.py,sha256=oN4Okz6xlaefpid1_Pud8HPSw9BwwjRohyNsknq-Myg,2309
118
- port_ocean/core/models.py,sha256=FvTp-BlpbvLbMbngE0wsiimsCfmIhUR1PvsE__Z--1I,2206
118
+ port_ocean/core/models.py,sha256=YpJ2XOB3Zt9_M-rcMrMjugFNzBDg2hCUKgqvEt7now0,2348
119
119
  port_ocean/core/ocean_types.py,sha256=4VipWFOHEh_d9LmWewQccwx1p2dtrRYW0YURVgNsAjo,1398
120
120
  port_ocean/core/utils/entity_topological_sorter.py,sha256=MDUjM6OuDy4Xj68o-7InNN0w1jqjxeDfeY8U02vySNI,3081
121
- port_ocean/core/utils/utils.py,sha256=HmumOeH27N0NX1_OP3t4oGKt074ht9XyXhvfZ5I05s4,6474
121
+ port_ocean/core/utils/utils.py,sha256=XJ6ZZBR5hols19TcX4Bh49ygSNhPt3MLncLR-g41GTA,6858
122
122
  port_ocean/debug_cli.py,sha256=gHrv-Ey3cImKOcGZpjoHlo4pa_zfmyOl6TUM4o9VtcA,96
123
123
  port_ocean/exceptions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
124
  port_ocean/exceptions/api.py,sha256=1JcA-H12lhSgolMEA6dM4JMbDrh9sYDcE7oydPSTuK8,649
@@ -147,27 +147,27 @@ port_ocean/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
147
147
  port_ocean/tests/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
148
  port_ocean/tests/clients/oauth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
149
149
  port_ocean/tests/clients/oauth/test_oauth_client.py,sha256=2XVMQUalDpiD539Z7_dk5BK_ngXQzsTmb2lNBsfEm9c,3266
150
- port_ocean/tests/clients/port/mixins/test_entities.py,sha256=vm2COG5pFC4mbJis9fjWE1zvGuNKD2kskPbcDEMxF2w,1751
150
+ port_ocean/tests/clients/port/mixins/test_entities.py,sha256=Zq_wKTymxJ0R8lHKztvEV6lN__3FZk8uTSIVpKCE6NA,1815
151
151
  port_ocean/tests/clients/port/mixins/test_organization_mixin.py,sha256=-8iHM33Oe8PuyEfj3O_6Yob8POp4fSmB0hnIT0Gv-8Y,868
152
152
  port_ocean/tests/conftest.py,sha256=JXASSS0IY0nnR6bxBflhzxS25kf4iNaABmThyZ0mZt8,101
153
- port_ocean/tests/core/conftest.py,sha256=2MNOmQ3C8rNAOlkryiV604_S7FmcpVNApHrpY378OPU,5448
153
+ port_ocean/tests/core/conftest.py,sha256=BHfi7egDVNRpg61lHZlWj81_ohUG7DEVMdFe9yX-vkc,5517
154
154
  port_ocean/tests/core/defaults/test_common.py,sha256=sR7RqB3ZYV6Xn6NIg-c8k5K6JcGsYZ2SCe_PYX5vLYM,5560
155
- port_ocean/tests/core/handlers/entities_state_applier/test_applier.py,sha256=nx2apKGDzKbckJQV-if8XzNSaldZwbzDBlZBNdVtMGg,5705
156
- port_ocean/tests/core/handlers/entity_processor/test_jq_entity_processor.py,sha256=FnEnaDjuoAbKvKyv6xJ46n3j0ZcaT70Sg2zc7oy7HAA,13596
155
+ port_ocean/tests/core/handlers/entities_state_applier/test_applier.py,sha256=WNg1fWZsXu0MDnz9-ahRiPb_OPofWx7E8wxBx0cyZKs,8946
156
+ port_ocean/tests/core/handlers/entity_processor/test_jq_entity_processor.py,sha256=8WpMn559Mf0TFWmloRpZrVgr6yWwyA0C4n2lVHCtyq4,13596
157
157
  port_ocean/tests/core/handlers/mixins/test_live_events.py,sha256=iAwVpr3n3PIkXQLw7hxd-iB_SR_vyfletVXJLOmyz28,12480
158
- port_ocean/tests/core/handlers/mixins/test_sync_raw.py,sha256=91H2GfHqxIDFd4zbmv8WWp8rR6SVy1Sm0IvhqTvm7p0,32783
158
+ port_ocean/tests/core/handlers/mixins/test_sync_raw.py,sha256=RTkHU2QS9f-Lt3u0OCBPPEeiaM2_9h5vOQxqLnrbQro,33560
159
159
  port_ocean/tests/core/handlers/port_app_config/test_api.py,sha256=eJZ6SuFBLz71y4ca3DNqKag6d6HUjNJS0aqQPwiLMTI,1999
160
- port_ocean/tests/core/handlers/port_app_config/test_base.py,sha256=tdjpFUnUZ6TNMxc3trKkzmMTGTb7oKIeu3rRXv_fV3g,6872
160
+ port_ocean/tests/core/handlers/port_app_config/test_base.py,sha256=hSh556bJM9zuELwhwnyKSfd9z06WqWXIfe-6hCl5iKI,9799
161
161
  port_ocean/tests/core/handlers/queue/test_local_queue.py,sha256=9Ly0HzZXbs6Rbl_bstsIdInC3h2bgABU3roP9S_PnJM,2582
162
162
  port_ocean/tests/core/handlers/webhook/test_abstract_webhook_processor.py,sha256=zKwHhPAYEZoZ5Z2UETp1t--mbkS8uyvlXThB0obZTTc,3340
163
163
  port_ocean/tests/core/handlers/webhook/test_processor_manager.py,sha256=6Zap3rKBd8Td7-a9af6_FWOGNDN4oZhNdWeeaICsLD0,49386
164
164
  port_ocean/tests/core/handlers/webhook/test_webhook_event.py,sha256=oR4dEHLO65mp6rkfNfszZcfFoRZlB8ZWee4XetmsuIk,3181
165
165
  port_ocean/tests/core/test_utils.py,sha256=Z3kdhb5V7Svhcyy3EansdTpgHL36TL6erNtU-OPwAcI,2647
166
166
  port_ocean/tests/core/utils/test_entity_topological_sorter.py,sha256=zuq5WSPy_88PemG3mOUIHTxWMR_js1R7tOzUYlgBd68,3447
167
- port_ocean/tests/core/utils/test_resolve_entities_diff.py,sha256=4kTey1c0dWKbLXjJ-9m2GXrHyAWZeLQ2asdtYRRUdRs,16573
167
+ port_ocean/tests/core/utils/test_resolve_entities_diff.py,sha256=nSB0H87Gk6iFw7RMq9YfiZtC_u6X20ao5vmvywP5HsE,17945
168
168
  port_ocean/tests/helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
169
  port_ocean/tests/helpers/fake_port_api.py,sha256=9rtjC6iTQMfzWK6WipkDzzG0b1IIaRmvdJLOyV613vE,6479
170
- port_ocean/tests/helpers/fixtures.py,sha256=IQEplbHhRgjrAsZlnXrgSYA5YQEn25I9HgO3_Fjibxg,1481
170
+ port_ocean/tests/helpers/fixtures.py,sha256=dinEucKDTGAD2tKwbOqqHZSHNPsDLN2HxnLqA-WXGeI,1443
171
171
  port_ocean/tests/helpers/integration.py,sha256=_RxS-RHpu11lrbhUXYPZp862HLWx8AoD7iZM6iXN8rs,1104
172
172
  port_ocean/tests/helpers/ocean_app.py,sha256=N06vcNI1klqdcNFq-PXL5vm77u-hODsOSXnj9p8d1AI,2249
173
173
  port_ocean/tests/helpers/port_client.py,sha256=5d6GNr8vNNSOkrz1AdOhxBUKuusr_-UPDP7AVpHasQw,599
@@ -188,8 +188,8 @@ port_ocean/utils/repeat.py,sha256=U2OeCkHPWXmRTVoPV-VcJRlQhcYqPWI5NfmPlb1JIbc,32
188
188
  port_ocean/utils/signal.py,sha256=mMVq-1Ab5YpNiqN4PkiyTGlV_G0wkUDMMjTZp5z3pb0,1514
189
189
  port_ocean/utils/time.py,sha256=pufAOH5ZQI7gXvOvJoQXZXZJV-Dqktoj9Qp9eiRwmJ4,1939
190
190
  port_ocean/version.py,sha256=UsuJdvdQlazzKGD3Hd5-U7N69STh8Dq9ggJzQFnu9fU,177
191
- port_ocean-0.22.0.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
192
- port_ocean-0.22.0.dist-info/METADATA,sha256=Dm3UD58bqEM3h5bX-Oeb7sjzKViKWfrN9sH-jl8AxUE,6721
193
- port_ocean-0.22.0.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
194
- port_ocean-0.22.0.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
195
- port_ocean-0.22.0.dist-info/RECORD,,
191
+ port_ocean-0.22.2.dist-info/LICENSE.md,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
192
+ port_ocean-0.22.2.dist-info/METADATA,sha256=Gnljw5UH_wpBycjJttdo1rAf8C8s7EeOP_KS5Ur6jWI,6764
193
+ port_ocean-0.22.2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
194
+ port_ocean-0.22.2.dist-info/entry_points.txt,sha256=F_DNUmGZU2Kme-8NsWM5LLE8piGMafYZygRYhOVtcjA,54
195
+ port_ocean-0.22.2.dist-info/RECORD,,