@finos/legend-extension-dsl-data-space 10.4.4 → 10.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.d.ts.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +4 -3
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilder.js +20 -6
- package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.d.ts +3 -0
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.js +4 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.js.map +1 -1
- package/lib/graph-manager/index.d.ts +1 -0
- package/lib/graph-manager/index.d.ts.map +1 -1
- package/lib/graph-manager/index.js +1 -0
- package/lib/graph-manager/index.js.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.d.ts +6 -2
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts +17 -3
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +219 -48
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts +5 -11
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js +19 -30
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -1
- package/package.json +9 -9
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +6 -8
- package/src/components/query-builder/DataSpaceQueryBuilder.tsx +40 -9
- package/src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +1 -1
- package/src/graph-manager/action/analytics/DataSpaceAnalysisHelper.ts +14 -1
- package/src/graph-manager/index.ts +4 -0
- package/src/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts +24 -3
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +439 -72
- package/src/stores/query-builder/DataSpaceQueryBuilderState.ts +32 -40
@@ -13,14 +13,16 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import { PureModel, V1_PureGraphManager, PureClientVersion, CoreModel, SystemModel, V1_Mapping, resolvePackagePathAndElementName, V1_PureModelContextType, V1_PackageableRuntime, V1_EngineRuntime, V1_Class, GRAPH_MANAGER_EVENT, V1_buildDatasetSpecification, V1_buildModelCoverageAnalysisResult, V1_deserializePackageableElement, QueryDataSpaceExecutionContextInfo, V1_RemoteEngine, } from '@finos/legend-graph';
|
16
|
+
import { PureModel, V1_PureGraphManager, PureClientVersion, CoreModel, SystemModel, V1_Mapping, resolvePackagePathAndElementName, V1_PureModelContextType, V1_PackageableRuntime, V1_EngineRuntime, V1_Class, GRAPH_MANAGER_EVENT, V1_buildDatasetSpecification, V1_buildModelCoverageAnalysisResult, V1_deserializePackageableElement, QueryDataSpaceExecutionContextInfo, V1_RemoteEngine, LegendSDLC, PackageableElementPointerType, V1_PackageableElementPointer, V1_ConcreteFunctionDefinition, V1_buildFunctionInfoAnalysis, GraphBuilderError, V1_MappingAnalysisCoveragePartition, V1_deserializeDataspaceCoveragePartition, V1_MappingModelCoveragePartition, } from '@finos/legend-graph';
|
17
17
|
import { ActionState, assertErrorThrown, filterByType, guaranteeNonEmptyString, guaranteeNonNullable, guaranteeType, isNonNullable, LogEvent, uniq, } from '@finos/legend-shared';
|
18
18
|
import { DataSpaceSupportCombinedInfo, DataSpaceSupportEmail, } from '../../../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
19
|
-
import { V1_DataSpace, V1_DataSpaceSupportCombinedInfo, V1_DataSpaceSupportEmail, V1_DataSpaceTemplateExecutable, } from '../../../../graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js';
|
19
|
+
import { V1_DataSpace, V1_DataSpaceExecutionContext, V1_DataSpaceSupportCombinedInfo, V1_DataSpaceSupportEmail, V1_DataSpaceTemplateExecutable, } from '../../../../graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js';
|
20
20
|
import { DataSpaceAnalysisResult, DataSpaceDiagramAnalysisResult, NormalizedDataSpaceDocumentationEntry, DataSpaceExecutableAnalysisResult, DataSpaceExecutableTDSResultColumn, DataSpaceExecutableTDSResult, DataSpaceExecutionContextAnalysisResult, DataSpaceServiceExecutableInfo, DataSpaceStereotypeInfo, DataSpaceTaggedValueInfo, DataSpaceClassDocumentationEntry, DataSpacePropertyDocumentationEntry, DataSpaceEnumerationDocumentationEntry, DataSpaceBasicDocumentationEntry, DataSpaceAssociationDocumentationEntry, DataSpaceMultiExecutionServiceExecutableInfo, DataSpaceMultiExecutionServiceKeyedExecutableInfo, DataSpaceTemplateExecutableInfo, DataSpaceFunctionPointerExecutableInfo, DataSpaceExecutionContextRuntimeMetadata, } from '../../../action/analytics/DataSpaceAnalysis.js';
|
21
21
|
import { DSL_DataSpace_PureGraphManagerExtension } from '../DSL_DataSpace_PureGraphManagerExtension.js';
|
22
22
|
import { V1_DataSpaceAssociationDocumentationEntry, V1_DataSpaceClassDocumentationEntry, V1_DataSpaceEnumerationDocumentationEntry, V1_DataSpaceExecutableTDSResult, V1_DataSpaceServiceExecutableInfo, V1_deserializeDataSpaceAnalysisResult, V1_DataSpaceMultiExecutionServiceExecutableInfo, V1_DataSpaceTemplateExecutableInfo, V1_DataSpaceFunctionPointerExecutableInfo, } from './engine/analytics/V1_DataSpaceAnalysis.js';
|
23
23
|
import { getDiagram } from '@finos/legend-extension-dsl-diagram/graph';
|
24
|
+
import { resolveVersion } from '@finos/legend-server-depot';
|
25
|
+
import { DATASPACE_ANALYTICS_FILE_NAME } from '../../../action/analytics/DataSpaceAnalysisHelper.js';
|
24
26
|
const ANALYZE_DATA_SPACE_TRACE = 'analyze data space';
|
25
27
|
const TEMPORARY__TDS_SAMPLE_VALUES__DELIMETER = '-- e.g.';
|
26
28
|
export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_PureGraphManagerExtension {
|
@@ -89,6 +91,57 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
89
91
|
}
|
90
92
|
return this.buildDataSpaceAnalytics(analysisResult, this.graphManager.pluginManager.getPureProtocolProcessorPlugins());
|
91
93
|
}
|
94
|
+
retrieveDataSpaceAnalysisFromFileGeneration = (fileGeneration) => {
|
95
|
+
const fileContent = fileGeneration.find((fileGen) => fileGen.file.path.includes(DATASPACE_ANALYTICS_FILE_NAME))?.file.content;
|
96
|
+
return fileContent ? JSON.parse(fileContent) : undefined;
|
97
|
+
};
|
98
|
+
retrieveExecutionContextFromTemplateQueryId(dataSpaceAnalysisResult, templateQueryId, plugins) {
|
99
|
+
const analysisResult = V1_deserializeDataSpaceAnalysisResult(dataSpaceAnalysisResult, plugins);
|
100
|
+
let execContext = undefined;
|
101
|
+
const info = analysisResult.executables.find((ex) => ex.info?.id === templateQueryId)?.info;
|
102
|
+
if (info) {
|
103
|
+
execContext =
|
104
|
+
info.executionContextKey ?? analysisResult.defaultExecutionContext;
|
105
|
+
}
|
106
|
+
return execContext;
|
107
|
+
}
|
108
|
+
async analyzeDataSpaceCoverage(dataSpacePath, entitiesWithClassifierRetriever, cacheRetriever, actionState, graphReport, pureGraph, executionContext, mappingPath, projectInfo, templateQueryId) {
|
109
|
+
// reterieve data space artifacts (more than one file) from cache
|
110
|
+
const dataspaceArtifacts = cacheRetriever
|
111
|
+
? (await this.fetchDataSpaceArtifactsFromCache(cacheRetriever, actionState)).filter((artifact) => artifact.path === dataSpacePath)
|
112
|
+
: undefined;
|
113
|
+
let analysisResult;
|
114
|
+
let cachedAnalysisResult;
|
115
|
+
let mappingAnalysisCoveragePartition = [];
|
116
|
+
let mappingModelCoveragePartition = [];
|
117
|
+
// build the data space analytics result from the file generation
|
118
|
+
const result = this.retrieveDataSpaceAnalysisFromFileGeneration(dataspaceArtifacts);
|
119
|
+
if (result) {
|
120
|
+
cachedAnalysisResult = V1_deserializeDataSpaceAnalysisResult(result, this.graphManager.pluginManager.getPureProtocolProcessorPlugins());
|
121
|
+
}
|
122
|
+
// retrieve mapping analysis coverage partition and mapping model coverage partition
|
123
|
+
const dataspaceCoveragePartition = dataspaceArtifacts?.map((artifact) => V1_deserializeDataspaceCoveragePartition(artifact.file));
|
124
|
+
if (dataspaceCoveragePartition) {
|
125
|
+
mappingAnalysisCoveragePartition = dataspaceCoveragePartition.filter((partition) => partition instanceof V1_MappingAnalysisCoveragePartition);
|
126
|
+
mappingModelCoveragePartition = dataspaceCoveragePartition.filter((partition) => partition instanceof V1_MappingModelCoveragePartition);
|
127
|
+
}
|
128
|
+
// when trying to build a minimal graph, we need to make sure that there is associated mapping model coverage
|
129
|
+
// for every mapping in the data space analytics result otherwise we will have to build the full graph
|
130
|
+
if (result &&
|
131
|
+
cachedAnalysisResult?.executionContexts.every((e) => mappingModelCoveragePartition.find((p) => p.mapping === e.mapping)
|
132
|
+
?.model !== undefined)) {
|
133
|
+
analysisResult = result;
|
134
|
+
}
|
135
|
+
else {
|
136
|
+
throw new GraphBuilderError('Fail to get a valid dataspace analytics json from metadata, start building full graph');
|
137
|
+
}
|
138
|
+
const plugins = this.graphManager.pluginManager.getPureProtocolProcessorPlugins();
|
139
|
+
return this.buildDataSpaceAnalytics(analysisResult, plugins, true, mappingAnalysisCoveragePartition, mappingModelCoveragePartition, graphReport, pureGraph, executionContext
|
140
|
+
? executionContext
|
141
|
+
: templateQueryId
|
142
|
+
? this.retrieveExecutionContextFromTemplateQueryId(analysisResult, templateQueryId, plugins)
|
143
|
+
: undefined, mappingPath, projectInfo, entitiesWithClassifierRetriever);
|
144
|
+
}
|
92
145
|
async retrieveDataSpaceAnalysisFromCache(cacheRetriever, actionState) {
|
93
146
|
const cacheResult = await this.fetchDataSpaceAnalysisFromCache(cacheRetriever, actionState);
|
94
147
|
return cacheResult
|
@@ -107,8 +160,52 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
107
160
|
}
|
108
161
|
return cacheResult;
|
109
162
|
}
|
110
|
-
async
|
111
|
-
|
163
|
+
async fetchDataSpaceArtifactsFromCache(cacheRetriever, actionState) {
|
164
|
+
let cacheResult = [];
|
165
|
+
try {
|
166
|
+
actionState?.setMessage('Fetching data space artifacts from cache...');
|
167
|
+
cacheResult = await cacheRetriever();
|
168
|
+
}
|
169
|
+
catch (error) {
|
170
|
+
assertErrorThrown(error);
|
171
|
+
this.graphManager.logService.warn(LogEvent.create(GRAPH_MANAGER_EVENT.CACHE_MANAGER_FAILURE), `Can't fetch data space artifacts cache: ${error.message}`);
|
172
|
+
}
|
173
|
+
return cacheResult;
|
174
|
+
}
|
175
|
+
// build function analysis info by fetching functions within this project from metadata when building minimal graph
|
176
|
+
async processFunctionForMinimalGraph(entitiesWithClassifierRetriever, graph, dataSpaceAnalysisResult, plugins) {
|
177
|
+
const [functionEntities, dependencyFunctionEntities] = await entitiesWithClassifierRetriever();
|
178
|
+
const functionProtocols = functionEntities.map((func) => guaranteeType(V1_deserializePackageableElement(func.entity.content, plugins), V1_ConcreteFunctionDefinition));
|
179
|
+
const dependencyFunctionProtocols = dependencyFunctionEntities.map((func) => guaranteeType(V1_deserializePackageableElement(func.entity.content, plugins), V1_ConcreteFunctionDefinition));
|
180
|
+
const functionInfos = V1_buildFunctionInfoAnalysis(functionProtocols, graph);
|
181
|
+
const dependencyFunctionInfos = V1_buildFunctionInfoAnalysis(dependencyFunctionProtocols, graph);
|
182
|
+
if (functionInfos.length > 0) {
|
183
|
+
const functionInfoMap = new Map();
|
184
|
+
functionInfos.forEach((funcInfo) => {
|
185
|
+
functionInfoMap.set(funcInfo.functionPath, funcInfo);
|
186
|
+
});
|
187
|
+
dataSpaceAnalysisResult.functionInfos = functionInfoMap;
|
188
|
+
}
|
189
|
+
if (dependencyFunctionInfos.length > 0) {
|
190
|
+
const dependencyFunctionInfoMap = new Map();
|
191
|
+
functionInfos.forEach((funcInfo) => {
|
192
|
+
dependencyFunctionInfoMap.set(funcInfo.functionPath, funcInfo);
|
193
|
+
});
|
194
|
+
dataSpaceAnalysisResult.dependencyFunctionInfos =
|
195
|
+
dependencyFunctionInfoMap;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
async buildDataSpaceAnalytics(analytics, plugins, buildMinimalGraph = false, mappingAnalysisCoveragePartition = [], mappingModelCoveragePartition = [], graphReport, pureGraph, executionContext, mappingPath, projectInfo, entitiesWithClassifierRetriever) {
|
199
|
+
const analysisResult = V1_deserializeDataSpaceAnalysisResult(analytics, plugins);
|
200
|
+
// build map to quick access mapping analysis coverage partition and mapping model coverage partition
|
201
|
+
const mappingAnalysisCoveragePartitionMap = new Map();
|
202
|
+
mappingAnalysisCoveragePartition.forEach((partition) => {
|
203
|
+
mappingAnalysisCoveragePartitionMap.set(partition.mapping, partition);
|
204
|
+
});
|
205
|
+
const mappingModelCoveragePartitionMap = new Map();
|
206
|
+
mappingModelCoveragePartition.forEach((partition) => {
|
207
|
+
mappingModelCoveragePartitionMap.set(partition.mapping, partition);
|
208
|
+
});
|
112
209
|
const result = new DataSpaceAnalysisResult();
|
113
210
|
result.name = analysisResult.name;
|
114
211
|
result.package = analysisResult.package;
|
@@ -148,12 +245,22 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
148
245
|
}
|
149
246
|
// NOTE: we will relax the check and not throw here for unknown support info type
|
150
247
|
}
|
151
|
-
//
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
248
|
+
// indicate if the minimal graph building is successful
|
249
|
+
let isMiniGraphSuccess = false;
|
250
|
+
let graphEntities;
|
251
|
+
let graph;
|
252
|
+
if (pureGraph) {
|
253
|
+
graph = pureGraph;
|
254
|
+
}
|
255
|
+
else {
|
256
|
+
// create an empty graph
|
257
|
+
const extensionElementClasses = this.graphManager.pluginManager.getPureGraphPlugins();
|
258
|
+
const systemModel = new SystemModel(extensionElementClasses);
|
259
|
+
const coreModel = new CoreModel(extensionElementClasses);
|
260
|
+
await this.graphManager.buildSystem(coreModel, systemModel, ActionState.create(), {});
|
261
|
+
systemModel.initializeAutoImports();
|
262
|
+
graph = new PureModel(coreModel, systemModel, this.graphManager.pluginManager.getPureGraphPlugins());
|
263
|
+
}
|
157
264
|
// Create dummy mappings and runtimes
|
158
265
|
// TODO?: these stubbed mappings and runtimes are not really useful that useful, so either we should
|
159
266
|
// simplify the model here or potentially refactor the backend analytics endpoint to return these as model
|
@@ -174,49 +281,113 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
174
281
|
runtime.runtimeValue = new V1_EngineRuntime();
|
175
282
|
return runtime;
|
176
283
|
});
|
177
|
-
//
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
284
|
+
// The DataSpace entity is excluded from AnalyticsResult.Json to reduce the JSON size
|
285
|
+
// because all its information can be found in V1_DataSpaceAnalysisResult.
|
286
|
+
// Therefore, we are building a simple v1_DataSpace entity based on V1_DataSpaceAnalysisResult.
|
287
|
+
const dataspaceEntity = new V1_DataSpace();
|
288
|
+
dataspaceEntity.name = analysisResult.name;
|
289
|
+
dataspaceEntity.package = analysisResult.package;
|
290
|
+
dataspaceEntity.supportInfo = analysisResult.supportInfo;
|
291
|
+
dataspaceEntity.executionContexts = analysisResult.executionContexts.map((execContext) => {
|
292
|
+
const contextProtocol = new V1_DataSpaceExecutionContext();
|
293
|
+
contextProtocol.name = execContext.name;
|
294
|
+
contextProtocol.title = execContext.title;
|
295
|
+
contextProtocol.description = execContext.description;
|
296
|
+
contextProtocol.mapping = new V1_PackageableElementPointer(PackageableElementPointerType.MAPPING, execContext.mapping);
|
297
|
+
contextProtocol.defaultRuntime = new V1_PackageableElementPointer(PackageableElementPointerType.RUNTIME, execContext.defaultRuntime);
|
298
|
+
return contextProtocol;
|
299
|
+
});
|
300
|
+
dataspaceEntity.defaultExecutionContext =
|
301
|
+
analysisResult.defaultExecutionContext;
|
302
|
+
dataspaceEntity.title = analysisResult.title;
|
303
|
+
dataspaceEntity.description = analysisResult.description;
|
304
|
+
// fetch the PMCD based on the resolved mapping path
|
305
|
+
const resolvedMappingPath = mappingPath ??
|
306
|
+
analysisResult.executionContexts.find((value) => value.name ===
|
307
|
+
(executionContext ?? analysisResult.defaultExecutionContext))?.mapping;
|
308
|
+
let pmcd;
|
309
|
+
if (resolvedMappingPath) {
|
310
|
+
const mappingModelCoverageAnalysisResult = mappingModelCoveragePartitionMap.get(resolvedMappingPath);
|
311
|
+
pmcd = mappingModelCoverageAnalysisResult?.model;
|
312
|
+
}
|
313
|
+
// if there is a PMCD saved in metadata, we can build a minimal graph
|
314
|
+
if (pmcd && projectInfo) {
|
315
|
+
graphEntities = pmcd.elements
|
316
|
+
.concat(mappingModels)
|
317
|
+
.concat(runtimeModels)
|
318
|
+
.concat(dataspaceEntity)
|
319
|
+
// NOTE: if an element could be found in the graph already it means it comes from system
|
320
|
+
// so we could rid of it
|
321
|
+
.filter((el) => !graph.getNullableElement(el.path, false))
|
322
|
+
.map((el) => this.graphManager.elementProtocolToEntity(el));
|
323
|
+
await this.graphManager.buildGraph(graph, graphEntities, ActionState.create(), {
|
324
|
+
origin: new LegendSDLC(projectInfo.groupId, projectInfo.artifactId, resolveVersion(projectInfo.versionId)),
|
325
|
+
}, graphReport);
|
326
|
+
// build extra function analysis info
|
327
|
+
if (entitiesWithClassifierRetriever) {
|
328
|
+
try {
|
329
|
+
await this.processFunctionForMinimalGraph(entitiesWithClassifierRetriever, graph, result, plugins);
|
330
|
+
}
|
331
|
+
catch {
|
332
|
+
//do nothing
|
333
|
+
}
|
188
334
|
}
|
189
|
-
|
190
|
-
}
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
335
|
+
isMiniGraphSuccess = true;
|
336
|
+
}
|
337
|
+
else {
|
338
|
+
const elements = analysisResult.model.elements
|
339
|
+
// NOTE: this is a temporary hack to fix a problem with data space analytics
|
340
|
+
// where the classes for properties are not properly surveyed
|
341
|
+
// We need to wait for the actual fix in backend to be merged and released
|
342
|
+
// See https://github.com/finos/legend-engine/pull/836
|
343
|
+
.concat(uniq(analysisResult.model.elements.flatMap((element) => {
|
344
|
+
if (element instanceof V1_Class) {
|
345
|
+
return element.derivedProperties
|
346
|
+
.map((prop) => prop.returnType)
|
347
|
+
.concat(element.properties.map((prop) => prop.type));
|
348
|
+
}
|
349
|
+
return [];
|
350
|
+
}))
|
351
|
+
// make sure to not include types already returned by the analysis
|
352
|
+
.filter((path) => !analysisResult.model.elements
|
353
|
+
.map((el) => el.path)
|
354
|
+
.includes(path))
|
355
|
+
.map((path) => {
|
356
|
+
const [pkgPath, name] = resolvePackagePathAndElementName(path);
|
357
|
+
if (!pkgPath) {
|
358
|
+
// exclude package-less elements (i.e. primitive types)
|
359
|
+
return undefined;
|
360
|
+
}
|
361
|
+
const _class = new V1_Class();
|
362
|
+
_class.name = name;
|
363
|
+
_class.package = pkgPath;
|
364
|
+
return _class;
|
365
|
+
})
|
366
|
+
.filter(isNonNullable))
|
367
|
+
.concat(mappingModels)
|
368
|
+
.concat(runtimeModels);
|
369
|
+
const alreadyContainsDataspace = elements.find((e) => e.path === dataspaceEntity.path);
|
370
|
+
let allElements = elements;
|
371
|
+
if (!alreadyContainsDataspace) {
|
372
|
+
allElements = elements.concat(dataspaceEntity);
|
200
373
|
}
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
.
|
208
|
-
|
209
|
-
// NOTE: if an element could be found in the graph already it means it comes from system
|
210
|
-
// so we could rid of it
|
211
|
-
.filter((el) => !graph.getNullableElement(el.path, false))
|
212
|
-
.map((el) => this.graphManager.elementProtocolToEntity(el));
|
213
|
-
await this.graphManager.buildGraph(graph, graphEntities, ActionState.create());
|
374
|
+
// prepare the model context data
|
375
|
+
graphEntities = allElements
|
376
|
+
// NOTE: if an element could be found in the graph already it means it comes from system
|
377
|
+
// so we could rid of it
|
378
|
+
.filter((el) => !graph.getNullableElement(el.path, false))
|
379
|
+
.map((el) => this.graphManager.elementProtocolToEntity(el));
|
380
|
+
await this.graphManager.buildGraph(graph, graphEntities, ActionState.create());
|
381
|
+
}
|
214
382
|
const mappingToMappingCoverageResult = new Map();
|
215
383
|
if (analysisResult.mappingToMappingCoverageResult) {
|
216
384
|
Array.from(analysisResult.mappingToMappingCoverageResult).forEach(([key, value]) => {
|
217
|
-
mappingToMappingCoverageResult.set(key, V1_buildModelCoverageAnalysisResult(value, graph.getMapping(key)));
|
385
|
+
mappingToMappingCoverageResult.set(key, V1_buildModelCoverageAnalysisResult(value, this.graphManager, graph.getMapping(key), mappingModelCoveragePartitionMap.get(key)?.model));
|
218
386
|
});
|
219
387
|
}
|
388
|
+
mappingAnalysisCoveragePartition.forEach((partition) => {
|
389
|
+
mappingToMappingCoverageResult.set(partition.mapping, V1_buildModelCoverageAnalysisResult(partition.analysisResult, this.graphManager, graph.getMapping(partition.mapping), mappingModelCoveragePartitionMap.get(partition.mapping)?.model));
|
390
|
+
});
|
220
391
|
// execution context
|
221
392
|
result.executionContextsIndex = new Map();
|
222
393
|
analysisResult.executionContexts.forEach((context) => {
|
@@ -241,7 +412,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
241
412
|
}
|
242
413
|
// for handling deprecated mappingModelCoverageAnalysisResult
|
243
414
|
if (context.mappingModelCoverageAnalysisResult) {
|
244
|
-
mappingToMappingCoverageResult.set(context.mapping, V1_buildModelCoverageAnalysisResult(context.mappingModelCoverageAnalysisResult, contextAnalysisResult.mapping));
|
415
|
+
mappingToMappingCoverageResult.set(context.mapping, V1_buildModelCoverageAnalysisResult(context.mappingModelCoverageAnalysisResult, this.graphManager, contextAnalysisResult.mapping, mappingModelCoveragePartitionMap.get(context.mapping)?.model));
|
245
416
|
}
|
246
417
|
contextAnalysisResult.compatibleRuntimes = context.compatibleRuntimes.map((runtime) => graph.getRuntime(runtime));
|
247
418
|
contextAnalysisResult.datasets = context.datasets.map((dataset) => V1_buildDatasetSpecification(dataset, plugins));
|
@@ -307,7 +478,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
307
478
|
return entries;
|
308
479
|
});
|
309
480
|
// diagrams
|
310
|
-
result.diagrams = analysisResult.diagrams.map((diagramProtocol) => {
|
481
|
+
result.diagrams = (buildMinimalGraph && isMiniGraphSuccess ? [] : analysisResult.diagrams).map((diagramProtocol) => {
|
311
482
|
const diagram = new DataSpaceDiagramAnalysisResult();
|
312
483
|
diagram.title = diagramProtocol.title;
|
313
484
|
diagram.description = diagramProtocol.description;
|
package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAKL,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,UAAU,EACV,gCAAgC,EAChC,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,4BAA4B,EAC5B,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,iGAAiG,CAAC;AACzG,OAAO,EACL,YAAY,EACZ,+BAA+B,EAC/B,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,8GAA8G,CAAC;AACtH,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,qCAAqC,EACrC,iCAAiC,EACjC,kCAAkC,EAClC,4BAA4B,EAC5B,uCAAuC,EACvC,8BAA8B,EAC9B,uBAAuB,EACvB,wBAAwB,EACxB,gCAAgC,EAChC,mCAAmC,EACnC,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,4CAA4C,EAC5C,iDAAiD,EACjD,+BAA+B,EAC/B,sCAAsC,EACtC,wCAAwC,GACzC,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EAEL,yCAAyC,EACzC,mCAAmC,EACnC,yCAAyC,EACzC,+BAA+B,EAC/B,iC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AM,CAAC,OAAO,CAAC,GAAG,CACvD,CAAC,SAAS,EAAE,EAAE;oBACZ,MAAM,MAAM,GAAG,IAAI,kCAAkC,EAAE,CAAC;oBACxD,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;oBAC7B,MAAM,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;oBAC7B,MAAM,CAAC,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC;oBACjD,MAAM,CAAC,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;oBAC/C,IACE,SAAS,CAAC,aAAa,EAAE,QAAQ,CAC/B,uCAAuC,CACxC,EACD,CAAC;wBACD,MAAM,CAAC,aAAa,GAAG,SAAS,CAAC,aAAa;6BAC3C,SAAS,CACR,CAAC,EACD,SAAS,CAAC,aAAa,CAAC,OAAO,CAC7B,uCAAuC,CACxC,CACF;6BACA,IAAI,EAAE,CAAC;wBACV,MAAM,CAAC,YAAY,GAAG,SAAS,CAAC,aAAa;6BAC1C,SAAS,CACR,SAAS,CAAC,aAAa,CAAC,OAAO,CAC7B,uCAAuC,CACxC,GAAG,uCAAuC,CAAC,MAAM,CACnD;6BACA,IAAI,EAAE,CAAC;oBACZ,CAAC;oBACD,OAAO,MAAM,CAAC;gBAChB,CAAC,CACF,CAAC;gBACF,UAAU,CAAC,MAAM,GAAG,SAAS,CAAC;YAChC,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC,CACF,CAAC;QAEF,MAAM,CAAC,8BAA8B,GAAG,8BAA8B,CAAC;QAEvE,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
1
|
+
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EACjB,SAA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ancedSearchSt
|
|
23
23
|
import { type DataSpaceAnalysisResult, type DataSpaceExecutableAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
24
24
|
import { type DataSpaceInfo } from '../shared/DataSpaceInfo.js';
|
25
25
|
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
26
|
-
export declare const resolveUsableDataSpaceClasses: (dataSpace: DataSpace, mapping: Mapping, graphManagerState: GraphManagerState) => Class[];
|
26
|
+
export declare const resolveUsableDataSpaceClasses: (dataSpace: DataSpace, mapping: Mapping, graphManagerState: GraphManagerState, queryBuilderState?: DataSpaceQueryBuilderState) => Class[];
|
27
27
|
export interface DataSpaceQuerySDLC extends QuerySDLC {
|
28
28
|
groupId: string;
|
29
29
|
artifactId: string;
|
@@ -63,7 +63,7 @@ export declare class DataSpacesDepotRepository extends DataSpacesBuilderRepoisto
|
|
63
63
|
loadDataSpaces(): GeneratorFn<void>;
|
64
64
|
}
|
65
65
|
export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
|
66
|
-
readonly onDataSpaceChange: (val: DataSpaceInfo) => void
|
66
|
+
readonly onDataSpaceChange: (val: DataSpaceInfo) => Promise<void>;
|
67
67
|
readonly onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined;
|
68
68
|
readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
|
69
69
|
readonly onClassChange?: ((val: Class) => void) | undefined;
|
@@ -74,21 +74,15 @@ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
74
74
|
executionContext: DataSpaceExecutionContext;
|
75
75
|
showRuntimeSelector: boolean;
|
76
76
|
isTemplateQueryDialogOpen: boolean;
|
77
|
+
isLightGraphEnabled: boolean;
|
77
78
|
displayedTemplateQueries: DataSpaceExecutableAnalysisResult[] | undefined;
|
78
|
-
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, dataSpaceRepo: DataSpacesBuilderRepoistory | undefined, onDataSpaceChange: (val: DataSpaceInfo) => void
|
79
|
+
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, isLightGraphEnabled: boolean, dataSpaceRepo: DataSpacesBuilderRepoistory | undefined, onDataSpaceChange: (val: DataSpaceInfo) => Promise<void>, dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: QuerySDLC | undefined);
|
79
80
|
get sideBarClassName(): string | undefined;
|
80
81
|
getQueryExecutionContext(): QueryExecutionContext;
|
81
82
|
setTemplateQueryDialogOpen(val: boolean): void;
|
82
83
|
setExecutionContext(val: DataSpaceExecutionContext): void;
|
83
84
|
setShowRuntimeSelector(val: boolean): void;
|
84
|
-
|
85
|
-
* Propagation after changing the execution context:
|
86
|
-
* - The mapping will be updated to the mapping of the execution context
|
87
|
-
* - The runtime will be updated to the default runtime of the execution context
|
88
|
-
* - If no class is chosen, try to choose a compatible class
|
89
|
-
* - If the chosen class is compatible with the new selected execution context mapping, do nothing, otherwise, try to choose a compatible class
|
90
|
-
*/
|
91
|
-
propagateExecutionContextChange(executionContext: DataSpaceExecutionContext): void;
|
85
|
+
setIsLightGraphEnabled(val: boolean): void;
|
92
86
|
buildFunctionAnalysisInfo(): QueryBuilderExtraFunctionAnalysisInfo | undefined;
|
93
87
|
intialize(): GeneratorFn<void>;
|
94
88
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,OAAO,EACZ,KAAK,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,OAAO,EACZ,KAAK,OAAO,EAMb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iBAAiB,EAIvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAEL,KAAK,yBAAyB,EAC9B,SAAS,EACV,MAAM,2FAA2F,CAAC;AAEnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EAEvC,MAAM,2DAA2D,CAAC;AACnE,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK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Aa,KAAK,OAAO,CAAC,IAAI,CAAC,EACxD,uBAAuB,CAAC,EAAE,uBAAuB,GAAG,SAAS,EAC7D,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,yBAAyB,KAAK,IAAI,CAAC,GAC1C,SAAS,EACb,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS;IAiCpC,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAEQ,wBAAwB,IAAI,qBAAqB;IAO1D,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIjC,yBAAyB,IAC9B,qCAAqC,GACrC,SAAS;IAwBZ,SAAS,IAAI,WAAW,CAAC,IAAI,CAAC;CAYhC"}
|
@@ -15,9 +15,9 @@
|
|
15
15
|
*/
|
16
16
|
import {} from '@finos/legend-application';
|
17
17
|
import { QueryBuilderState, } from '@finos/legend-query-builder';
|
18
|
-
import { getMappingCompatibleClasses, Package, QueryDataSpaceExecutionContext, elementBelongsToPackage,
|
18
|
+
import { getMappingCompatibleClasses, Package, QueryDataSpaceExecutionContext, elementBelongsToPackage, } from '@finos/legend-graph';
|
19
19
|
import { DepotScope, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
20
|
-
import { ActionState, assertErrorThrown, filterByType,
|
20
|
+
import { ActionState, assertErrorThrown, filterByType, } from '@finos/legend-shared';
|
21
21
|
import { action, flow, makeObservable, observable } from 'mobx';
|
22
22
|
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
|
23
23
|
import { DataSpace, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
@@ -36,8 +36,17 @@ const matchesDataElement = (_class, element) => {
|
|
36
36
|
}
|
37
37
|
return false;
|
38
38
|
};
|
39
|
-
export const resolveUsableDataSpaceClasses = (dataSpace, mapping, graphManagerState) => {
|
40
|
-
|
39
|
+
export const resolveUsableDataSpaceClasses = (dataSpace, mapping, graphManagerState, queryBuilderState) => {
|
40
|
+
let compatibleClasses = getMappingCompatibleClasses(mapping, graphManagerState.usableClasses);
|
41
|
+
const mappingModelCoverageAnalysisResult = queryBuilderState?.dataSpaceAnalysisResult?.mappingToMappingCoverageResult?.get(mapping.path);
|
42
|
+
if (
|
43
|
+
// This check is to make sure that we have `info` field present in `MappedEntity` which
|
44
|
+
// contains information about the mapped class path
|
45
|
+
mappingModelCoverageAnalysisResult?.mappedEntities.some((m) => m.info !== undefined)) {
|
46
|
+
const compatibleClassPaths = mappingModelCoverageAnalysisResult.mappedEntities.map((e) => e.info?.classPath);
|
47
|
+
const uniqueCompatibleClasses = compatibleClassPaths.filter((val, index) => compatibleClassPaths.indexOf(val) === index);
|
48
|
+
compatibleClasses = graphManagerState.graph.classes.filter((c) => uniqueCompatibleClasses.includes(c.path));
|
49
|
+
}
|
41
50
|
if (dataSpace.elements?.length) {
|
42
51
|
const elements = dataSpace.elements;
|
43
52
|
return compatibleClasses.filter((_class) => {
|
@@ -193,17 +202,20 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
193
202
|
executionContext;
|
194
203
|
showRuntimeSelector = false;
|
195
204
|
isTemplateQueryDialogOpen = false;
|
205
|
+
isLightGraphEnabled;
|
196
206
|
displayedTemplateQueries;
|
197
|
-
constructor(applicationStore, graphManagerState, workflow, actionConfig, dataSpace, executionContext, dataSpaceRepo, onDataSpaceChange, dataSpaceAnalysisResult, onExecutionContextChange, onRuntimeChange, onClassChange, config, sourceInfo) {
|
207
|
+
constructor(applicationStore, graphManagerState, workflow, actionConfig, dataSpace, executionContext, isLightGraphEnabled, dataSpaceRepo, onDataSpaceChange, dataSpaceAnalysisResult, onExecutionContextChange, onRuntimeChange, onClassChange, config, sourceInfo) {
|
198
208
|
super(applicationStore, graphManagerState, workflow, config, sourceInfo);
|
199
209
|
makeObservable(this, {
|
200
210
|
executionContext: observable,
|
201
211
|
showRuntimeSelector: observable,
|
202
212
|
isTemplateQueryDialogOpen: observable,
|
213
|
+
isLightGraphEnabled: observable,
|
203
214
|
displayedTemplateQueries: observable,
|
204
215
|
setExecutionContext: action,
|
205
216
|
setShowRuntimeSelector: action,
|
206
217
|
setTemplateQueryDialogOpen: action,
|
218
|
+
setIsLightGraphEnabled: action,
|
207
219
|
intialize: flow,
|
208
220
|
});
|
209
221
|
this.dataSpace = dataSpace;
|
@@ -238,31 +250,8 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
238
250
|
setShowRuntimeSelector(val) {
|
239
251
|
this.showRuntimeSelector = val;
|
240
252
|
}
|
241
|
-
|
242
|
-
|
243
|
-
* - The mapping will be updated to the mapping of the execution context
|
244
|
-
* - The runtime will be updated to the default runtime of the execution context
|
245
|
-
* - If no class is chosen, try to choose a compatible class
|
246
|
-
* - If the chosen class is compatible with the new selected execution context mapping, do nothing, otherwise, try to choose a compatible class
|
247
|
-
*/
|
248
|
-
propagateExecutionContextChange(executionContext) {
|
249
|
-
const mapping = executionContext.mapping.value;
|
250
|
-
this.changeMapping(mapping);
|
251
|
-
const mappingModelCoverageAnalysisResult = this.dataSpaceAnalysisResult?.mappingToMappingCoverageResult?.get(mapping.path);
|
252
|
-
if (mappingModelCoverageAnalysisResult) {
|
253
|
-
this.explorerState.mappingModelCoverageAnalysisResult =
|
254
|
-
mappingModelCoverageAnalysisResult;
|
255
|
-
}
|
256
|
-
this.changeRuntime(new RuntimePointer(executionContext.defaultRuntime));
|
257
|
-
const compatibleClasses = resolveUsableDataSpaceClasses(this.dataSpace, mapping, this.graphManagerState);
|
258
|
-
// if there is no chosen class or the chosen one is not compatible
|
259
|
-
// with the mapping then pick a compatible class if possible
|
260
|
-
if (!this.class || !compatibleClasses.includes(this.class)) {
|
261
|
-
const possibleNewClass = getNullableFirstEntry(compatibleClasses);
|
262
|
-
if (possibleNewClass) {
|
263
|
-
this.changeClass(possibleNewClass);
|
264
|
-
}
|
265
|
-
}
|
253
|
+
setIsLightGraphEnabled(val) {
|
254
|
+
this.isLightGraphEnabled = val;
|
266
255
|
}
|
267
256
|
buildFunctionAnalysisInfo() {
|
268
257
|
let functionInfoMap = new Map();
|