@finos/legend-extension-dsl-data-space 4.0.5 → 6.1.0
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/DSLDataSpace_Const.d.ts +18 -0
- package/lib/DSLDataSpace_Const.d.ts.map +1 -0
- package/lib/DSLDataSpace_Const.js +20 -0
- package/lib/DSLDataSpace_Const.js.map +1 -0
- package/lib/DSLDataSpace_Extension.d.ts +1 -1
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +3 -3
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +39 -33
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.d.ts → DSLDataSpace_LegendQueryApplicationPlugin.d.ts} +6 -3
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_LegendQueryPlugin.js → DSLDataSpace_LegendQueryApplicationPlugin.js} +28 -4
- package/lib/components/query/DSLDataSpace_LegendQueryApplicationPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts +20 -0
- package/lib/components/query/DataSpaceQueryEditor.d.ts.map +1 -0
- package/lib/components/query/DataSpaceQueryEditor.js +43 -0
- package/lib/components/query/DataSpaceQueryEditor.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +13 -21
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.d.ts → DSLDataSpace_LegendStudioApplicationPlugin.d.ts} +3 -3
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_LegendStudioPlugin.js → DSLDataSpace_LegendStudioApplicationPlugin.js} +5 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioApplicationPlugin.js.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.d.ts → graph/DSLDataSpace_HashUtils.d.ts} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.d.ts.map +1 -0
- package/lib/{models/DSLDataSpace_ModelUtils.js → graph/DSLDataSpace_HashUtils.js} +1 -1
- package/lib/graph/DSLDataSpace_HashUtils.js.map +1 -0
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts +1 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js +3 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js +1 -1
- package/lib/graphManager/DSLDataSpace_GraphManagerHelper.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +2 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +5 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts +51 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js +49 -0
- package/lib/graphManager/action/analytics/DataSpaceAnalysis.js.map +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js +1 -0
- package/lib/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts +23 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js +21 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts +18 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js +20 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +0 -0
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +3 -1
- package/lib/graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts +26 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js +159 -0
- package/lib/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts +54 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js +80 -0
- package/lib/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts +1 -0
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js +3 -1
- package/lib/graphManager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js +0 -0
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts +3 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -0
- package/lib/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js +2 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -0
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +15 -14
- package/lib/stores/DataSpaceViewerState.d.ts +8 -12
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js +11 -33
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts +32 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.d.ts.map +1 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js +34 -0
- package/lib/stores/query/DSLDataSpace_LegendQueryRouter.js.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts +31 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js +88 -0
- package/lib/stores/query/DataSpaceQueryEditorStore.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +6 -5
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +41 -46
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +22 -21
- package/src/DSLDataSpace_Const.ts +20 -0
- package/src/DSLDataSpace_Extension.ts +3 -3
- package/src/components/DataSpaceViewer.tsx +142 -89
- package/src/components/query/{DSLDataSpace_LegendQueryPlugin.tsx → DSLDataSpace_LegendQueryApplicationPlugin.tsx} +41 -4
- package/src/components/query/DataSpaceQueryEditor.tsx +106 -0
- package/src/components/query/DataSpaceQuerySetup.tsx +45 -34
- package/src/components/studio/{DSLDataSpace_LegendStudioPlugin.tsx → DSLDataSpace_LegendStudioApplicationPlugin.tsx} +11 -11
- package/src/{models/DSLDataSpace_ModelUtils.ts → graph/DSLDataSpace_HashUtils.ts} +0 -0
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -1
- package/src/{models/metamodels → graph/metamodel}/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.ts +3 -1
- package/src/graphManager/DSLDataSpace_GraphManagerHelper.ts +1 -1
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +7 -1
- package/src/graphManager/action/analytics/DataSpaceAnalysis.ts +65 -0
- package/src/graphManager/action/changeDetection/DSLDataSpace_ObserverHelper.ts +2 -1
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.ts +42 -0
- package/src/graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtensionBuilder.ts +27 -0
- package/src/{models/protocols → graphManager/protocol}/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +3 -1
- package/src/graphManager/protocol/pure/v1/V1_DSLDataSpace_PureGraphManagerExtension.ts +265 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/V1_DSLDataSpace_SystemModels.json +0 -0
- package/src/graphManager/protocol/pure/v1/engine/analytics/V1_DataSpaceAnalysis.ts +119 -0
- package/src/{models/protocols → graphManager/protocol}/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.ts +3 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.ts +1 -1
- package/src/{models/protocols → graphManager/protocol}/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +2 -1
- package/src/index.ts +5 -3
- package/src/stores/DataSpaceViewerState.ts +24 -55
- package/src/stores/query/DSLDataSpace_LegendQueryRouter.ts +69 -0
- package/src/stores/query/DataSpaceQueryEditorStore.ts +143 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +74 -75
- package/tsconfig.json +18 -9
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.d.ts.map +0 -1
- package/lib/models/DSLDataSpace_ModelUtils.js.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +0 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DSLDataSpace_DataSpace.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureGraph/V1_DSLDataSpace_GraphBuilderHelper.js.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +0 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +0 -1
|
@@ -13,27 +13,19 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { extractEntityNameFromPath } from '@finos/legend-storage';
|
|
17
|
+
import { QuerySetupState, generateStudioProjectViewUrl, } from '@finos/legend-application-query';
|
|
18
18
|
import { DepotScope, ProjectData, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
|
19
|
-
import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
|
|
19
|
+
import { ActionState, assertErrorThrown, isString, } from '@finos/legend-shared';
|
|
20
20
|
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
21
|
-
import {
|
|
22
|
-
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../
|
|
21
|
+
import { getDSLDataSpaceGraphManagerExtension } from '../../graphManager/protocol/pure/DSLDataSpace_PureGraphManagerExtension.js';
|
|
22
|
+
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
23
23
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
|
24
|
-
|
|
25
|
-
const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
26
|
-
export const createQueryDataSpaceTaggedValue = (dataSpacePath) => {
|
|
27
|
-
const taggedValue = new QueryTaggedValue();
|
|
28
|
-
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
29
|
-
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
30
|
-
taggedValue.value = dataSpacePath;
|
|
31
|
-
return taggedValue;
|
|
32
|
-
};
|
|
24
|
+
import { generateDataSpaceQueryEditorRoute } from './DSLDataSpace_LegendQueryRouter.js';
|
|
33
25
|
export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
34
26
|
dataSpaces = [];
|
|
35
27
|
loadDataSpacesState = ActionState.create();
|
|
36
|
-
|
|
28
|
+
loadDataSpaceState = ActionState.create();
|
|
37
29
|
currentDataSpace;
|
|
38
30
|
dataSpaceViewerState;
|
|
39
31
|
toGetSnapShot = false;
|
|
@@ -48,7 +40,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
48
40
|
setDataSpaceViewerState: action,
|
|
49
41
|
setToGetSnapShot: action,
|
|
50
42
|
loadDataSpaces: flow,
|
|
51
|
-
|
|
43
|
+
loadDataSpace: flow,
|
|
52
44
|
proceedToCreateQuery: flow,
|
|
53
45
|
});
|
|
54
46
|
}
|
|
@@ -62,16 +54,10 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
62
54
|
this.toGetSnapShot = val;
|
|
63
55
|
}
|
|
64
56
|
*loadDataSpaces(searchText) {
|
|
65
|
-
if (this.queryStore.initState.isInInitialState) {
|
|
66
|
-
yield flowResult(this.queryStore.initialize());
|
|
67
|
-
}
|
|
68
|
-
else if (this.queryStore.initState.isInProgress) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
57
|
const isValidSearchString = searchText.length >= 3;
|
|
72
58
|
this.loadDataSpacesState.inProgress();
|
|
73
59
|
try {
|
|
74
|
-
this.dataSpaces = (yield this.
|
|
60
|
+
this.dataSpaces = (yield this.setupStore.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
|
75
61
|
search: isValidSearchString ? searchText : undefined,
|
|
76
62
|
scope: this.toGetSnapShot
|
|
77
63
|
? DepotScope.SNAPSHOT
|
|
@@ -84,49 +70,58 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
84
70
|
? SNAPSHOT_VERSION_ALIAS
|
|
85
71
|
: storedEntity.versionId,
|
|
86
72
|
path: storedEntity.entity.path,
|
|
73
|
+
name: extractEntityNameFromPath(storedEntity.entity.path),
|
|
74
|
+
title: isString(storedEntity.entity.content.title)
|
|
75
|
+
? storedEntity.entity.content.title
|
|
76
|
+
: undefined,
|
|
87
77
|
}));
|
|
88
78
|
this.loadDataSpacesState.pass();
|
|
89
79
|
}
|
|
90
80
|
catch (error) {
|
|
91
81
|
assertErrorThrown(error);
|
|
92
82
|
this.loadDataSpacesState.fail();
|
|
93
|
-
this.
|
|
83
|
+
this.setupStore.applicationStore.notifyError(error);
|
|
94
84
|
}
|
|
95
85
|
}
|
|
96
|
-
*
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
else if (this.queryStore.initState.isInProgress) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
this.setUpDataSpaceState.inProgress();
|
|
86
|
+
*loadDataSpace(dataSpace) {
|
|
87
|
+
this.loadDataSpaceState.inProgress();
|
|
88
|
+
this.loadDataSpaceState.setMessage(`Initializing...`);
|
|
104
89
|
try {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
90
|
+
// fetch project
|
|
91
|
+
this.loadDataSpaceState.setMessage(`Fetching project...`);
|
|
92
|
+
const project = ProjectData.serialization.fromJson((yield flowResult(this.setupStore.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
|
|
93
|
+
// fetch entities
|
|
94
|
+
this.loadDataSpaceState.setMessage(`Fetching entities...`);
|
|
95
|
+
const entities = (yield this.setupStore.depotServerClient.getEntities(project, dataSpace.versionId));
|
|
96
|
+
// fetch dependencies
|
|
97
|
+
this.loadDataSpaceState.setMessage(`Fetching dependencies...`);
|
|
98
|
+
const dependencyEntitiesIndex = (yield flowResult(this.setupStore.depotServerClient.getIndexedDependencyEntities(project, dataSpace.versionId)));
|
|
99
|
+
// analyze data space
|
|
100
|
+
this.loadDataSpaceState.setMessage(`Analyzing data space...`);
|
|
101
|
+
const analysisResult = (yield getDSLDataSpaceGraphManagerExtension(this.setupStore.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex));
|
|
102
|
+
this.dataSpaceViewerState = new DataSpaceViewerState(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
|
|
103
|
+
viewProject: (groupId, artifactId, versionId, entityPath) => this.setupStore.applicationStore.navigator.openNewWindow(generateStudioProjectViewUrl(this.setupStore.applicationStore.config.studioUrl, groupId, artifactId, versionId, entityPath)),
|
|
109
104
|
onDiagramClassDoubleClick: (classView) => {
|
|
110
105
|
this.proceedToCreateQuery(classView.class.value);
|
|
111
106
|
},
|
|
112
107
|
});
|
|
113
|
-
this.
|
|
108
|
+
this.loadDataSpaceState.pass();
|
|
114
109
|
}
|
|
115
110
|
catch (error) {
|
|
116
111
|
assertErrorThrown(error);
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
112
|
+
this.loadDataSpaceState.fail();
|
|
113
|
+
this.setupStore.applicationStore.notifyError(error);
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
this.loadDataSpaceState.setMessage(undefined);
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
*proceedToCreateQuery(_class) {
|
|
122
120
|
if (this.dataSpaceViewerState) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
];
|
|
128
|
-
this.queryStore.setQueryInfoState(queryInfoState);
|
|
129
|
-
this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path, _class?.path));
|
|
121
|
+
this.setupStore.applicationStore.navigator.goTo(generateDataSpaceQueryEditorRoute(this.dataSpaceViewerState.groupId, this.dataSpaceViewerState.artifactId, this.dataSpaceViewerState.versionId, this.dataSpaceViewerState.dataSpaceAnalysisResult.path, this.dataSpaceViewerState.currentExecutionContext.name, this.dataSpaceViewerState.currentRuntime ===
|
|
122
|
+
this.dataSpaceViewerState.currentExecutionContext.defaultRuntime
|
|
123
|
+
? undefined
|
|
124
|
+
: this.dataSpaceViewerState.currentRuntime.path, _class?.path));
|
|
130
125
|
this.setupStore.setSetupState(undefined);
|
|
131
126
|
}
|
|
132
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores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AClC,IAAI,IAAI,CAAC,oBAAoB,EAAE;YAC7B,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,iCAAiC,CAC/B,IAAI,CAAC,oBAAoB,CAAC,OAAO,EACjC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EACnC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,cAAc;gBACtC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,cAAc;gBAChE,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EACjD,MAAM,EAAE,IAAI,CACb,CACF,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;SAC1C;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -43,32 +43,33 @@
|
|
|
43
43
|
"test:watch": "jest --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@finos/legend-application": "
|
|
47
|
-
"@finos/legend-
|
|
48
|
-
"@finos/legend-
|
|
49
|
-
"@finos/legend-
|
|
50
|
-
"@finos/legend-
|
|
51
|
-
"@finos/legend-
|
|
52
|
-
"@finos/legend-server-depot": "
|
|
53
|
-
"@finos/legend-shared": "
|
|
54
|
-
"@finos/legend-
|
|
46
|
+
"@finos/legend-application": "7.0.2",
|
|
47
|
+
"@finos/legend-application-query": "5.0.1",
|
|
48
|
+
"@finos/legend-application-studio": "13.0.1",
|
|
49
|
+
"@finos/legend-art": "2.0.11",
|
|
50
|
+
"@finos/legend-extension-dsl-diagram": "5.0.1",
|
|
51
|
+
"@finos/legend-graph": "13.0.0",
|
|
52
|
+
"@finos/legend-server-depot": "3.0.2",
|
|
53
|
+
"@finos/legend-shared": "5.0.1",
|
|
54
|
+
"@finos/legend-storage": "3.0.1",
|
|
55
55
|
"@types/react": "18.0.15",
|
|
56
56
|
"mobx": "6.6.1",
|
|
57
57
|
"mobx-react-lite": "3.4.0",
|
|
58
58
|
"react": "18.2.0",
|
|
59
59
|
"react-dom": "18.2.0",
|
|
60
60
|
"react-resize-detector": "7.1.2",
|
|
61
|
+
"react-router": "5.3.3",
|
|
61
62
|
"serializr": "2.0.5"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
|
65
|
-
"@jest/globals": "28.1.
|
|
65
|
+
"@finos/legend-dev-utils": "2.0.7",
|
|
66
|
+
"@jest/globals": "28.1.3",
|
|
66
67
|
"cross-env": "7.0.3",
|
|
67
|
-
"eslint": "8.
|
|
68
|
-
"jest": "28.1.
|
|
68
|
+
"eslint": "8.20.0",
|
|
69
|
+
"jest": "28.1.3",
|
|
69
70
|
"npm-run-all": "4.1.5",
|
|
70
71
|
"rimraf": "3.0.2",
|
|
71
|
-
"sass": "1.
|
|
72
|
+
"sass": "1.54.0",
|
|
72
73
|
"typescript": "4.7.4"
|
|
73
74
|
},
|
|
74
75
|
"peerDependencies": {
|
|
@@ -78,11 +79,11 @@
|
|
|
78
79
|
"directory": "build/publishContent"
|
|
79
80
|
},
|
|
80
81
|
"extensions": {
|
|
81
|
-
"
|
|
82
|
-
"pureProtocolProcessorPlugin": "@finos/legend-
|
|
83
|
-
"pureGraphManagerPlugin": "@finos/legend-graph-plugin-dsl-data-space
|
|
84
|
-
"pureGraphPlugin": "@finos/legend-graph-plugin-dsl-data-space
|
|
85
|
-
"
|
|
86
|
-
"
|
|
82
|
+
"graphManagerPreset": "@finos/legend-graph-manager-preset-dsl-data-space",
|
|
83
|
+
"pureProtocolProcessorPlugin": "@finos/legend-pure-protocol-processor-plugin-dsl-data-space",
|
|
84
|
+
"pureGraphManagerPlugin": "@finos/legend-pure-graph-manager-plugin-dsl-data-space",
|
|
85
|
+
"pureGraphPlugin": "@finos/legend-pure-graph-plugin-dsl-data-space",
|
|
86
|
+
"applicationStudioPlugin": "@finos/legend-application-studio-plugin-dsl-data-space",
|
|
87
|
+
"queryApplicationPlugin": "@finos/legend-application-query-plugin-dsl-data-space"
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// NOTE: these are non-compilable profile and tag that we come up with for query
|
|
18
|
+
// so that it records the dataSpace it is created from
|
|
19
|
+
export const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
20
|
+
export const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
import packageJson from '../package.json';
|
|
18
18
|
import { AbstractPreset } from '@finos/legend-shared';
|
|
19
19
|
import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin.js';
|
|
20
|
-
import { DSLDataSpace_PureProtocolProcessorPlugin } from './
|
|
20
|
+
import { DSLDataSpace_PureProtocolProcessorPlugin } from './graphManager/protocol/pure/DSLDataSpace_PureProtocolProcessorPlugin.js';
|
|
21
21
|
import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin.js';
|
|
22
22
|
|
|
23
|
-
export class
|
|
23
|
+
export class DSLDataSpace_GraphManagerPreset extends AbstractPreset {
|
|
24
24
|
constructor() {
|
|
25
|
-
super(packageJson.extensions.
|
|
25
|
+
super(packageJson.extensions.graphManagerPreset, packageJson.version, [
|
|
26
26
|
new DSLDataSpace_PureGraphPlugin(),
|
|
27
27
|
new DSLDataSpace_PureGraphManagerPlugin(),
|
|
28
28
|
new DSLDataSpace_PureProtocolProcessorPlugin(),
|