infrahub-server 1.5.3__py3-none-any.whl → 1.5.5__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.
- infrahub/core/migrations/graph/m041_deleted_dup_edges.py +3 -2
- infrahub/core/node/__init__.py +1 -1
- infrahub/core/relationship/model.py +9 -3
- {infrahub_server-1.5.3.dist-info → infrahub_server-1.5.5.dist-info}/METADATA +1 -1
- {infrahub_server-1.5.3.dist-info → infrahub_server-1.5.5.dist-info}/RECORD +8 -8
- {infrahub_server-1.5.3.dist-info → infrahub_server-1.5.5.dist-info}/LICENSE.txt +0 -0
- {infrahub_server-1.5.3.dist-info → infrahub_server-1.5.5.dist-info}/WHEEL +0 -0
- {infrahub_server-1.5.3.dist-info → infrahub_server-1.5.5.dist-info}/entry_points.txt +0 -0
|
@@ -87,14 +87,15 @@ CALL (node_uuid) {
|
|
|
87
87
|
// ------------
|
|
88
88
|
MATCH (n:Node {uuid: node_uuid})-[:IS_RELATED]-(rel:Relationship)
|
|
89
89
|
WITH DISTINCT rel
|
|
90
|
-
MATCH (rel)-[e]
|
|
90
|
+
MATCH (rel)-[e]-(peer)
|
|
91
91
|
WITH
|
|
92
|
+
elementId(rel) AS rel_element_id,
|
|
92
93
|
type(e) AS e_type,
|
|
93
94
|
e.branch AS e_branch,
|
|
94
95
|
e.from AS e_from,
|
|
95
96
|
e.to AS e_to,
|
|
96
97
|
e.status AS e_status,
|
|
97
|
-
|
|
98
|
+
elementId(peer) AS peer_element_id,
|
|
98
99
|
CASE
|
|
99
100
|
WHEN startNode(e) = rel THEN "out" ELSE "in"
|
|
100
101
|
END AS direction,
|
infrahub/core/node/__init__.py
CHANGED
|
@@ -1088,7 +1088,7 @@ class Node(BaseNode, metaclass=BaseNodeMeta):
|
|
|
1088
1088
|
|
|
1089
1089
|
if key in self._relationships:
|
|
1090
1090
|
rel: RelationshipManager = getattr(self, key)
|
|
1091
|
-
changed |= await rel.update(db=db, data=value)
|
|
1091
|
+
changed |= await rel.update(db=db, data=value, process_delete=process_pools)
|
|
1092
1092
|
|
|
1093
1093
|
return changed
|
|
1094
1094
|
|
|
@@ -1061,7 +1061,12 @@ class RelationshipManager:
|
|
|
1061
1061
|
|
|
1062
1062
|
return self._relationships.as_list()
|
|
1063
1063
|
|
|
1064
|
-
async def update(
|
|
1064
|
+
async def update(
|
|
1065
|
+
self,
|
|
1066
|
+
data: list[str | Node] | dict[str, Any] | str | Node | None,
|
|
1067
|
+
db: InfrahubDatabase,
|
|
1068
|
+
process_delete: bool = True,
|
|
1069
|
+
) -> bool:
|
|
1065
1070
|
"""Replace and Update the list of relationships with this one."""
|
|
1066
1071
|
if not isinstance(data, list):
|
|
1067
1072
|
list_data: Sequence[str | Node | dict[str, Any] | None] = [data]
|
|
@@ -1087,8 +1092,9 @@ class RelationshipManager:
|
|
|
1087
1092
|
|
|
1088
1093
|
if item is None:
|
|
1089
1094
|
if previous_relationships:
|
|
1090
|
-
|
|
1091
|
-
|
|
1095
|
+
if process_delete:
|
|
1096
|
+
for rel in previous_relationships.values():
|
|
1097
|
+
await rel.delete(db=db)
|
|
1092
1098
|
changed = True
|
|
1093
1099
|
continue
|
|
1094
1100
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: infrahub-server
|
|
3
|
-
Version: 1.5.
|
|
3
|
+
Version: 1.5.5
|
|
4
4
|
Summary: Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Author: OpsMill
|
|
@@ -205,7 +205,7 @@ infrahub/core/migrations/graph/m037_index_attr_vals.py,sha256=pc-223N-jhAglpPIeU
|
|
|
205
205
|
infrahub/core/migrations/graph/m038_redo_0000_prefix_fix.py,sha256=8seWnXQhgEJDFLWxYHVcnMNDPcHq5C24c0RYrtn_WGE,2411
|
|
206
206
|
infrahub/core/migrations/graph/m039_ipam_reconcile.py,sha256=yRWTE73Rq1Qh6tPLu98w60zJdx8cgdO7_DL-g10x87s,11112
|
|
207
207
|
infrahub/core/migrations/graph/m040_duplicated_attributes.py,sha256=2LxsG-CfcZnBirwGhwYL4kU-g3oxl6lNSM12vZTZ7Gw,2930
|
|
208
|
-
infrahub/core/migrations/graph/m041_deleted_dup_edges.py,sha256=
|
|
208
|
+
infrahub/core/migrations/graph/m041_deleted_dup_edges.py,sha256=GYcaKiVhiPogakMa_i-NiP9ImVShieNH6Juw1GQrosE,5468
|
|
209
209
|
infrahub/core/migrations/graph/m042_profile_attrs_in_db.py,sha256=KdEaNPHovJxxiNL3CFRjWBnNzaMdidj1nmW5Jbhrt-4,6431
|
|
210
210
|
infrahub/core/migrations/graph/m043_create_hfid_display_label_in_db.py,sha256=giICX6Dwd_z1GaWTWyX3KD5Va34LGth0Vv2uyaof044,7290
|
|
211
211
|
infrahub/core/migrations/graph/m044_backfill_hfid_display_label_in_db.py,sha256=FuV3EBWS4lY4dtOn7-1Qgo6J7j4XDq4s5yIQjfCCVDM,39575
|
|
@@ -233,7 +233,7 @@ infrahub/core/migrations/schema/placeholder_dummy.py,sha256=YBGFUVPi57ARbWgAmbtK
|
|
|
233
233
|
infrahub/core/migrations/schema/tasks.py,sha256=2J8gHGSP-WhxSi4GYhOc9xAJOg_S1ONm3YE4_ukLKxw,4164
|
|
234
234
|
infrahub/core/migrations/shared.py,sha256=sQMdbx1gnht2G_-nb1MDbStwUso5YJkyyumjlKAJq3g,9592
|
|
235
235
|
infrahub/core/models.py,sha256=xoodMSKLaHD5nOtBT35soRQnyHO_OrDlVRNdXuL51Ho,26679
|
|
236
|
-
infrahub/core/node/__init__.py,sha256=
|
|
236
|
+
infrahub/core/node/__init__.py,sha256=OihBPaPhEbgvSLKPdBOBBuh0EFWf2wt897LZ_jdWb_g,50114
|
|
237
237
|
infrahub/core/node/base.py,sha256=BAowVRCK_WC50yXym1kCyUppJDJnrODGU5uoj1s0Yd4,2564
|
|
238
238
|
infrahub/core/node/constraints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
239
239
|
infrahub/core/node/constraints/attribute_uniqueness.py,sha256=lcHBk4d3bc12sywxRTnQs18VEm_S6pDcUhNnsXnb-uI,2162
|
|
@@ -278,7 +278,7 @@ infrahub/core/relationship/constraints/peer_kind.py,sha256=Bropiav4y6r0iU2KfWJ_k
|
|
|
278
278
|
infrahub/core/relationship/constraints/peer_parent.py,sha256=z7elpC8xS_ovAF28Haq-RNpFtTEiUehzowiDgYGT68U,2343
|
|
279
279
|
infrahub/core/relationship/constraints/peer_relatives.py,sha256=Ye79l7njaWxZkU2chTOaptIjvKBIawsNCl0IQxCTDtM,2737
|
|
280
280
|
infrahub/core/relationship/constraints/profiles_kind.py,sha256=nEZPGtGcmelZ1Nb8EPcQ-7_zCLCNIYwwWbU6C9fLj5E,2464
|
|
281
|
-
infrahub/core/relationship/model.py,sha256=
|
|
281
|
+
infrahub/core/relationship/model.py,sha256=ocow8RLJWaR-DNHh7JqYhA0g0fe_elwNeOmuG9ywzII,49093
|
|
282
282
|
infrahub/core/root.py,sha256=8ZLSOtnmjQcrjqX2vxNO-AGopEUArmBPo_X5NeZBdP0,416
|
|
283
283
|
infrahub/core/schema/__init__.py,sha256=U1DWsadfu7Y3FUc51h9DNwXEq4Qa_yZ5w5Bip8pVpmw,6674
|
|
284
284
|
infrahub/core/schema/attribute_parameters.py,sha256=ABL1GEsOl4_CcDvK9_NucGMaF6LUeOjAxbDQVm_G7eg,6516
|
|
@@ -889,8 +889,8 @@ infrahub_testcontainers/models.py,sha256=hT7WEX2o7gxTFPE9uhtP5yigKgP5YSsy2c3tFB-
|
|
|
889
889
|
infrahub_testcontainers/performance_test.py,sha256=_nf7Uk15mHwqpN4y7XUfI4JI54-UaXW-Yu4uwMIx21w,6185
|
|
890
890
|
infrahub_testcontainers/plugin.py,sha256=I3RuZQ0dARyKHuqCf0y1Yj731P2Mwf3BJUehRJKeWrs,5645
|
|
891
891
|
infrahub_testcontainers/prometheus.yml,sha256=610xQEyj3xuVJMzPkC4m1fRnCrjGpiRBrXA2ytCLa54,599
|
|
892
|
-
infrahub_server-1.5.
|
|
893
|
-
infrahub_server-1.5.
|
|
894
|
-
infrahub_server-1.5.
|
|
895
|
-
infrahub_server-1.5.
|
|
896
|
-
infrahub_server-1.5.
|
|
892
|
+
infrahub_server-1.5.5.dist-info/LICENSE.txt,sha256=7GQO7kxVoQYnZtFrjZBKLRXbrGwwwimHPPOJtqXsozQ,11340
|
|
893
|
+
infrahub_server-1.5.5.dist-info/METADATA,sha256=V3eczPUgvwAgqFdnb3ZQiUltnkgPnzeABDjT4acfJaQ,6127
|
|
894
|
+
infrahub_server-1.5.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
895
|
+
infrahub_server-1.5.5.dist-info/entry_points.txt,sha256=UXIeFWDsrV-4IllNvUEd6KieYGzQfn9paga2YyABOQI,393
|
|
896
|
+
infrahub_server-1.5.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|