@kumori/aurora-backend-handler 1.1.10 → 1.1.12
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.
|
@@ -436,6 +436,10 @@ export function handleParametersToGenerateData(
|
|
|
436
436
|
* @returns A ServiceSpecForm object with the data of the service.
|
|
437
437
|
*/
|
|
438
438
|
export function transformServiceToForm(service: Service): ServiceSpecForm {
|
|
439
|
+
console.log(
|
|
440
|
+
"DEBUG - transformServiceToForm (channels)",
|
|
441
|
+
service.serverChannels,
|
|
442
|
+
);
|
|
439
443
|
return {
|
|
440
444
|
tenantId: service.tenant,
|
|
441
445
|
accountId: service.account,
|
|
@@ -14,6 +14,7 @@ let pendingLinks = new Map<string, Link[]>();
|
|
|
14
14
|
* @param data Service object with the data of the service
|
|
15
15
|
*/
|
|
16
16
|
export const deployService = async (data: Service, token: string) => {
|
|
17
|
+
console.log("DEBUG - deployService", data);
|
|
17
18
|
try {
|
|
18
19
|
const url = new URL(
|
|
19
20
|
`${environment.apiServer.baseUrl}/api/${environment.apiServer.apiVersion}/tenant/${data.tenant}/service/${data.name}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumori/aurora-backend-handler",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "backend handler",
|
|
5
5
|
"main": "backend-handler.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"glob": "^11.0.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@kumori/aurora-interfaces": "^1.0.
|
|
14
|
+
"@kumori/aurora-interfaces": "^1.0.13",
|
|
15
15
|
"@kumori/kumori-dsl-generator": "^1.0.4",
|
|
16
16
|
"@kumori/kumori-module-generator": "^1.1.6",
|
|
17
17
|
"ts-node": "^10.9.2",
|
package/websocket-manager.ts
CHANGED
|
@@ -563,7 +563,6 @@ const rebuildHierarchy = () => {
|
|
|
563
563
|
const preservedUserData = { ...userData };
|
|
564
564
|
|
|
565
565
|
tenantsMap.forEach((tenant) => {
|
|
566
|
-
console.log("[DEBUG] rebuild - tenant.users before:", JSON.stringify(tenant.users));
|
|
567
566
|
tenant.accounts = Array.from(accountsMap.values()).filter((account) => {
|
|
568
567
|
account.environments = Array.from(environmentsMap.values())
|
|
569
568
|
.filter((env) => env.account === account.id)
|
|
@@ -591,7 +590,6 @@ const rebuildHierarchy = () => {
|
|
|
591
590
|
pendingProjects.splice(i, 1);
|
|
592
591
|
}
|
|
593
592
|
}
|
|
594
|
-
console.log("[DEBUG] rebuild tenant.users before:", JSON.stringify(tenant.users));
|
|
595
593
|
});
|
|
596
594
|
userData = {
|
|
597
595
|
id: preservedUserData.id,
|
|
@@ -814,7 +812,6 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
814
812
|
eventData,
|
|
815
813
|
userData,
|
|
816
814
|
);
|
|
817
|
-
console.log("[DEBUG] newTenant.users:", JSON.stringify(newTenant.users))
|
|
818
815
|
if (
|
|
819
816
|
existingTenant &&
|
|
820
817
|
existingTenant.role &&
|
|
@@ -860,7 +857,6 @@ const handleEvent = async (message: WSMessage) => {
|
|
|
860
857
|
}
|
|
861
858
|
|
|
862
859
|
tenantsMap.set(entityId, newTenant);
|
|
863
|
-
console.log("[DEBUG] tenantsMap after set:", JSON.stringify(tenantsMap.get(entityId)?.users));
|
|
864
860
|
if (pendingTenantStatus.has(entityId)) {
|
|
865
861
|
const pendingStatus = pendingTenantStatus.get(entityId)!;
|
|
866
862
|
tenantsMap.set(entityId, { ...newTenant, status: pendingStatus });
|