@finos/legend-extension-dsl-data-space 10.4.9 → 10.4.10
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/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js +8 -8
- package/lib/__lib__/DSL_DataSpace_LegendApplicationCommand.js.map +1 -1
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +2 -2
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/DataSpaceInfoPanel.js +1 -1
- package/lib/components/DataSpaceInfoPanel.js.map +1 -1
- package/lib/components/DataSpaceViewer.js +2 -2
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js +3 -3
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -1
- package/lib/components/query-builder/DataSpaceQueryBuilder.js +7 -7
- package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/graph-manager/DSL_DataSpace_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graph-manager/DSL_DataSpace_GraphManagerHelper.js +2 -2
- package/lib/graph-manager/DSL_DataSpace_GraphManagerHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +10 -10
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +11 -11
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/shared/DataSpaceInfo.js +1 -1
- package/lib/stores/shared/DataSpaceInfo.js.map +1 -1
- package/package.json +1 -1
- package/src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts +8 -8
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +2 -2
- package/src/components/DataSpaceInfoPanel.tsx +4 -4
- package/src/components/DataSpaceViewer.tsx +2 -2
- package/src/components/query-builder/DataSpaceAdvancedSearchModal.tsx +5 -5
- package/src/components/query-builder/DataSpaceQueryBuilder.tsx +9 -9
- package/src/graph-manager/DSL_DataSpace_GraphManagerHelper.ts +6 -2
- package/src/graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts +1 -1
- package/src/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +10 -10
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +11 -11
- package/src/graph-manager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +2 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +1 -1
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +1 -1
- package/src/stores/shared/DataSpaceInfo.ts +1 -1
@@ -139,7 +139,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
139
139
|
repo instanceof DataSpacesDepotRepository ? repo : undefined;
|
140
140
|
const project = depotRepo?.project;
|
141
141
|
|
142
|
-
// data
|
142
|
+
// data product
|
143
143
|
const prioritizeDataSpaceFunc =
|
144
144
|
queryBuilderState.dataSpaceRepo.prioritizeDataSpaceFunc;
|
145
145
|
const sortedAllOptions = (queryBuilderState.dataSpaceRepo.dataSpaces ?? [])
|
@@ -262,7 +262,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
262
262
|
const copyDataSpaceLinkToClipboard = (): void => {
|
263
263
|
const nonNullableProject = guaranteeNonNullable(
|
264
264
|
project,
|
265
|
-
'Unable to copy data
|
265
|
+
'Unable to copy data product query set up link to clipboard because project is null',
|
266
266
|
);
|
267
267
|
const dataSpace = queryBuilderState.dataSpace;
|
268
268
|
const executionContext = queryBuilderState.executionContext;
|
@@ -289,12 +289,12 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
289
289
|
.writeText(route)
|
290
290
|
.catch(() =>
|
291
291
|
applicationStore.notificationService.notifyError(
|
292
|
-
'Error copying data
|
292
|
+
'Error copying data product query set up link to clipboard',
|
293
293
|
),
|
294
294
|
);
|
295
295
|
|
296
296
|
applicationStore.notificationService.notifySuccess(
|
297
|
-
'Copied data
|
297
|
+
'Copied data product query set up link to clipboard',
|
298
298
|
);
|
299
299
|
};
|
300
300
|
|
@@ -303,7 +303,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
303
303
|
<PanelHeader title="properties">
|
304
304
|
<PanelHeaderActions>
|
305
305
|
<PanelHeaderActionItem
|
306
|
-
title="copy data
|
306
|
+
title="copy data product query set up link to clipboard"
|
307
307
|
onClick={copyDataSpaceLinkToClipboard}
|
308
308
|
>
|
309
309
|
<AnchorLinkIcon />
|
@@ -344,10 +344,10 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
344
344
|
<div className="query-builder__setup__config-group__item">
|
345
345
|
<label
|
346
346
|
className="btn--sm query-builder__setup__config-group__item__label"
|
347
|
-
title="data
|
347
|
+
title="data product"
|
348
348
|
htmlFor="query-builder__setup__data-space-selector"
|
349
349
|
>
|
350
|
-
Data
|
350
|
+
Data Product
|
351
351
|
</label>
|
352
352
|
<CustomSelectorInput
|
353
353
|
inputId="query-builder__setup__data-space-selector"
|
@@ -358,7 +358,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
358
358
|
}
|
359
359
|
onChange={onDataSpaceOptionChange}
|
360
360
|
value={selectedDataSpaceOption}
|
361
|
-
placeholder="Search for data
|
361
|
+
placeholder="Search for data product..."
|
362
362
|
escapeClearsValue={true}
|
363
363
|
darkMode={
|
364
364
|
!applicationStore.layoutService
|
@@ -372,7 +372,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
372
372
|
tabIndex={-1}
|
373
373
|
className="query-builder__setup__data-space-searcher__btn btn--dark"
|
374
374
|
onClick={openDataSpaceAdvancedSearch}
|
375
|
-
title="Open advanced search for data
|
375
|
+
title="Open advanced search for data product..."
|
376
376
|
>
|
377
377
|
<SearchIcon />
|
378
378
|
</button>
|
@@ -36,12 +36,16 @@ import {
|
|
36
36
|
} from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
37
37
|
|
38
38
|
export const getDataSpace = (path: string, graph: PureModel): DataSpace =>
|
39
|
-
graph.getExtensionElement(
|
39
|
+
graph.getExtensionElement(
|
40
|
+
path,
|
41
|
+
DataSpace,
|
42
|
+
`Can't find data product '${path}'`,
|
43
|
+
);
|
40
44
|
|
41
45
|
export const getOwnDataSpace = (path: string, graph: BasicModel): DataSpace =>
|
42
46
|
guaranteeNonNullable(
|
43
47
|
graph.getOwnNullableExtensionElement(path, DataSpace),
|
44
|
-
`Can't find data
|
48
|
+
`Can't find data product '${path}'`,
|
45
49
|
);
|
46
50
|
|
47
51
|
export const getExecutionContextFromDataspaceExecutable = (
|
@@ -89,5 +89,5 @@ export const DSL_DataSpace_getGraphManagerExtension = (
|
|
89
89
|
(extension) =>
|
90
90
|
extension instanceof DSL_DataSpace_PureGraphManagerExtension,
|
91
91
|
),
|
92
|
-
`Can't find DSL Data
|
92
|
+
`Can't find DSL Data Product Pure graph manager extension`,
|
93
93
|
);
|
@@ -146,12 +146,12 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
146
146
|
);
|
147
147
|
element.executionContexts = guaranteeNonNullable(
|
148
148
|
elementProtocol.executionContexts,
|
149
|
-
`Data
|
149
|
+
`Data product 'executionContexts' field is missing`,
|
150
150
|
).map((contextProtocol) => {
|
151
151
|
const execContext = new DataSpaceExecutionContext();
|
152
152
|
execContext.name = guaranteeNonEmptyString(
|
153
153
|
contextProtocol.name,
|
154
|
-
`Data
|
154
|
+
`Data product execution context 'name' field is missing or empty`,
|
155
155
|
);
|
156
156
|
execContext.title = contextProtocol.title;
|
157
157
|
execContext.description = contextProtocol.description;
|
@@ -176,7 +176,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
176
176
|
execContext.name ===
|
177
177
|
guaranteeNonEmptyString(
|
178
178
|
elementProtocol.defaultExecutionContext,
|
179
|
-
`Data
|
179
|
+
`Data product 'defaultExecutionContext' field is missing or empty`,
|
180
180
|
),
|
181
181
|
),
|
182
182
|
`Can't find default execution context '${elementProtocol.defaultExecutionContext}'`,
|
@@ -225,7 +225,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
225
225
|
return elementPointer;
|
226
226
|
}
|
227
227
|
throw new UnsupportedOperationError(
|
228
|
-
`Can't find data
|
228
|
+
`Can't find data product element (only allow packages, classes, enumerations, and associations) '${pointer.path}'`,
|
229
229
|
);
|
230
230
|
});
|
231
231
|
}
|
@@ -292,7 +292,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
292
292
|
);
|
293
293
|
} catch {
|
294
294
|
throw new UnsupportedOperationError(
|
295
|
-
`Can't analyze data
|
295
|
+
`Can't analyze data product executable with element in path: ${executableProtocol.executable.path}`,
|
296
296
|
executableProtocol,
|
297
297
|
);
|
298
298
|
}
|
@@ -300,7 +300,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
300
300
|
return executable;
|
301
301
|
} else {
|
302
302
|
throw new UnsupportedOperationError(
|
303
|
-
`Can't build data
|
303
|
+
`Can't build data product executable`,
|
304
304
|
executableProtocol,
|
305
305
|
);
|
306
306
|
}
|
@@ -330,7 +330,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
330
330
|
elementProtocol.supportInfo.documentationUrl;
|
331
331
|
supportEmail.address = guaranteeNonEmptyString(
|
332
332
|
elementProtocol.supportInfo.address,
|
333
|
-
`Data
|
333
|
+
`Data product support email 'address' field is missing or empty`,
|
334
334
|
);
|
335
335
|
element.supportInfo = supportEmail;
|
336
336
|
} else if (
|
@@ -347,7 +347,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
347
347
|
element.supportInfo = combinedInfo;
|
348
348
|
} else {
|
349
349
|
throw new UnsupportedOperationError(
|
350
|
-
`Can't build data
|
350
|
+
`Can't build data product support info`,
|
351
351
|
elementProtocol.supportInfo,
|
352
352
|
);
|
353
353
|
}
|
@@ -513,7 +513,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
513
513
|
return executableProtocol;
|
514
514
|
} else {
|
515
515
|
throw new UnsupportedOperationError(
|
516
|
-
`Can't transform data
|
516
|
+
`Can't transform data product executable`,
|
517
517
|
executable,
|
518
518
|
);
|
519
519
|
}
|
@@ -548,7 +548,7 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
548
548
|
protocol.supportInfo = combinedInfo;
|
549
549
|
} else {
|
550
550
|
throw new UnsupportedOperationError(
|
551
|
-
`Can't transform data
|
551
|
+
`Can't transform data product support info`,
|
552
552
|
metamodel.supportInfo,
|
553
553
|
);
|
554
554
|
}
|
@@ -116,7 +116,7 @@ import { getDiagram } from '@finos/legend-extension-dsl-diagram/graph';
|
|
116
116
|
import { resolveVersion } from '@finos/legend-server-depot';
|
117
117
|
import { DATASPACE_ANALYTICS_FILE_NAME } from '../../../action/analytics/DataSpaceAnalysisHelper.js';
|
118
118
|
|
119
|
-
const ANALYZE_DATA_SPACE_TRACE = 'analyze data
|
119
|
+
const ANALYZE_DATA_SPACE_TRACE = 'analyze data product';
|
120
120
|
const TEMPORARY__TDS_SAMPLE_VALUES__DELIMETER = '-- e.g.';
|
121
121
|
|
122
122
|
export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_PureGraphManagerExtension {
|
@@ -212,7 +212,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
212
212
|
} else {
|
213
213
|
actionState?.setMessage('Fetching project entities and dependencies...');
|
214
214
|
const entities = await entitiesRetriever();
|
215
|
-
actionState?.setMessage('Analyzing data
|
215
|
+
actionState?.setMessage('Analyzing data product...');
|
216
216
|
analysisResult = await engineClient.postWithTracing<
|
217
217
|
PlainObject<V1_DataSpaceAnalysisResult>
|
218
218
|
>(
|
@@ -282,7 +282,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
282
282
|
projectInfo?: ProjectGAVCoordinates,
|
283
283
|
templateQueryId?: string,
|
284
284
|
): Promise<DataSpaceAnalysisResult> {
|
285
|
-
// reterieve data
|
285
|
+
// reterieve data product artifacts (more than one file) from cache
|
286
286
|
const dataspaceArtifacts = cacheRetriever
|
287
287
|
? (
|
288
288
|
await this.fetchDataSpaceArtifactsFromCache(
|
@@ -298,7 +298,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
298
298
|
[];
|
299
299
|
let mappingModelCoveragePartition: V1_MappingModelCoveragePartition[] = [];
|
300
300
|
|
301
|
-
// build the data
|
301
|
+
// build the data product analytics result from the file generation
|
302
302
|
const result = this.retrieveDataSpaceAnalysisFromFileGeneration(
|
303
303
|
dataspaceArtifacts as unknown as StoredFileGeneration[],
|
304
304
|
);
|
@@ -323,7 +323,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
323
323
|
}
|
324
324
|
|
325
325
|
// when trying to build a minimal graph, we need to make sure that there is associated mapping model coverage
|
326
|
-
// for every mapping in the data
|
326
|
+
// for every mapping in the data product analytics result otherwise we will have to build the full graph
|
327
327
|
if (
|
328
328
|
result &&
|
329
329
|
cachedAnalysisResult?.executionContexts.every(
|
@@ -386,14 +386,14 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
386
386
|
let cacheResult: PlainObject<V1_DataSpaceAnalysisResult> | undefined;
|
387
387
|
try {
|
388
388
|
actionState?.setMessage(
|
389
|
-
'Fetching data
|
389
|
+
'Fetching data product analysis result from cache...',
|
390
390
|
);
|
391
391
|
cacheResult = await cacheRetriever();
|
392
392
|
} catch (error) {
|
393
393
|
assertErrorThrown(error);
|
394
394
|
this.graphManager.logService.warn(
|
395
395
|
LogEvent.create(GRAPH_MANAGER_EVENT.CACHE_MANAGER_FAILURE),
|
396
|
-
`Can't fetch data
|
396
|
+
`Can't fetch data product analysis result cache: ${error.message}`,
|
397
397
|
);
|
398
398
|
}
|
399
399
|
return cacheResult;
|
@@ -405,13 +405,13 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
405
405
|
): Promise<PlainObject<StoredFileGeneration>[]> {
|
406
406
|
let cacheResult: PlainObject<StoredFileGeneration>[] = [];
|
407
407
|
try {
|
408
|
-
actionState?.setMessage('Fetching data
|
408
|
+
actionState?.setMessage('Fetching data product artifacts from cache...');
|
409
409
|
cacheResult = await cacheRetriever();
|
410
410
|
} catch (error) {
|
411
411
|
assertErrorThrown(error);
|
412
412
|
this.graphManager.logService.warn(
|
413
413
|
LogEvent.create(GRAPH_MANAGER_EVENT.CACHE_MANAGER_FAILURE),
|
414
|
-
`Can't fetch data
|
414
|
+
`Can't fetch data product artifacts cache: ${error.message}`,
|
415
415
|
);
|
416
416
|
}
|
417
417
|
return cacheResult;
|
@@ -538,7 +538,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
538
538
|
analysisResult.supportInfo.documentationUrl;
|
539
539
|
supportEmail.address = guaranteeNonEmptyString(
|
540
540
|
analysisResult.supportInfo.address,
|
541
|
-
`Data
|
541
|
+
`Data product support email 'address' field is missing or empty`,
|
542
542
|
);
|
543
543
|
result.supportInfo = supportEmail;
|
544
544
|
} else if (
|
@@ -695,7 +695,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
695
695
|
isMiniGraphSuccess = true;
|
696
696
|
} else {
|
697
697
|
const elements = analysisResult.model.elements
|
698
|
-
// NOTE: this is a temporary hack to fix a problem with data
|
698
|
+
// NOTE: this is a temporary hack to fix a problem with data product analytics
|
699
699
|
// where the classes for properties are not properly surveyed
|
700
700
|
// We need to wait for the actual fix in backend to be merged and released
|
701
701
|
// See https://github.com/finos/legend-engine/pull/836
|
@@ -411,7 +411,7 @@ const V1_deserializeDataSpaceExecutableInfo = (
|
|
411
411
|
);
|
412
412
|
default:
|
413
413
|
throw new UnsupportedOperationError(
|
414
|
-
`Can't deserialize data
|
414
|
+
`Can't deserialize data product executable info of type '${json._type}'`,
|
415
415
|
);
|
416
416
|
}
|
417
417
|
};
|
@@ -462,7 +462,7 @@ const V1_deserializeDataSpaceExecutableResult = (
|
|
462
462
|
);
|
463
463
|
default:
|
464
464
|
throw new UnsupportedOperationError(
|
465
|
-
`Can't deserialize data
|
465
|
+
`Can't deserialize data product executable result of type '${json._type}'`,
|
466
466
|
);
|
467
467
|
}
|
468
468
|
};
|
@@ -166,7 +166,7 @@ export class DataSpaceAdvancedSearchState {
|
|
166
166
|
this.depotServerClient.getProject(groupId, artifactId),
|
167
167
|
)) as PlainObject<StoreProjectData>,
|
168
168
|
);
|
169
|
-
// analyze data
|
169
|
+
// analyze data product
|
170
170
|
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(
|
171
171
|
this.graphManagerState.graphManager,
|
172
172
|
).analyzeDataSpace(
|
@@ -48,7 +48,7 @@ export const extractDataSpaceInfo = (
|
|
48
48
|
? storedEntity.entity.content.title
|
49
49
|
: undefined,
|
50
50
|
// NOTE: we don't want to assert the existence of this field even when it
|
51
|
-
// is required in the specification of data
|
51
|
+
// is required in the specification of data product, so we don't throw error here
|
52
52
|
defaultExecutionContext: isString(
|
53
53
|
storedEntity.entity.content.defaultExecutionContext,
|
54
54
|
)
|