@kumori/aurora-backend-handler 1.1.73 → 1.1.74
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.
- package/helpers/revision-helper.ts +10 -1
- package/package.json +1 -1
|
@@ -686,9 +686,10 @@ export const processRevisionData = (
|
|
|
686
686
|
const schemaResult = revisionData.revision
|
|
687
687
|
? extractStructuredSchema(revisionData)
|
|
688
688
|
: {};
|
|
689
|
+
console.log("DEBUG schemaResult", schemaResult);
|
|
689
690
|
const schema =
|
|
690
691
|
schemaResult && "parameters" in schemaResult ? schemaResult : {};
|
|
691
|
-
|
|
692
|
+
console.log("DEBUG schema", schema);
|
|
692
693
|
if (
|
|
693
694
|
revisionsMap &&
|
|
694
695
|
serviceId &&
|
|
@@ -699,7 +700,9 @@ export const processRevisionData = (
|
|
|
699
700
|
const revisionKey = `${serviceId}-${revisionId}`;
|
|
700
701
|
const existing = revisionsMap.get(revisionKey);
|
|
701
702
|
if (existing) {
|
|
703
|
+
console.log("DEBUG: Updating existing revision in revisionsMap", revisionKey, existing);
|
|
702
704
|
revisionsMap.set(revisionKey, { ...existing, schema });
|
|
705
|
+
console.log("DEBUG: Updated revision in revisionsMap", revisionKey, revisionsMap.get(revisionKey));
|
|
703
706
|
} else {
|
|
704
707
|
revisionsMap.set(revisionKey, {
|
|
705
708
|
id: revisionId,
|
|
@@ -740,6 +743,7 @@ export const processRevisionData = (
|
|
|
740
743
|
errorMsg: "",
|
|
741
744
|
createdAt: "",
|
|
742
745
|
});
|
|
746
|
+
console.log("DEBUG: Added new revision to revisionsMap", revisionKey, revisionsMap.get(revisionKey));
|
|
743
747
|
}
|
|
744
748
|
}
|
|
745
749
|
|
|
@@ -808,6 +812,11 @@ export const processRevisionData = (
|
|
|
808
812
|
),
|
|
809
813
|
);
|
|
810
814
|
}
|
|
815
|
+
console.log("DEBUG: No deployment found in revisionData, applying schema to service with top-level parameters and resources.", service, topLevelParameters, topLevelResources, applySchemaToService({
|
|
816
|
+
...service,
|
|
817
|
+
parameters: topLevelParameters,
|
|
818
|
+
resources: topLevelResources,
|
|
819
|
+
}));
|
|
811
820
|
return applySchemaToService({
|
|
812
821
|
...service,
|
|
813
822
|
parameters: topLevelParameters,
|