@izara_project/izara-market-library-service-schemas 1.0.13 → 1.0.15
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/package.json +5 -5
- package/src/GenerateCodeLibs/src/GenerateCodeLibs.js +32 -29
- package/src/TemplateManager/src/FindData/GetByStorage/getByGraph.ejs +2 -1
- package/src/TemplateManager/src/GenerateCode.js +3 -3
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrDsq/template.ejs +17 -14
- package/src/TemplateManager/src/PerActionEndpoint/Handler/HdrSqs/template.ejs +14 -13
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Delete/template.ejs +0 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/data.js +1 -1
- package/src/TemplateManager/src/PerActionEndpoint/MainFunction/Update/template.ejs +18 -11
- package/src/TemplateManager/src/ProcessLogical/mainFunction/template.ejs +2 -2
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/functionYaml/HdrInv/data.js +2 -2
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/mainFunction/template.ejs +25 -17
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrApi/template.ejs +39 -21
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrDsq/template.ejs +38 -21
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrInv/template.ejs +40 -22
- package/src/TemplateManager/src/RelationshipPerAction/DeleteRelationship/DeleteRelationship/perAction/HdrSqs/template.ejs +38 -22
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/functionYaml/HdrApi/data.js +1 -1
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/mainFunction/template.ejs +21 -11
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrApi/template.ejs +37 -20
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrDsq/template.ejs +40 -23
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrInv/template.ejs +40 -23
- package/src/TemplateManager/src/RelationshipPerAction/UpdateRelationshipSchema/updateRelationship/perAction/HdrSqs/template.ejs +40 -23
- package/src/TemplateManager/src/externalService/FunctionNameConfig/data.js +45 -12
- package/src/TemplateManager/src/externalService/FunctionNameConfig/templateIntTesting.ejs +31 -0
- package/src/TemplateManager/src/externalService/FunctionNameConfig/templateYaml.ejs +10 -0
- package/src/TemplateManager/src/externalService/LambdaRole/data.js +10 -46
- package/src/TemplateManager/src/libs/Consts.js +3 -3
|
@@ -29,31 +29,44 @@ const <%- functionName %> = require('./<%- firstLetterUpperCase(functionName) %>
|
|
|
29
29
|
// validate event params in middlewware before into function.
|
|
30
30
|
let validatorSchema = {
|
|
31
31
|
type: "object",
|
|
32
|
-
required: ["
|
|
32
|
+
required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
|
|
33
33
|
properties: {
|
|
34
|
-
|
|
35
|
-
type: "
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
required: ["serviceTag", "objectType"],
|
|
45
|
-
properties: {
|
|
46
|
-
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
47
|
-
objectType: izara.validatorSchema.stringNotEmpty()
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
identifiers: {
|
|
51
|
-
type: "object",
|
|
52
|
-
minProperties: 1
|
|
34
|
+
firstObject: {
|
|
35
|
+
type: "object",
|
|
36
|
+
required: ["objType","identifiers"],
|
|
37
|
+
properties: {
|
|
38
|
+
objType: {
|
|
39
|
+
type: "object",
|
|
40
|
+
required: ["serviceTag","objectType"],
|
|
41
|
+
properties: {
|
|
42
|
+
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
43
|
+
objectType: izara.validatorSchema.stringNotEmpty(),
|
|
53
44
|
}
|
|
45
|
+
},
|
|
46
|
+
identifiers: {
|
|
47
|
+
type: "object",
|
|
48
|
+
minProperties: 1
|
|
54
49
|
}
|
|
55
50
|
}
|
|
56
51
|
},
|
|
52
|
+
secondObject: {
|
|
53
|
+
type: "object",
|
|
54
|
+
required: ["objType","identifiers"],
|
|
55
|
+
properties: {
|
|
56
|
+
objType: {
|
|
57
|
+
type: "object",
|
|
58
|
+
required: ["serviceTag","objectType"],
|
|
59
|
+
properties: {
|
|
60
|
+
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
61
|
+
objectType: izara.validatorSchema.stringNotEmpty(),
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
identifiers: {
|
|
65
|
+
type: "object",
|
|
66
|
+
minProperties: 1
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
57
70
|
relType: {
|
|
58
71
|
type: "object",
|
|
59
72
|
required: ["relationshipTag", "serviceTag"],
|
|
@@ -63,14 +76,18 @@ let validatorSchema = {
|
|
|
63
76
|
type: 'string',
|
|
64
77
|
pattern: "^[a-zA-Z0-9_-]+$",
|
|
65
78
|
enum: [process.env.iz_serviceTag]
|
|
66
|
-
}
|
|
79
|
+
}
|
|
67
80
|
}
|
|
68
81
|
},
|
|
69
82
|
relId: izara.validatorSchema.stringNotEmpty(),
|
|
70
83
|
relationshipProperties: {
|
|
71
|
-
type:
|
|
72
|
-
minProperties: 1
|
|
84
|
+
type: "object",
|
|
85
|
+
minProperties: 1
|
|
73
86
|
},
|
|
87
|
+
relationshipDirection: {
|
|
88
|
+
type: "string",
|
|
89
|
+
enum: ['from','to']
|
|
90
|
+
}
|
|
74
91
|
}
|
|
75
92
|
};
|
|
76
93
|
|
|
@@ -32,31 +32,44 @@ middleware.setValidatorSchema(recordHandlerSharedLib.baseValidatorSchema());
|
|
|
32
32
|
// validate event params in middleware before into function
|
|
33
33
|
let validatorSchema = {
|
|
34
34
|
type: "object",
|
|
35
|
-
required: ["
|
|
35
|
+
required: ["firstObject","secondObject", "relType", "relationshipProperties","relationshipDirection"],
|
|
36
36
|
properties: {
|
|
37
|
-
|
|
38
|
-
type: "
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
required: ["serviceTag", "objectType"],
|
|
48
|
-
properties: {
|
|
49
|
-
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
50
|
-
objectType: izara.validatorSchema.stringNotEmpty()
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
identifiers: {
|
|
54
|
-
type: "object",
|
|
55
|
-
minProperties: 1
|
|
37
|
+
firstObject: {
|
|
38
|
+
type: "object",
|
|
39
|
+
required: ["objType","identifiers"],
|
|
40
|
+
properties: {
|
|
41
|
+
objType: {
|
|
42
|
+
type: "object",
|
|
43
|
+
required: ["serviceTag","objectType"],
|
|
44
|
+
properties: {
|
|
45
|
+
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
46
|
+
objectType: izara.validatorSchema.stringNotEmpty(),
|
|
56
47
|
}
|
|
48
|
+
},
|
|
49
|
+
identifiers: {
|
|
50
|
+
type: "object",
|
|
51
|
+
minProperties: 1
|
|
57
52
|
}
|
|
58
53
|
}
|
|
59
54
|
},
|
|
55
|
+
secondObject: {
|
|
56
|
+
type: "object",
|
|
57
|
+
required: ["objType","identifiers"],
|
|
58
|
+
properties: {
|
|
59
|
+
objType: {
|
|
60
|
+
type: "object",
|
|
61
|
+
required: ["serviceTag","objectType"],
|
|
62
|
+
properties: {
|
|
63
|
+
serviceTag: izara.validatorSchema.stringNotEmpty(),
|
|
64
|
+
objectType: izara.validatorSchema.stringNotEmpty(),
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
identifiers: {
|
|
68
|
+
type: "object",
|
|
69
|
+
minProperties: 1
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
60
73
|
relType: {
|
|
61
74
|
type: "object",
|
|
62
75
|
required: ["relationshipTag", "serviceTag"],
|
|
@@ -66,14 +79,18 @@ let validatorSchema = {
|
|
|
66
79
|
type: 'string',
|
|
67
80
|
pattern: "^[a-zA-Z0-9_-]+$",
|
|
68
81
|
enum: [process.env.iz_serviceTag]
|
|
69
|
-
}
|
|
82
|
+
}
|
|
70
83
|
}
|
|
71
84
|
},
|
|
72
85
|
relId: izara.validatorSchema.stringNotEmpty(),
|
|
73
86
|
relationshipProperties: {
|
|
74
|
-
type:
|
|
75
|
-
minProperties: 1
|
|
87
|
+
type: "object",
|
|
88
|
+
minProperties: 1
|
|
76
89
|
},
|
|
90
|
+
relationshipDirection: {
|
|
91
|
+
type: "string",
|
|
92
|
+
enum: ['from','to']
|
|
93
|
+
}
|
|
77
94
|
}
|
|
78
95
|
};
|
|
79
96
|
|
|
@@ -21,30 +21,63 @@ const fs = require('fs');
|
|
|
21
21
|
|
|
22
22
|
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase } = require("../../../../MainLibs/src/Utils");
|
|
23
23
|
const { SOURCE_PATH } = require('../../libs/Consts');
|
|
24
|
-
const
|
|
24
|
+
const templateYamlPath = path.join(__dirname, "./templateYaml.ejs");
|
|
25
|
+
const templatePathIntTestPath = path.join(__dirname, "./templateIntTesting.ejs");
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
function data(_izContext, createSourceParams, srcPath) {
|
|
28
29
|
// console.log("createSourceParams in Data", createSourceParams);
|
|
29
30
|
const functionNameConfigs = new Set();
|
|
31
|
+
let createFunctionNameConfig = []
|
|
30
32
|
for (let { templatePath, templateData, setting } of createSourceParams) {
|
|
31
33
|
if (templateData.functionNameConfig !== undefined) {
|
|
32
34
|
functionNameConfigs.add(templateData.functionNameConfig)
|
|
33
35
|
}
|
|
34
36
|
}
|
|
37
|
+
let createFunctionNameConfigYaml = createFunctionNameConfigFileYaml(functionNameConfigs, srcPath);
|
|
38
|
+
let createFunctionNameConfigJs = createFunctionNameConfigFileJs(functionNameConfigs, srcPath);
|
|
39
|
+
createFunctionNameConfig.push(...createFunctionNameConfigYaml, ...createFunctionNameConfigJs)
|
|
40
|
+
return createFunctionNameConfig
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function createFunctionNameConfigFileYaml(functionNameConfigs, srcPath) {
|
|
45
|
+
let createFunctionNameConfigYaml = []
|
|
46
|
+
createFunctionNameConfigYaml.push(
|
|
47
|
+
{
|
|
48
|
+
templatePath: templateYamlPath,
|
|
49
|
+
templateData: {
|
|
50
|
+
functionNameConfigs: functionNameConfigs
|
|
51
|
+
},
|
|
52
|
+
setting: {
|
|
53
|
+
savePath: path.join(srcPath, SOURCE_PATH.appYaml),
|
|
54
|
+
saveFileName: "FunctionNameConfig",
|
|
55
|
+
fileExtension: ".yml",
|
|
56
|
+
isAppend: true
|
|
57
|
+
}
|
|
46
58
|
}
|
|
47
|
-
|
|
59
|
+
)
|
|
60
|
+
return createFunctionNameConfigYaml
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function createFunctionNameConfigFileJs(functionNameConfigs, srcPath) {
|
|
64
|
+
let createFunctionNameConfigJs = []
|
|
65
|
+
createFunctionNameConfigJs.push(
|
|
66
|
+
{
|
|
67
|
+
templatePath: templatePathIntTestPath,
|
|
68
|
+
templateData: {
|
|
69
|
+
functionNameConfigs: functionNameConfigs
|
|
70
|
+
},
|
|
71
|
+
setting: {
|
|
72
|
+
savePath: path.join(srcPath, SOURCE_PATH.externalService),
|
|
73
|
+
saveFileName: "FunctionNameConfig",
|
|
74
|
+
fileExtension: ".js",
|
|
75
|
+
isAppend: true
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return createFunctionNameConfigJs
|
|
48
81
|
}
|
|
49
82
|
|
|
50
83
|
module.exports = data;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (C) 2020 Sven Mason <http://izara.io>
|
|
3
|
+
|
|
4
|
+
This program is free software: you can redistribute it and/or modify
|
|
5
|
+
it under the terms of the GNU Affero General Public License as
|
|
6
|
+
published by the Free Software Foundation, either version 3 of the
|
|
7
|
+
License, or (at your option) any later version.
|
|
8
|
+
|
|
9
|
+
This program is distributed in the hope that it will be useful,
|
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
GNU Affero General Public License for more details.
|
|
13
|
+
|
|
14
|
+
You should have received a copy of the GNU Affero General Public License
|
|
15
|
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
'use strict';
|
|
19
|
+
|
|
20
|
+
module.exports.generatedIntTestFunctionNameConfig = () => {
|
|
21
|
+
let functionNameConfigIntTest = [
|
|
22
|
+
<% functionNameConfigs.forEach(functionNameConfig => { _%>
|
|
23
|
+
"<%- firstLetterUpperCase(functionNameConfig) %>",
|
|
24
|
+
<% }) _%>
|
|
25
|
+
]
|
|
26
|
+
return functionNameConfigIntTest
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
<%_function firstLetterUpperCase(text) {
|
|
30
|
+
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
31
|
+
} %>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# for createIamRole
|
|
2
|
+
|
|
3
|
+
<% functionNameConfigs.forEach(functionNameConfig => { _%>
|
|
4
|
+
- ${self:custom.iz_prefixIamRole}<%- firstLetterUpperCase(functionNameConfig) %>${self:custom.iz_suffixIamRole}
|
|
5
|
+
<% }) _%>
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<%_function firstLetterUpperCase(text) {
|
|
9
|
+
return text.charAt(0).toUpperCase() + text.slice(1)
|
|
10
|
+
} %>
|
|
@@ -20,7 +20,9 @@ const path = require('path');
|
|
|
20
20
|
const fs = require('fs');
|
|
21
21
|
|
|
22
22
|
const { ACTIONS, HANDLER, STORAGE_TYPES } = require('@izara_project/izara-core-library-service-schemas/src/Consts')
|
|
23
|
-
const { getGraphServiceNameFromGraphServerTagWithCache
|
|
23
|
+
const { getGraphServiceNameFromGraphServerTagWithCache,
|
|
24
|
+
getGraphServiceTagWithCache
|
|
25
|
+
} = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
|
|
24
26
|
|
|
25
27
|
const { firstLetterLowerCase: lowerCase, firstLetterUpperCase: upperCase, renameObjectType } = require("../../../../MainLibs/src/Utils")
|
|
26
28
|
const {
|
|
@@ -87,15 +89,12 @@ const createExternalLambdaRole = async (_izContext, allObjSchemas, allRelSchemas
|
|
|
87
89
|
|
|
88
90
|
// ... another external lambda role data
|
|
89
91
|
|
|
90
|
-
//
|
|
91
|
-
const externalLambdaIamRoleTranslateId = await externalLambdaIamRoleDataTranslateId(_izContext, allRelSchemas, allObjSchemas)
|
|
92
|
-
externalLambdaIamRoleTranslateId && externalLambdaIamRoleArray.push(externalLambdaIamRoleTranslateId)
|
|
93
|
-
|
|
92
|
+
// ProcessLogical
|
|
94
93
|
const externalLambdaIamRoleProcessLogical = await externalLambdaIamRoleDataProcessLogical(_izContext, allObjSchemas);
|
|
95
94
|
externalLambdaIamRoleProcessLogical && externalLambdaIamRoleArray.push(externalLambdaIamRoleProcessLogical)
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
console.log("externalLambdaIamRoleArray", externalLambdaIamRoleArray)
|
|
99
98
|
// console.log("createSourceArrayIamRole", JSON.stringify(externalLambdaIamRoleArray))
|
|
100
99
|
// return externalLambdaIamRoleArray
|
|
101
100
|
|
|
@@ -117,7 +116,7 @@ async function externalLambdaIamRoleDataPerAction(_izContext, objectSchema, acti
|
|
|
117
116
|
const graphServiceNames = [];
|
|
118
117
|
for (const storgaeResource of Object.values(objectSchema.storageResources)) {
|
|
119
118
|
if (storgaeResource.storageType === STORAGE_TYPES.graph) {
|
|
120
|
-
let getGraphServiceName = await
|
|
119
|
+
let getGraphServiceName = await getGraphServiceTagWithCache(_izContext, storgaeResource.graphServerTag)
|
|
121
120
|
if (!graphServiceNames.includes(getGraphServiceName)) {
|
|
122
121
|
getGraphServiceName && graphServiceNames.push(getGraphServiceName)
|
|
123
122
|
}
|
|
@@ -241,52 +240,17 @@ async function externalLambdaIamRoleDataCreateRelationshipSchema(_izContext, all
|
|
|
241
240
|
|
|
242
241
|
// delete Relationship
|
|
243
242
|
async function externalLambdaIamRoleDataDeleteRelationshipSchema(_izContext, allRelSchemas, handler) {
|
|
244
|
-
|
|
245
|
-
// const additionalResourcePermission = [];
|
|
246
|
-
// const graphServiceNamesFromAllRelSchemas = await getGraphServiceNameFromAllRelSchema(_izContext, allRelSchemas);
|
|
247
|
-
|
|
248
|
-
// additionalResourcePermission.push(
|
|
249
|
-
// createIamRole(
|
|
250
|
-
// {
|
|
251
|
-
// [RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish]
|
|
252
|
-
// },
|
|
253
|
-
// graphServiceNamesFromAllRelSchemas.map(graphServiceName =>
|
|
254
|
-
// externalResourceSns("InDeleteRelationship", graphServiceName)
|
|
255
|
-
// )
|
|
256
|
-
// )
|
|
257
|
-
// )
|
|
258
|
-
// return {
|
|
259
|
-
// functionName,
|
|
260
|
-
// additionalResourcePermission
|
|
261
|
-
// }
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// Process TranslateIds Request
|
|
265
|
-
async function externalLambdaIamRoleDataTranslateId(_izContext, allRelSchemas, allObjSchemas) {
|
|
266
|
-
let functionName = upperCase(SHORT_FUNCTION_NAME.translateIdsProcess) + upperCase(shortNameHandler(HANDLER.hdrDsq));
|
|
243
|
+
const functionName = upperCase(SHORT_FUNCTION_NAME.deleteRel) + upperCase(shortNameHandler(handler))
|
|
267
244
|
const additionalResourcePermission = [];
|
|
268
245
|
const graphServiceNamesFromAllRelSchemas = await getGraphServiceNameFromAllRelSchema(_izContext, allRelSchemas);
|
|
269
|
-
let complexFilterServiceTags = getComplexFilterServiceTag(allObjSchemas);
|
|
270
246
|
|
|
271
247
|
additionalResourcePermission.push(
|
|
272
248
|
createIamRole(
|
|
273
249
|
{
|
|
274
|
-
[RESOURCE_CLASSES.
|
|
275
|
-
},
|
|
276
|
-
graphServiceNamesFromAllRelSchemas.map(graphServiceName => (
|
|
277
|
-
externalResourceName(RESOURCE_CLASSES.lambda, "GetNodeAndRelationshipsV2HdrInv", graphServiceName)
|
|
278
|
-
)
|
|
279
|
-
)
|
|
280
|
-
)
|
|
281
|
-
)
|
|
282
|
-
additionalResourcePermission.push(
|
|
283
|
-
createIamRole(
|
|
284
|
-
{
|
|
285
|
-
[RESOURCE_CLASSES.dynamoDbTable]: [DYNAMO_RESOURCE.query]
|
|
250
|
+
[RESOURCE_CLASSES.sns]: [SNS_RESOURCE.publish]
|
|
286
251
|
},
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
)
|
|
252
|
+
graphServiceNamesFromAllRelSchemas.map(graphServiceName =>
|
|
253
|
+
externalResourceSns("InDeleteRelationship", graphServiceName)
|
|
290
254
|
)
|
|
291
255
|
)
|
|
292
256
|
)
|
|
@@ -23,7 +23,7 @@ const {
|
|
|
23
23
|
STORAGE_TYPES
|
|
24
24
|
} = require('@izara_project/izara-core-library-service-schemas/src/Consts');
|
|
25
25
|
|
|
26
|
-
const { getGraphServiceNameFromGraphServerTagWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig');
|
|
26
|
+
const { getGraphServiceNameFromGraphServerTagWithCache, getGraphServiceTagWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig');
|
|
27
27
|
|
|
28
28
|
const DEFAULT_HANDLER_PER_ACTION = {
|
|
29
29
|
[ACTIONS.create]: [HANDLER.hdrApi, HANDLER.hdrSqs],
|
|
@@ -219,7 +219,7 @@ const getGraphServiceNameFromAllRelSchema = async (_izContext, allRelSchemas) =>
|
|
|
219
219
|
|
|
220
220
|
await Promise.all(Object.values(relSchemaData.storageResources).map(async storageResource => {
|
|
221
221
|
if (storageResource.storageType === STORAGE_TYPES.graph) {
|
|
222
|
-
const getGraphServiceName = await
|
|
222
|
+
const getGraphServiceName = await getGraphServiceTagWithCache(_izContext, storageResource.graphServerTag);
|
|
223
223
|
graphServiceNameSet.add(getGraphServiceName)
|
|
224
224
|
}
|
|
225
225
|
}))
|
|
@@ -272,7 +272,7 @@ async function getGraphServiceNameFromObjectSchema(_izContext, allObjSchemas) {
|
|
|
272
272
|
for (const objectSchema of allObjSchemas) {
|
|
273
273
|
for (let storageResource of Object.values(objectSchema.storageResources)) {
|
|
274
274
|
if (storageResource.storageType === STORAGE_TYPES.graph) {
|
|
275
|
-
let getGraphServiceName = await
|
|
275
|
+
let getGraphServiceName = await getGraphServiceTagWithCache(_izContext, storageResource.graphServerTag)
|
|
276
276
|
graphServiceName.add(getGraphServiceName)
|
|
277
277
|
}
|
|
278
278
|
}
|