nexarch 0.12.18 → 0.12.19
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.
|
@@ -174,7 +174,13 @@ export function buildIngestPayload(params) {
|
|
|
174
174
|
attributes: { source: "terraform_ingest", terraform_version: projection.terraformVersion },
|
|
175
175
|
},
|
|
176
176
|
];
|
|
177
|
-
const relationships = [
|
|
177
|
+
const relationships = [
|
|
178
|
+
// The environment lives on the platform. Without this edge the two nodes
|
|
179
|
+
// this payload always creates float beside each other, and no query can
|
|
180
|
+
// answer "which cloud is dev on" — every resource knows both, but the
|
|
181
|
+
// environment itself knows neither.
|
|
182
|
+
{ relationshipTypeCode: "runs_on", fromEntityRef: environmentRef, toEntityRef: platformRef },
|
|
183
|
+
];
|
|
178
184
|
// Lookup tables for the topology pass below, populated alongside entities so
|
|
179
185
|
// a single loop over projection.resources is enough for both.
|
|
180
186
|
const entityRefByTypeAndName = new Map();
|