@finos/legend-extension-dsl-data-space 1.0.4 → 1.0.9
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/CHANGELOG.md +10 -0
- package/lib/components/DataSpaceViewer.d.ts +2 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/DataSpaceViewer.js +6 -6
- package/lib/components/DataSpaceViewer.js.map +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts +1 -2
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js +1 -1
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +2 -1
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts +1 -2
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -1
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts +1 -2
- package/lib/graph/DSLDataSpace_PureGraphPlugin.d.ts.map +1 -1
- package/lib/graph/DSLDataSpace_PureGraphPlugin.js.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts +1 -2
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.d.ts.map +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js +1 -1
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts +2 -3
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.d.ts.map +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js +1 -1
- package/lib/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +3 -4
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts +2 -3
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js +1 -1
- package/lib/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.js.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +1 -2
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -1
- package/lib/stores/DataSpaceViewerState.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +4 -6
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +8 -2
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +23 -21
- package/src/components/DataSpaceViewer.tsx +25 -11
- package/src/components/query/DSLDataSpace_LegendQueryPlugin.tsx +6 -6
- package/src/components/query/DataSpaceQuerySetup.tsx +5 -2
- package/src/components/studio/DSLDataSpace_LegendStudioPlugin.tsx +9 -11
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -2
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +4 -4
- package/src/models/metamodels/pure/model/packageableElements/dataSpace/DataSpace.ts +6 -7
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +16 -18
- package/src/models/protocols/pure/v1/model/packageableElements/dataSpace/V1_DataSpace.ts +7 -8
- package/src/models/protocols/pure/v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper.ts +3 -3
- package/src/stores/DataSpaceViewerState.ts +2 -4
- package/src/stores/query/DataSpaceQuerySetupState.ts +13 -6
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import type { ClassView } from '@finos/legend-extension-dsl-diagram';
|
|
18
|
-
import type
|
|
19
|
-
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
18
|
+
import { type Class, QueryTaggedValue } from '@finos/legend-graph';
|
|
20
19
|
import type { Entity } from '@finos/legend-model-storage';
|
|
21
|
-
import type { QuerySetupStore } from '@finos/legend-query';
|
|
22
20
|
import {
|
|
21
|
+
type QuerySetupStore,
|
|
23
22
|
CreateQueryInfoState,
|
|
24
23
|
QuerySetupState,
|
|
25
24
|
generateCreateQueryRoute,
|
|
26
25
|
} from '@finos/legend-query';
|
|
27
|
-
import type { StoredEntity } from '@finos/legend-server-depot';
|
|
28
26
|
import {
|
|
27
|
+
type StoredEntity,
|
|
29
28
|
generateGAVCoordinates,
|
|
30
29
|
DepotScope,
|
|
31
30
|
ProjectData,
|
|
32
31
|
SNAPSHOT_VERSION_ALIAS,
|
|
33
32
|
} from '@finos/legend-server-depot';
|
|
34
|
-
import type { GeneratorFn, PlainObject } from '@finos/legend-shared';
|
|
35
33
|
import {
|
|
34
|
+
type GeneratorFn,
|
|
35
|
+
type PlainObject,
|
|
36
36
|
ActionState,
|
|
37
37
|
assertErrorThrown,
|
|
38
38
|
guaranteeNonNullable,
|
|
@@ -81,6 +81,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
81
81
|
dataSpaces: LightDataSpace[] = [];
|
|
82
82
|
loadDataSpacesState = ActionState.create();
|
|
83
83
|
setUpDataSpaceState = ActionState.create();
|
|
84
|
+
setUpDataSpaceStatusText?: string | undefined;
|
|
84
85
|
currentDataSpace?: LightDataSpace | undefined;
|
|
85
86
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
86
87
|
toGetSnapShot = false;
|
|
@@ -92,6 +93,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
92
93
|
dataSpaces: observable,
|
|
93
94
|
currentDataSpace: observable.ref,
|
|
94
95
|
dataSpaceViewerState: observable,
|
|
96
|
+
setUpDataSpaceStatusText: observable,
|
|
95
97
|
toGetSnapShot: observable,
|
|
96
98
|
setCurrentDataSpace: action,
|
|
97
99
|
setDataSpaceViewerState: action,
|
|
@@ -177,6 +179,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
177
179
|
}
|
|
178
180
|
this.setUpDataSpaceState.inProgress();
|
|
179
181
|
try {
|
|
182
|
+
this.setUpDataSpaceStatusText = `Fetching information for data space...`;
|
|
180
183
|
const projectData = ProjectData.serialization.fromJson(
|
|
181
184
|
(yield flowResult(
|
|
182
185
|
this.queryStore.depotServerClient.getProject(
|
|
@@ -185,6 +188,8 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
185
188
|
),
|
|
186
189
|
)) as PlainObject<ProjectData>,
|
|
187
190
|
);
|
|
191
|
+
|
|
192
|
+
this.setUpDataSpaceStatusText = `Building graph...`;
|
|
188
193
|
yield flowResult(
|
|
189
194
|
this.queryStore.buildGraph(projectData, dataSpace.content.versionId),
|
|
190
195
|
);
|
|
@@ -221,6 +226,8 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
221
226
|
assertErrorThrown(error);
|
|
222
227
|
this.setUpDataSpaceState.fail();
|
|
223
228
|
this.queryStore.applicationStore.notifyError(error);
|
|
229
|
+
} finally {
|
|
230
|
+
this.setUpDataSpaceStatusText = undefined;
|
|
224
231
|
}
|
|
225
232
|
}
|
|
226
233
|
|
|
@@ -249,7 +256,6 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
249
256
|
this.dataSpaceViewerState.dataSpaceVersionId,
|
|
250
257
|
),
|
|
251
258
|
];
|
|
252
|
-
queryInfoState.class = _class;
|
|
253
259
|
this.queryStore.setQueryInfoState(queryInfoState);
|
|
254
260
|
this.queryStore.applicationStore.navigator.goTo(
|
|
255
261
|
generateCreateQueryRoute(
|
|
@@ -258,6 +264,7 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
258
264
|
this.dataSpaceViewerState.dataSpace.versionId,
|
|
259
265
|
this.dataSpaceViewerState.currentExecutionContext.mapping.value.path,
|
|
260
266
|
this.dataSpaceViewerState.currentRuntime.path,
|
|
267
|
+
_class?.path,
|
|
261
268
|
),
|
|
262
269
|
);
|
|
263
270
|
this.setupStore.setSetupState(undefined);
|