@finos/legend-extension-dsl-data-space 0.1.1 → 1.0.3
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 +32 -0
- package/lib/DSLDataSpace_Extension.d.ts +0 -10
- package/lib/DSLDataSpace_Extension.d.ts.map +1 -1
- package/lib/DSLDataSpace_Extension.js +0 -24
- package/lib/DSLDataSpace_Extension.js.map +1 -1
- package/lib/components/{query/DataSpaceViewer.d.ts → DataSpaceViewer.d.ts} +1 -1
- package/lib/components/DataSpaceViewer.d.ts.map +1 -0
- package/lib/components/DataSpaceViewer.js +186 -0
- package/lib/components/DataSpaceViewer.js.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.d.ts → DSLDataSpace_LegendQueryPlugin.d.ts} +4 -5
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.d.ts.map +1 -0
- package/lib/components/query/{DSLDataSpace_QueryPlugin.js → DSLDataSpace_LegendQueryPlugin.js} +4 -7
- package/lib/components/query/DSLDataSpace_LegendQueryPlugin.js.map +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +15 -8
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.d.ts → DSLDataSpace_LegendStudioPlugin.d.ts} +4 -5
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.d.ts.map +1 -0
- package/lib/components/studio/{DSLDataSpace_StudioPlugin.js → DSLDataSpace_LegendStudioPlugin.js} +6 -8
- package/lib/components/studio/DSLDataSpace_LegendStudioPlugin.js.map +1 -0
- 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 +0 -3
- 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 +0 -3
- package/lib/graphManager/DSLDataSpace_PureGraphManagerPlugin.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts +13 -2
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js +45 -5
- package/lib/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/stores/DataSpaceViewerState.d.ts +59 -0
- package/lib/stores/DataSpaceViewerState.d.ts.map +1 -0
- package/lib/stores/DataSpaceViewerState.js +137 -0
- package/lib/stores/DataSpaceViewerState.js.map +1 -0
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts +9 -34
- package/lib/stores/query/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupState.js +44 -136
- package/lib/stores/query/DataSpaceQuerySetupState.js.map +1 -1
- package/package.json +24 -22
- package/src/DSLDataSpace_Extension.ts +0 -30
- package/src/components/{query/DataSpaceViewer.tsx → DataSpaceViewer.tsx} +216 -121
- package/src/components/query/{DSLDataSpace_QueryPlugin.tsx → DSLDataSpace_LegendQueryPlugin.tsx} +2 -7
- package/src/components/query/DataSpaceQuerySetup.tsx +30 -5
- package/src/components/studio/{DSLDataSpace_StudioPlugin.tsx → DSLDataSpace_LegendStudioPlugin.tsx} +8 -12
- package/src/graph/DSLDataSpace_PureGraphPlugin.ts +1 -8
- package/src/graphManager/DSLDataSpace_PureGraphManagerPlugin.ts +0 -5
- package/src/index.ts +12 -0
- package/src/models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin.ts +71 -5
- package/src/stores/DataSpaceViewerState.ts +202 -0
- package/src/stores/query/DataSpaceQuerySetupState.ts +99 -200
- package/tsconfig.json +5 -3
- package/tsconfig.package.json +1 -0
- package/lib/components/query/DSLDataSpace_QueryPlugin.d.ts.map +0 -1
- package/lib/components/query/DSLDataSpace_QueryPlugin.js.map +0 -1
- package/lib/components/query/DataSpaceViewer.d.ts.map +0 -1
- package/lib/components/query/DataSpaceViewer.js +0 -163
- package/lib/components/query/DataSpaceViewer.js.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.d.ts.map +0 -1
- package/lib/components/studio/DSLDataSpace_StudioPlugin.js.map +0 -1
|
@@ -13,16 +13,18 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
17
|
-
import {
|
|
18
|
-
import type { Class, PackageableRuntime } from '@finos/legend-graph';
|
|
16
|
+
import type { Class } from '@finos/legend-graph';
|
|
17
|
+
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
19
18
|
import type { Entity } from '@finos/legend-model-storage';
|
|
20
19
|
import type { QuerySetupStore } from '@finos/legend-query';
|
|
21
20
|
import { QuerySetupState } from '@finos/legend-query';
|
|
22
21
|
import type { GeneratorFn } from '@finos/legend-shared';
|
|
23
22
|
import { ActionState } from '@finos/legend-shared';
|
|
24
|
-
import
|
|
23
|
+
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
25
24
|
export declare type LightDataSpace = Entity & {
|
|
25
|
+
groupId: string;
|
|
26
|
+
artifactId: string;
|
|
27
|
+
versionId: string;
|
|
26
28
|
path: string;
|
|
27
29
|
content: {
|
|
28
30
|
groupId: string;
|
|
@@ -30,45 +32,18 @@ export declare type LightDataSpace = Entity & {
|
|
|
30
32
|
versionId: string;
|
|
31
33
|
};
|
|
32
34
|
};
|
|
33
|
-
export declare
|
|
34
|
-
MODELS = "MODELS",
|
|
35
|
-
EXECUTION = "EXECUTION",
|
|
36
|
-
ENTITLEMENT = "ENTITLEMENT",
|
|
37
|
-
SUPPORT = "SUPPORT"
|
|
38
|
-
}
|
|
39
|
-
export declare class DataSpaceViewerState {
|
|
40
|
-
setupState: DataSpaceQuerySetupState;
|
|
41
|
-
dataSpace: ResolvedDataSpace;
|
|
42
|
-
_renderer?: DiagramRenderer | undefined;
|
|
43
|
-
currentDiagram?: Diagram | undefined;
|
|
44
|
-
currentActivity: DATA_SPACE_VIEWER_ACTIVITY_MODE;
|
|
45
|
-
currentExecutionContext: ResolvedDataSpaceExecutionContext;
|
|
46
|
-
currentRuntime: PackageableRuntime;
|
|
47
|
-
showOnlyFeaturedDiagrams: boolean;
|
|
48
|
-
constructor(setupState: DataSpaceQuerySetupState, dataSpace: ResolvedDataSpace);
|
|
49
|
-
get renderer(): DiagramRenderer;
|
|
50
|
-
get isDiagramRendererInitialized(): boolean;
|
|
51
|
-
get featuredDiagrams(): Diagram[];
|
|
52
|
-
get diagrams(): Diagram[];
|
|
53
|
-
get runtimes(): PackageableRuntime[];
|
|
54
|
-
get diagramCursorClass(): string;
|
|
55
|
-
setRenderer(val: DiagramRenderer): void;
|
|
56
|
-
setCurrentDiagram(val: Diagram): void;
|
|
57
|
-
setCurrentActivity(val: DATA_SPACE_VIEWER_ACTIVITY_MODE): void;
|
|
58
|
-
setCurrentExecutionContext(val: ResolvedDataSpaceExecutionContext): void;
|
|
59
|
-
setCurrentRuntime(val: PackageableRuntime): void;
|
|
60
|
-
setShowOnlyFeaturedDiagrams(val: boolean): void;
|
|
61
|
-
setupRenderer(): void;
|
|
62
|
-
}
|
|
35
|
+
export declare const createQueryDataSpaceTaggedValue: (dataSpacePath: string, groupId: string, artifactId: string, versionId: string) => QueryTaggedValue;
|
|
63
36
|
export declare class DataSpaceQuerySetupState extends QuerySetupState {
|
|
64
37
|
dataSpaces: LightDataSpace[];
|
|
65
38
|
loadDataSpacesState: ActionState;
|
|
66
39
|
setUpDataSpaceState: ActionState;
|
|
67
40
|
currentDataSpace?: LightDataSpace | undefined;
|
|
68
41
|
dataSpaceViewerState?: DataSpaceViewerState | undefined;
|
|
42
|
+
toGetSnapShot: boolean;
|
|
69
43
|
constructor(setupStore: QuerySetupStore);
|
|
70
44
|
setCurrentDataSpace(val: LightDataSpace | undefined): void;
|
|
71
45
|
setDataSpaceViewerState(val: DataSpaceViewerState | undefined): void;
|
|
46
|
+
setToGetSnapShot(val: boolean): void;
|
|
72
47
|
loadDataSpaces(searchText: string): GeneratorFn<void>;
|
|
73
48
|
setUpDataSpace(dataSpace: LightDataSpace): GeneratorFn<void>;
|
|
74
49
|
proceedToCreateQuery(_class?: Class): GeneratorFn<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAEL,eAAe,EAEhB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,KAAK,EAAE,WAAW,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACL,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAM9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAE/D,oBAAY,cAAc,GAAG,MAAM,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAMF,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,WACZ,MAAM,cACH,MAAM,aACP,MAAM,KAChB,gBAUF,CAAC;AAEF,qBAAa,wBAAyB,SAAQ,eAAe;IAC3D,UAAU,EAAE,cAAc,EAAE,CAAM;IAClC,mBAAmB,cAAwB;IAC3C,mBAAmB,cAAwB;IAC3C,gBAAgB,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAC9C,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxD,aAAa,UAAS;gBAEV,UAAU,EAAE,eAAe;IAiBvC,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI;IAI1D,uBAAuB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;IAIpE,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IAuDrD,cAAc,CAAC,SAAS,EAAE,cAAc,GAAG,WAAW,CAAC,IAAI,CAAC;IAuD5D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAuCzD"}
|
|
@@ -13,149 +13,40 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { QueryTaggedValue } from '@finos/legend-graph';
|
|
17
17
|
import { CreateQueryInfoState, QuerySetupState, generateCreateQueryRoute, } from '@finos/legend-query';
|
|
18
|
-
import { ProjectData } from '@finos/legend-server-depot';
|
|
18
|
+
import { generateGAVCoordinates, DepotScope, ProjectData, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
|
19
19
|
import { ActionState, assertErrorThrown, guaranteeNonNullable, } from '@finos/legend-shared';
|
|
20
|
-
import { action,
|
|
20
|
+
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
21
21
|
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH, getResolvedDataSpace, } from '../../models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
currentDiagram;
|
|
34
|
-
currentActivity = DATA_SPACE_VIEWER_ACTIVITY_MODE.MODELS;
|
|
35
|
-
currentExecutionContext;
|
|
36
|
-
currentRuntime;
|
|
37
|
-
showOnlyFeaturedDiagrams = true;
|
|
38
|
-
constructor(setupState, dataSpace) {
|
|
39
|
-
makeObservable(this, {
|
|
40
|
-
_renderer: observable,
|
|
41
|
-
currentDiagram: observable,
|
|
42
|
-
currentActivity: observable,
|
|
43
|
-
currentExecutionContext: observable,
|
|
44
|
-
currentRuntime: observable,
|
|
45
|
-
showOnlyFeaturedDiagrams: observable,
|
|
46
|
-
renderer: computed,
|
|
47
|
-
setRenderer: action,
|
|
48
|
-
setCurrentDiagram: action,
|
|
49
|
-
setCurrentActivity: action,
|
|
50
|
-
setCurrentExecutionContext: action,
|
|
51
|
-
setCurrentRuntime: action,
|
|
52
|
-
setShowOnlyFeaturedDiagrams: action,
|
|
53
|
-
});
|
|
54
|
-
this.setupState = setupState;
|
|
55
|
-
this.dataSpace = dataSpace;
|
|
56
|
-
this.currentExecutionContext = this.dataSpace.defaultExecutionContext;
|
|
57
|
-
this.currentRuntime =
|
|
58
|
-
this.dataSpace.defaultExecutionContext.defaultRuntime.value;
|
|
59
|
-
this.currentDiagram = this.dataSpace.featuredDiagrams.length
|
|
60
|
-
? this.dataSpace.featuredDiagrams[0].value
|
|
61
|
-
: this.diagrams.length
|
|
62
|
-
? this.diagrams[0]
|
|
63
|
-
: undefined;
|
|
64
|
-
}
|
|
65
|
-
get renderer() {
|
|
66
|
-
return guaranteeNonNullable(this._renderer, `Diagram renderer must be initialized (this is likely caused by calling this method at the wrong place)`);
|
|
67
|
-
}
|
|
68
|
-
get isDiagramRendererInitialized() {
|
|
69
|
-
return Boolean(this._renderer);
|
|
70
|
-
}
|
|
71
|
-
get featuredDiagrams() {
|
|
72
|
-
return this.dataSpace.featuredDiagrams.map((ref) => ref.value);
|
|
73
|
-
}
|
|
74
|
-
get diagrams() {
|
|
75
|
-
return this.setupState.queryStore.graphManagerState.graph
|
|
76
|
-
.getExtensionElements(Diagram)
|
|
77
|
-
.concat(this.setupState.queryStore.graphManagerState.graph.dependencyManager.getExtensionElements(Diagram));
|
|
78
|
-
}
|
|
79
|
-
get runtimes() {
|
|
80
|
-
return this.setupState.queryStore.graphManagerState.graph.ownRuntimes
|
|
81
|
-
.concat(this.setupState.queryStore.graphManagerState.graph.dependencyManager
|
|
82
|
-
.runtimes)
|
|
83
|
-
.filter((runtime) => runtime.runtimeValue.mappings
|
|
84
|
-
.map((mapping) => mapping.value)
|
|
85
|
-
.includes(this.currentExecutionContext.mapping.value));
|
|
86
|
-
}
|
|
87
|
-
// NOTE: we have tried to use React to control the cursor and
|
|
88
|
-
// could not overcome the jank/lag problem, so we settle with CSS-based approach
|
|
89
|
-
// See https://css-tricks.com/using-css-cursors/
|
|
90
|
-
// See https://developer.mozilla.org/en-US/docs/Web/CSS/cursor
|
|
91
|
-
get diagramCursorClass() {
|
|
92
|
-
if (!this.isDiagramRendererInitialized) {
|
|
93
|
-
return '';
|
|
94
|
-
}
|
|
95
|
-
if (this.renderer.middleClick || this.renderer.rightClick) {
|
|
96
|
-
return 'diagram-editor__cursor--grabbing';
|
|
97
|
-
}
|
|
98
|
-
switch (this.renderer.interactionMode) {
|
|
99
|
-
case DIAGRAM_INTERACTION_MODE.LAYOUT: {
|
|
100
|
-
if (this.renderer.mouseOverClassView) {
|
|
101
|
-
return 'diagram-editor__cursor--pointer';
|
|
102
|
-
}
|
|
103
|
-
return '';
|
|
104
|
-
}
|
|
105
|
-
default:
|
|
106
|
-
return '';
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
setRenderer(val) {
|
|
110
|
-
this._renderer = val;
|
|
111
|
-
}
|
|
112
|
-
setCurrentDiagram(val) {
|
|
113
|
-
this.currentDiagram = val;
|
|
114
|
-
}
|
|
115
|
-
setCurrentActivity(val) {
|
|
116
|
-
this.currentActivity = val;
|
|
117
|
-
}
|
|
118
|
-
setCurrentExecutionContext(val) {
|
|
119
|
-
this.currentExecutionContext = val;
|
|
120
|
-
this.currentRuntime = val.defaultRuntime.value;
|
|
121
|
-
}
|
|
122
|
-
setCurrentRuntime(val) {
|
|
123
|
-
this.currentRuntime = val;
|
|
124
|
-
}
|
|
125
|
-
setShowOnlyFeaturedDiagrams(val) {
|
|
126
|
-
this.showOnlyFeaturedDiagrams = val;
|
|
127
|
-
// if we only show featured diagrams and the current diagram is not featured
|
|
128
|
-
// either set it to the first featured diagram we can find or show nothing
|
|
129
|
-
if (val) {
|
|
130
|
-
if (this.currentDiagram &&
|
|
131
|
-
!this.featuredDiagrams.includes(this.currentDiagram)) {
|
|
132
|
-
this.currentDiagram = this.dataSpace.featuredDiagrams.length
|
|
133
|
-
? this.dataSpace.featuredDiagrams[0].value
|
|
134
|
-
: undefined;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
setupRenderer() {
|
|
139
|
-
this.renderer.setIsReadOnly(true);
|
|
140
|
-
this.renderer.onClassViewDoubleClick = (classView) => {
|
|
141
|
-
this.setupState.proceedToCreateQuery(classView.class.value);
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
}
|
|
22
|
+
import { DataSpaceViewerState } from '../DataSpaceViewerState';
|
|
23
|
+
const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
24
|
+
const QUERY_PROFILE_TAG_DATA_SPACE = 'dataSpace';
|
|
25
|
+
const DATA_SPACE_ID_DELIMITER = '@';
|
|
26
|
+
export const createQueryDataSpaceTaggedValue = (dataSpacePath, groupId, artifactId, versionId) => {
|
|
27
|
+
const taggedValue = new QueryTaggedValue();
|
|
28
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
|
29
|
+
taggedValue.tag = QUERY_PROFILE_TAG_DATA_SPACE;
|
|
30
|
+
taggedValue.value = `${generateGAVCoordinates(groupId, artifactId, versionId)}${DATA_SPACE_ID_DELIMITER}${dataSpacePath}`;
|
|
31
|
+
return taggedValue;
|
|
32
|
+
};
|
|
145
33
|
export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
146
34
|
dataSpaces = [];
|
|
147
35
|
loadDataSpacesState = ActionState.create();
|
|
148
36
|
setUpDataSpaceState = ActionState.create();
|
|
149
37
|
currentDataSpace;
|
|
150
38
|
dataSpaceViewerState;
|
|
39
|
+
toGetSnapShot = false;
|
|
151
40
|
constructor(setupStore) {
|
|
152
41
|
super(setupStore);
|
|
153
42
|
makeObservable(this, {
|
|
154
43
|
dataSpaces: observable,
|
|
155
44
|
currentDataSpace: observable.ref,
|
|
156
45
|
dataSpaceViewerState: observable,
|
|
46
|
+
toGetSnapShot: observable,
|
|
157
47
|
setCurrentDataSpace: action,
|
|
158
48
|
setDataSpaceViewerState: action,
|
|
49
|
+
setToGetSnapShot: action,
|
|
159
50
|
loadDataSpaces: flow,
|
|
160
51
|
setUpDataSpace: flow,
|
|
161
52
|
proceedToCreateQuery: flow,
|
|
@@ -167,6 +58,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
167
58
|
setDataSpaceViewerState(val) {
|
|
168
59
|
this.dataSpaceViewerState = val;
|
|
169
60
|
}
|
|
61
|
+
setToGetSnapShot(val) {
|
|
62
|
+
this.toGetSnapShot = val;
|
|
63
|
+
}
|
|
170
64
|
*loadDataSpaces(searchText) {
|
|
171
65
|
if (this.queryStore.initState.isInInitialState) {
|
|
172
66
|
yield flowResult(this.queryStore.initialize());
|
|
@@ -179,17 +73,23 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
179
73
|
try {
|
|
180
74
|
this.dataSpaces = (yield this.queryStore.depotServerClient.getEntitiesByClassifierPath(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
|
181
75
|
search: isValidSearchString ? searchText : undefined,
|
|
76
|
+
scope: this.toGetSnapShot
|
|
77
|
+
? DepotScope.SNAPSHOT
|
|
78
|
+
: DepotScope.RELEASES,
|
|
182
79
|
limit: 10,
|
|
183
|
-
}))
|
|
184
|
-
|
|
185
|
-
.
|
|
186
|
-
|
|
187
|
-
|
|
80
|
+
})).map((storedEntity) => ({
|
|
81
|
+
...storedEntity.entity,
|
|
82
|
+
groupId: storedEntity.groupId,
|
|
83
|
+
artifactId: storedEntity.artifactId,
|
|
84
|
+
versionId: this.toGetSnapShot
|
|
85
|
+
? SNAPSHOT_VERSION_ALIAS
|
|
86
|
+
: storedEntity.versionId,
|
|
87
|
+
path: storedEntity.entity.path,
|
|
188
88
|
content: {
|
|
189
|
-
...entity.content,
|
|
190
|
-
groupId: guaranteeNonNullable(entity.content.groupId, `Data space 'groupId' field is missing`),
|
|
191
|
-
artifactId: guaranteeNonNullable(entity.content.artifactId, `Data space 'artifactId' field is missing`),
|
|
192
|
-
versionId: guaranteeNonNullable(entity.content.versionId, `Data space 'versionId' field is missing`),
|
|
89
|
+
...storedEntity.entity.content,
|
|
90
|
+
groupId: guaranteeNonNullable(storedEntity.entity.content.groupId, `Data space 'groupId' field is missing`),
|
|
91
|
+
artifactId: guaranteeNonNullable(storedEntity.entity.content.artifactId, `Data space 'artifactId' field is missing`),
|
|
92
|
+
versionId: guaranteeNonNullable(storedEntity.entity.content.versionId, `Data space 'versionId' field is missing`),
|
|
193
93
|
},
|
|
194
94
|
}));
|
|
195
95
|
this.loadDataSpacesState.pass();
|
|
@@ -212,7 +112,12 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
212
112
|
const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(dataSpace.content.groupId, dataSpace.content.artifactId))));
|
|
213
113
|
yield flowResult(this.queryStore.buildGraph(projectData, dataSpace.content.versionId));
|
|
214
114
|
const resolvedDataSpace = getResolvedDataSpace(dataSpace.content, this.queryStore.graphManagerState.graph);
|
|
215
|
-
this.dataSpaceViewerState = new DataSpaceViewerState(this, resolvedDataSpace
|
|
115
|
+
this.dataSpaceViewerState = new DataSpaceViewerState(this.queryStore.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, resolvedDataSpace, {
|
|
116
|
+
viewProject: (groupId, artifactId, versionId, entityPath) => this.queryStore.viewStudioProject(groupId, artifactId, versionId, entityPath),
|
|
117
|
+
onDiagramClassDoubleClick: (classView) => {
|
|
118
|
+
this.proceedToCreateQuery(classView.class.value);
|
|
119
|
+
},
|
|
120
|
+
});
|
|
216
121
|
this.setUpDataSpaceState.pass();
|
|
217
122
|
}
|
|
218
123
|
catch (error) {
|
|
@@ -225,6 +130,9 @@ export class DataSpaceQuerySetupState extends QuerySetupState {
|
|
|
225
130
|
if (this.dataSpaceViewerState) {
|
|
226
131
|
const projectData = ProjectData.serialization.fromJson((yield flowResult(this.queryStore.depotServerClient.getProject(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId))));
|
|
227
132
|
const queryInfoState = new CreateQueryInfoState(this.queryStore, projectData, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value, this.dataSpaceViewerState.currentRuntime);
|
|
133
|
+
queryInfoState.taggedValues = [
|
|
134
|
+
createQueryDataSpaceTaggedValue(this.dataSpaceViewerState.dataSpace.path, this.dataSpaceViewerState.dataSpaceGroupId, this.dataSpaceViewerState.dataSpaceArtifactId, this.dataSpaceViewerState.dataSpaceVersionId),
|
|
135
|
+
];
|
|
228
136
|
queryInfoState.class = _class;
|
|
229
137
|
this.queryStore.setQueryInfoState(queryInfoState);
|
|
230
138
|
this.queryStore.applicationStore.navigator.goTo(generateCreateQueryRoute(this.dataSpaceViewerState.dataSpace.groupId, this.dataSpaceViewerState.dataSpace.artifactId, this.dataSpaceViewerState.dataSpace.versionId, this.dataSpaceViewerState.currentExecutionContext.mapping.value.path, this.dataSpaceViewerState.currentRuntime.path));
|
|
@@ -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/query/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,sBAAsB,EACtB,UAAU,EACV,WAAW,EACX,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EACL,kCAAkC,EAClC,oBAAoB,GACrB,MAAM,sEAAsE,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAc/D,MAAM,kBAAkB,GAAG,6BA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MAAM,cAAc,GAAG,IAAI,oBAAoB,CAC7C,IAAI,CAAC,UAAU,EACf,WAAW,EACX,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,SAAS,EAC7C,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,EAC/D,IAAI,CAAC,oBAAoB,CAAC,cAAc,CACzC,CAAC;YACF,cAAc,CAAC,YAAY,GAAG;gBAC5B,+BAA+B,CAC7B,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,IAAI,EACxC,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,EAC1C,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,EAC7C,IAAI,CAAC,oBAAoB,CAAC,kBAAkB,CAC7C;aACF,CAAC;YACF,cAAc,CAAC,KAAK,GAAG,MAAM,CAAC;YAC9B,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAC7C,wBAAwB,CACtB,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,OAAO,EAC3C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,EAC9C,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC,SAAS,EAC7C,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EACpE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,CAC9C,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": "0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"types": "lib/index.d.ts",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && yarn build:sass && yarn build:tsc",
|
|
28
|
-
"build:sass": "cross-env INIT_CWD=$INIT_CWD
|
|
28
|
+
"build:sass": "cross-env INIT_CWD=$INIT_CWD node ../../scripts/workflow/buildSass.js",
|
|
29
29
|
"build:tsc": "tsc --project ./tsconfig.build.json",
|
|
30
30
|
"clean": "rimraf \"lib\" \"build\"",
|
|
31
31
|
"dev": "npm-run-all --parallel dev:sass dev:tsc",
|
|
32
|
-
"dev:sass": "sass
|
|
32
|
+
"dev:sass": "sass style lib --watch --load-path=../../node_modules/@finos/legend-art/scss",
|
|
33
33
|
"dev:tsc": "tsc --watch --preserveWatchOutput",
|
|
34
34
|
"lint:js": "cross-env NODE_ENV=production eslint --cache --cache-location ./build/.eslintcache --report-unused-disable-directives --parser-options=project:\"./tsconfig.json\" \"./src/**/*.{js,ts,tsx}\"",
|
|
35
35
|
"publish:prepare": "node ../../scripts/release/preparePublishContent.js",
|
|
@@ -38,33 +38,36 @@
|
|
|
38
38
|
"test:watch": "jest --watch"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@finos/legend-application": "0.
|
|
42
|
-
"@finos/legend-art": "0.
|
|
43
|
-
"@finos/legend-extension-dsl-diagram": "0.
|
|
44
|
-
"@finos/legend-graph": "0.
|
|
45
|
-
"@finos/legend-model-storage": "0.0.
|
|
46
|
-
"@finos/legend-query": "0.
|
|
47
|
-
"@finos/legend-server-depot": "0.0.
|
|
48
|
-
"@finos/legend-shared": "0.0
|
|
49
|
-
"@finos/legend-studio": "
|
|
50
|
-
"@types/react": "17.0.
|
|
51
|
-
"
|
|
52
|
-
"mobx
|
|
53
|
-
"
|
|
41
|
+
"@finos/legend-application": "1.0.0",
|
|
42
|
+
"@finos/legend-art": "0.2.0",
|
|
43
|
+
"@finos/legend-extension-dsl-diagram": "1.0.3",
|
|
44
|
+
"@finos/legend-graph": "0.3.0",
|
|
45
|
+
"@finos/legend-model-storage": "0.0.10",
|
|
46
|
+
"@finos/legend-query": "0.2.0",
|
|
47
|
+
"@finos/legend-server-depot": "0.0.13",
|
|
48
|
+
"@finos/legend-shared": "1.0.0",
|
|
49
|
+
"@finos/legend-studio": "2.1.0",
|
|
50
|
+
"@types/react": "17.0.37",
|
|
51
|
+
"@types/react-router-dom": "5.3.2",
|
|
52
|
+
"mobx": "6.3.8",
|
|
53
|
+
"mobx-react-lite": "3.2.2",
|
|
54
|
+
"monaco-editor": "0.30.1",
|
|
54
55
|
"react": "17.0.2",
|
|
55
56
|
"react-dom": "17.0.2",
|
|
56
57
|
"react-resize-detector": "6.7.6",
|
|
58
|
+
"react-router": "5.2.1",
|
|
59
|
+
"react-router-dom": "5.3.0",
|
|
57
60
|
"serializr": "2.0.5"
|
|
58
61
|
},
|
|
59
62
|
"devDependencies": {
|
|
60
|
-
"@finos/legend-dev-utils": "0.
|
|
63
|
+
"@finos/legend-dev-utils": "0.3.0",
|
|
61
64
|
"cross-env": "7.0.3",
|
|
62
|
-
"eslint": "8.
|
|
63
|
-
"jest": "27.3
|
|
65
|
+
"eslint": "8.3.0",
|
|
66
|
+
"jest": "27.4.3",
|
|
64
67
|
"npm-run-all": "4.1.5",
|
|
65
68
|
"rimraf": "3.0.2",
|
|
66
|
-
"sass": "1.
|
|
67
|
-
"typescript": "4.
|
|
69
|
+
"sass": "1.44.0",
|
|
70
|
+
"typescript": "4.5.2"
|
|
68
71
|
},
|
|
69
72
|
"peerDependencies": {
|
|
70
73
|
"react": "^17.0.0"
|
|
@@ -77,7 +80,6 @@
|
|
|
77
80
|
"pureProtocolProcessorPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-protocol-processor",
|
|
78
81
|
"pureGraphManagerPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-graph-manager",
|
|
79
82
|
"pureGraphPlugin": "@finos/legend-graph-plugin-dsl-data-space-pure-graph",
|
|
80
|
-
"studioPreset": "@finos/legend-studio-preset-dsl-data-space",
|
|
81
83
|
"studioPlugin": "@finos/legend-studio-plugin-dsl-data-space",
|
|
82
84
|
"queryPlugin": "@finos/legend-query-plugin-dsl-data-space"
|
|
83
85
|
}
|
|
@@ -19,11 +19,7 @@ import { AbstractPreset } from '@finos/legend-shared';
|
|
|
19
19
|
import { DSLDataSpace_PureGraphManagerPlugin } from './graphManager/DSLDataSpace_PureGraphManagerPlugin';
|
|
20
20
|
import { DSLDataSpace_PureProtocolProcessorPlugin } from './models/protocols/pure/DSLDataSpace_PureProtocolProcessorPlugin';
|
|
21
21
|
import type { GraphPluginManager } from '@finos/legend-graph';
|
|
22
|
-
import type { StudioPluginManager } from '@finos/legend-studio';
|
|
23
|
-
import { DSLDataSpace_StudioPlugin } from './components/studio/DSLDataSpace_StudioPlugin';
|
|
24
22
|
import { DSLDataSpace_PureGraphPlugin } from './graph/DSLDataSpace_PureGraphPlugin';
|
|
25
|
-
import type { QueryPluginManager } from '@finos/legend-query';
|
|
26
|
-
import { DSLDataSpace_QueryPlugin } from './components/query/DSLDataSpace_QueryPlugin';
|
|
27
23
|
|
|
28
24
|
export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
29
25
|
constructor() {
|
|
@@ -36,29 +32,3 @@ export class DSLDataSpace_GraphPreset extends AbstractPreset {
|
|
|
36
32
|
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
|
|
40
|
-
export class DSLDataSpace_StudioPreset extends AbstractPreset {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(packageJson.extensions.studioPreset, packageJson.version);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
install(pluginManager: StudioPluginManager): void {
|
|
46
|
-
new DSLDataSpace_StudioPlugin().install(pluginManager);
|
|
47
|
-
new DSLDataSpace_PureGraphPlugin().install(pluginManager);
|
|
48
|
-
new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
|
|
49
|
-
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export class DSLDataSpace_QueryPreset extends AbstractPreset {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(packageJson.extensions.studioPreset, packageJson.version);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
install(pluginManager: QueryPluginManager): void {
|
|
59
|
-
new DSLDataSpace_QueryPlugin().install(pluginManager);
|
|
60
|
-
new DSLDataSpace_PureGraphPlugin().install(pluginManager);
|
|
61
|
-
new DSLDataSpace_PureGraphManagerPlugin().install(pluginManager);
|
|
62
|
-
new DSLDataSpace_PureProtocolProcessorPlugin().install(pluginManager);
|
|
63
|
-
}
|
|
64
|
-
}
|