@finos/legend-extension-dsl-data-space 10.1.90 → 10.1.93
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts +14 -1
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +1 -1
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js +14 -0
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +8 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts +19 -0
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts.map +1 -0
- package/lib/components/query/DataSpaceTemplateQueryCreator.js +37 -0
- package/lib/components/query/DataSpaceTemplateQueryCreator.js.map +1 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts +2 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js +2 -0
- package/lib/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts +3 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js +19 -2
- package/lib/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts +2 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.js +2 -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/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +11 -4
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts +34 -0
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -0
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js +112 -0
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js.map +1 -0
- package/package.json +12 -12
- package/src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts +35 -0
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +8 -0
- package/src/components/query/DataSpaceTemplateQueryCreator.tsx +82 -0
- package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts +3 -0
- package/src/graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.ts +31 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataSpace/V1_DSL_DataSpace_DataSpace.ts +3 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataSpace_ProtocolHelper.ts +2 -0
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +10 -6
- package/src/stores/query/DataSpaceTemplateQueryCreatorStore.ts +219 -0
- package/tsconfig.json +2 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAKhB,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAC;AAmBpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAInE,eAAO,MAAM,+BAA+B,kBAC3B,MAAM,KACpB,gBAMF,CAAC;AAEF,eAAO,MAAM,2BAA2B,cAC3B,MAAM,KAChB,gBAMF,CAAC;AAEF,qBAAa,0BAA2B,SAAQ,gBAAgB;IAC9D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGrC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAA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,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;gBAGrC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,YAAY,EAAE,MAAM,GAAG,SAAS;IAalC,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA+J/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}
|
@@ -131,10 +131,17 @@ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
|
|
131
131
|
query.groupId = this.groupId;
|
132
132
|
query.artifactId = this.artifactId;
|
133
133
|
query.versionId = this.versionId;
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
134
|
+
if (this.queryBuilderState?.class) {
|
135
|
+
query.taggedValues = [
|
136
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
137
|
+
createQueryClassTaggedValue(this.queryBuilderState.class.path),
|
138
|
+
];
|
139
|
+
}
|
140
|
+
else {
|
141
|
+
query.taggedValues = [
|
142
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
143
|
+
];
|
144
|
+
}
|
138
145
|
},
|
139
146
|
};
|
140
147
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B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/**
|
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
|
+
import { type RawLambda } from '@finos/legend-graph';
|
17
|
+
import { QueryEditorStore, type QueryPersistConfiguration, type LegendQueryApplicationStore } from '@finos/legend-application-query';
|
18
|
+
import { type DepotServerClient } from '@finos/legend-server-depot';
|
19
|
+
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
20
|
+
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
21
|
+
export declare class DataSpaceTemplateQueryCreatorStore extends QueryEditorStore {
|
22
|
+
readonly groupId: string;
|
23
|
+
readonly artifactId: string;
|
24
|
+
readonly versionId: string;
|
25
|
+
readonly dataSpacePath: string;
|
26
|
+
readonly templateQueryTitle: string;
|
27
|
+
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, templateQueryTitle: string);
|
28
|
+
getProjectInfo(): ProjectGAVCoordinates;
|
29
|
+
initializeQueryBuilderState(): Promise<QueryBuilderState>;
|
30
|
+
getPersistConfiguration(lambda: RawLambda, options?: {
|
31
|
+
update?: boolean | undefined;
|
32
|
+
}): QueryPersistConfiguration;
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryCreatorStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceTemplateQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAChB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAGjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,4BAA4B,CAAC;AAcpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAQnE,qBAAa,kCAAmC,SAAQ,gBAAgB;IACtE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;gBAGlC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM;IAW5B,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAsG/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}
|
@@ -0,0 +1,112 @@
|
|
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
|
+
import { extractElementNameFromPath, } from '@finos/legend-graph';
|
17
|
+
import { QueryEditorStore, createViewProjectHandler, createViewSDLCProjectHandler, } from '@finos/legend-application-query';
|
18
|
+
import { StoreProjectData, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
19
|
+
import { filterByType, guaranteeNonNullable, uuid } from '@finos/legend-shared';
|
20
|
+
import { getDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
|
21
|
+
import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from './DataSpaceQueryBuilderState.js';
|
22
|
+
import { generateDataSpaceTemplateQueryViewerRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
23
|
+
import { DataSpaceExecutableTemplate, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
24
|
+
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
25
|
+
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
26
|
+
import { createQueryDataSpaceTaggedValue, createQueryClassTaggedValue, } from './DataSpaceQueryCreatorStore.js';
|
27
|
+
export class DataSpaceTemplateQueryCreatorStore extends QueryEditorStore {
|
28
|
+
groupId;
|
29
|
+
artifactId;
|
30
|
+
versionId;
|
31
|
+
dataSpacePath;
|
32
|
+
templateQueryTitle;
|
33
|
+
constructor(applicationStore, depotServerClient, groupId, artifactId, versionId, dataSpacePath, templateQueryTitle) {
|
34
|
+
super(applicationStore, depotServerClient);
|
35
|
+
this.groupId = groupId;
|
36
|
+
this.artifactId = artifactId;
|
37
|
+
this.versionId = versionId;
|
38
|
+
this.dataSpacePath = dataSpacePath;
|
39
|
+
this.templateQueryTitle = templateQueryTitle;
|
40
|
+
}
|
41
|
+
getProjectInfo() {
|
42
|
+
return {
|
43
|
+
groupId: this.groupId,
|
44
|
+
artifactId: this.artifactId,
|
45
|
+
versionId: this.versionId,
|
46
|
+
};
|
47
|
+
}
|
48
|
+
async initializeQueryBuilderState() {
|
49
|
+
const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
|
50
|
+
const dataSpaceExecutableTemplate = guaranteeNonNullable(dataSpace.executables
|
51
|
+
?.filter(filterByType(DataSpaceExecutableTemplate))
|
52
|
+
.find((executable) => executable.title === this.templateQueryTitle), `Can't find template query with title '${this.templateQueryTitle}'`);
|
53
|
+
const executionContext = guaranteeNonNullable(dataSpaceExecutableTemplate.executionContextKey
|
54
|
+
? dataSpace.executionContexts.filter((ec) => ec.name === dataSpaceExecutableTemplate.executionContextKey)[0]
|
55
|
+
: dataSpace.defaultExecutionContext, `Can't find execution context '${dataSpaceExecutableTemplate.executionContextKey}'`);
|
56
|
+
let dataSpaceAnalysisResult;
|
57
|
+
try {
|
58
|
+
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(this.groupId, this.artifactId));
|
59
|
+
dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, this.versionId, dataSpace.path, this.depotServerClient));
|
60
|
+
}
|
61
|
+
catch {
|
62
|
+
// do nothing
|
63
|
+
}
|
64
|
+
const projectInfo = new DataSpaceProjectInfo(this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
|
65
|
+
const sourceInfo = {
|
66
|
+
groupId: projectInfo.groupId,
|
67
|
+
artifactId: projectInfo.artifactId,
|
68
|
+
versionId: projectInfo.versionId,
|
69
|
+
dataSpace: dataSpace.path,
|
70
|
+
};
|
71
|
+
const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, (dataSpaceInfo) => {
|
72
|
+
if (dataSpaceInfo.defaultExecutionContext) {
|
73
|
+
this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceTemplateQueryViewerRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
74
|
+
dataSpaceInfo.path, this.templateQueryTitle));
|
75
|
+
}
|
76
|
+
else {
|
77
|
+
this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
|
78
|
+
}
|
79
|
+
}, true, dataSpaceAnalysisResult, (ec) => {
|
80
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceTemplateQueryViewerRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, this.templateQueryTitle));
|
81
|
+
}, undefined, undefined, projectInfo, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
82
|
+
queryBuilderState.setExecutionContext(executionContext);
|
83
|
+
queryBuilderState.propagateExecutionContextChange(executionContext);
|
84
|
+
queryBuilderState.initializeWithQuery(dataSpaceExecutableTemplate.query);
|
85
|
+
return queryBuilderState;
|
86
|
+
}
|
87
|
+
getPersistConfiguration(lambda, options) {
|
88
|
+
return {
|
89
|
+
defaultName: options?.update
|
90
|
+
? `${extractElementNameFromPath(this.dataSpacePath)}`
|
91
|
+
: `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.templateQueryTitle}]`,
|
92
|
+
decorator: (query) => {
|
93
|
+
query.id = uuid();
|
94
|
+
query.groupId = this.groupId;
|
95
|
+
query.artifactId = this.artifactId;
|
96
|
+
query.versionId = this.versionId;
|
97
|
+
if (this.queryBuilderState?.class) {
|
98
|
+
query.taggedValues = [
|
99
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
100
|
+
createQueryClassTaggedValue(this.queryBuilderState.class.path),
|
101
|
+
];
|
102
|
+
}
|
103
|
+
else {
|
104
|
+
query.taggedValues = [
|
105
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
106
|
+
];
|
107
|
+
}
|
108
|
+
},
|
109
|
+
};
|
110
|
+
}
|
111
|
+
}
|
112
|
+
//# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceTemplateQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,GAG3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,gBAAgB,EAGhB,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,yCAAyC,EAAE,MAAM,4DAA4D,CAAC;AACvH,OAAO,EACL,2BAA2B,GAE5B,MAAM,2FAA2F,CAAC;AAGnG,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC/G,OAAO,EACL,+BAA+B,EAC/B,2BAA2B,GAC5B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,OAA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aAAa,CAAC,IAC7D,IAAI,CAAC,kBACP,GAAG;YACP,SAAS,EAAE,CAAC,KAAY,EAAQ,EAAE;gBAChC,KAAK,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;gBAClB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;gBAC7B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;gBACnC,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;gBACjC,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE;oBACjC,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;wBACnD,2BAA2B,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC;qBAC/D,CAAC;iBACH;qBAAM;oBACL,KAAK,CAAC,YAAY,GAAG;wBACnB,+BAA+B,CAAC,IAAI,CAAC,aAAa,CAAC;qBACpD,CAAC;iBACH;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
3
|
-
"version": "10.1.
|
3
|
+
"version": "10.1.93",
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,17 +44,17 @@
|
|
44
44
|
"test:watch": "jest --watch"
|
45
45
|
},
|
46
46
|
"dependencies": {
|
47
|
-
"@finos/legend-application": "15.0.
|
48
|
-
"@finos/legend-application-query": "13.2.
|
49
|
-
"@finos/legend-application-studio": "28.16.
|
50
|
-
"@finos/legend-art": "7.1.
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
52
|
-
"@finos/legend-graph": "31.9.
|
53
|
-
"@finos/legend-lego": "1.2.
|
54
|
-
"@finos/legend-query-builder": "4.14.
|
55
|
-
"@finos/legend-server-depot": "6.0.
|
56
|
-
"@finos/legend-shared": "10.0.
|
57
|
-
"@finos/legend-storage": "3.0.
|
47
|
+
"@finos/legend-application": "15.0.72",
|
48
|
+
"@finos/legend-application-query": "13.2.18",
|
49
|
+
"@finos/legend-application-studio": "28.16.5",
|
50
|
+
"@finos/legend-art": "7.1.24",
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.149",
|
52
|
+
"@finos/legend-graph": "31.9.5",
|
53
|
+
"@finos/legend-lego": "1.2.18",
|
54
|
+
"@finos/legend-query-builder": "4.14.18",
|
55
|
+
"@finos/legend-server-depot": "6.0.37",
|
56
|
+
"@finos/legend-shared": "10.0.33",
|
57
|
+
"@finos/legend-storage": "3.0.83",
|
58
58
|
"@types/react": "18.2.31",
|
59
59
|
"mobx": "6.10.2",
|
60
60
|
"mobx-react-lite": "4.0.5",
|
@@ -29,12 +29,19 @@ export enum DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
29
29
|
DATA_SPACE_PATH = 'dataSpacePath',
|
30
30
|
EXECUTION_CONTEXT = 'executionContext',
|
31
31
|
RUNTIME_PATH = 'runtimePath',
|
32
|
+
TEMPLATE = 'template',
|
32
33
|
}
|
33
34
|
|
34
35
|
export enum DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN {
|
35
36
|
CLASS_PATH = 'class',
|
36
37
|
}
|
37
38
|
|
39
|
+
export enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
40
|
+
GAV = 'gav',
|
41
|
+
DATA_SPACE_PATH = 'dataSpacePath',
|
42
|
+
TEMPLATE_QUERY_TITLE = 'templateQueryTitle',
|
43
|
+
}
|
44
|
+
|
38
45
|
export type DataSpaceQueryCreatorPathParams = {
|
39
46
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
40
47
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
@@ -42,6 +49,12 @@ export type DataSpaceQueryCreatorPathParams = {
|
|
42
49
|
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
43
50
|
};
|
44
51
|
|
52
|
+
export type DataSpaceTemplateQueryCreatorPathParams = {
|
53
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
54
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
55
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_TITLE]: string;
|
56
|
+
};
|
57
|
+
|
45
58
|
export type DataSpaceQueryEditorQueryParams = {
|
46
59
|
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
47
60
|
};
|
@@ -49,6 +62,7 @@ export type DataSpaceQueryEditorQueryParams = {
|
|
49
62
|
export const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
50
63
|
SETUP: `/dataspace`,
|
51
64
|
CREATE: `/dataspace/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}?`,
|
65
|
+
TEMPLATE_QUERY: `/dataspace/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH}/:${DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_TITLE}`,
|
52
66
|
});
|
53
67
|
|
54
68
|
export const generateDataSpaceQuerySetupRoute = (): string =>
|
@@ -86,3 +100,24 @@ export const generateDataSpaceQueryCreatorRoute = (
|
|
86
100
|
: undefined,
|
87
101
|
}),
|
88
102
|
);
|
103
|
+
|
104
|
+
export const generateDataSpaceTemplateQueryViewerRoute = (
|
105
|
+
groupId: string,
|
106
|
+
artifactId: string,
|
107
|
+
versionId: string,
|
108
|
+
dataSpacePath: string,
|
109
|
+
templateQueryTitle: string,
|
110
|
+
): string =>
|
111
|
+
generatePath(
|
112
|
+
generateExtensionUrlPattern(DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY),
|
113
|
+
{
|
114
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]:
|
115
|
+
generateGAVCoordinates(groupId, artifactId, versionId),
|
116
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]:
|
117
|
+
dataSpacePath,
|
118
|
+
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE]:
|
119
|
+
DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE,
|
120
|
+
[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_TITLE]:
|
121
|
+
templateQueryTitle,
|
122
|
+
},
|
123
|
+
);
|
@@ -70,6 +70,7 @@ import type {
|
|
70
70
|
DataSpace,
|
71
71
|
DataSpaceExecutionContext,
|
72
72
|
} from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
73
|
+
import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
|
73
74
|
|
74
75
|
const resolveExecutionContext = (
|
75
76
|
dataSpace: DataSpace,
|
@@ -103,6 +104,13 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
103
104
|
addressPatterns: [DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP],
|
104
105
|
renderer: DataSpaceQuerySetup,
|
105
106
|
},
|
107
|
+
// data space template query creator
|
108
|
+
// Heads-up: TEMPLATE_QUERY must come before CREATE as it has a more specific pattern than CREATE.
|
109
|
+
{
|
110
|
+
key: 'data-space-template-query-viewer-application-page',
|
111
|
+
addressPatterns: [DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY],
|
112
|
+
renderer: DataSpaceTemplateQueryCreator,
|
113
|
+
},
|
106
114
|
// data space query editor
|
107
115
|
{
|
108
116
|
key: 'data-space-query-editor-application-page',
|
@@ -0,0 +1,82 @@
|
|
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
|
+
import { observer, useLocalObservable } from 'mobx-react-lite';
|
18
|
+
import { useParams } from '@finos/legend-application/browser';
|
19
|
+
import {
|
20
|
+
QueryEditor,
|
21
|
+
QueryEditorStoreContext,
|
22
|
+
useLegendQueryApplicationStore,
|
23
|
+
useLegendQueryBaseStore,
|
24
|
+
} from '@finos/legend-application-query';
|
25
|
+
import {
|
26
|
+
DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN,
|
27
|
+
type DataSpaceTemplateQueryCreatorPathParams,
|
28
|
+
} from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
29
|
+
import { parseGAVCoordinates } from '@finos/legend-storage';
|
30
|
+
import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
|
31
|
+
|
32
|
+
const DataSpaceTemplateQueryCreatorStoreProvider: React.FC<{
|
33
|
+
children: React.ReactNode;
|
34
|
+
gav: string;
|
35
|
+
dataSpacePath: string;
|
36
|
+
templateQueryTitle: string;
|
37
|
+
}> = ({ children, gav, dataSpacePath, templateQueryTitle }) => {
|
38
|
+
const { groupId, artifactId, versionId } = parseGAVCoordinates(gav);
|
39
|
+
const applicationStore = useLegendQueryApplicationStore();
|
40
|
+
const baseStore = useLegendQueryBaseStore();
|
41
|
+
const store = useLocalObservable(
|
42
|
+
() =>
|
43
|
+
new DataSpaceTemplateQueryCreatorStore(
|
44
|
+
applicationStore,
|
45
|
+
baseStore.depotServerClient,
|
46
|
+
groupId,
|
47
|
+
artifactId,
|
48
|
+
versionId,
|
49
|
+
dataSpacePath,
|
50
|
+
templateQueryTitle,
|
51
|
+
),
|
52
|
+
);
|
53
|
+
return (
|
54
|
+
<QueryEditorStoreContext.Provider value={store}>
|
55
|
+
{children}
|
56
|
+
</QueryEditorStoreContext.Provider>
|
57
|
+
);
|
58
|
+
};
|
59
|
+
|
60
|
+
export const DataSpaceTemplateQueryCreator = observer(() => {
|
61
|
+
const parameters = useParams<DataSpaceTemplateQueryCreatorPathParams>();
|
62
|
+
const gav =
|
63
|
+
parameters[DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV];
|
64
|
+
const dataSpacePath =
|
65
|
+
parameters[
|
66
|
+
DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH
|
67
|
+
];
|
68
|
+
const templateQueryTitle =
|
69
|
+
parameters[
|
70
|
+
DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_TITLE
|
71
|
+
];
|
72
|
+
|
73
|
+
return (
|
74
|
+
<DataSpaceTemplateQueryCreatorStoreProvider
|
75
|
+
gav={gav}
|
76
|
+
dataSpacePath={dataSpacePath}
|
77
|
+
templateQueryTitle={templateQueryTitle}
|
78
|
+
>
|
79
|
+
<QueryEditor />
|
80
|
+
</DataSpaceTemplateQueryCreatorStoreProvider>
|
81
|
+
);
|
82
|
+
});
|
package/src/graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.ts
CHANGED
@@ -25,6 +25,7 @@ import {
|
|
25
25
|
type Association,
|
26
26
|
type Package,
|
27
27
|
type RawLambda,
|
28
|
+
type DataElementReference,
|
28
29
|
PackageableElement,
|
29
30
|
} from '@finos/legend-graph';
|
30
31
|
import { DATA_SPACE_HASH_STRUCTURE } from '../../../../../DSL_DataSpace_HashUtils.js';
|
@@ -36,6 +37,7 @@ export class DataSpaceExecutionContext implements Hashable {
|
|
36
37
|
description?: string | undefined;
|
37
38
|
mapping!: PackageableElementReference<Mapping>;
|
38
39
|
defaultRuntime!: PackageableElementReference<PackageableRuntime>;
|
40
|
+
testData: DataElementReference | undefined;
|
39
41
|
|
40
42
|
get hashCode(): string {
|
41
43
|
return hashArray([
|
@@ -45,6 +47,7 @@ export class DataSpaceExecutionContext implements Hashable {
|
|
45
47
|
this.description ?? '',
|
46
48
|
this.mapping.valueForSerialization ?? '',
|
47
49
|
this.defaultRuntime.valueForSerialization ?? '',
|
50
|
+
this.testData ?? '',
|
48
51
|
]);
|
49
52
|
}
|
50
53
|
}
|
@@ -33,6 +33,7 @@ import {
|
|
33
33
|
UnsupportedOperationError,
|
34
34
|
isNonNullable,
|
35
35
|
assertType,
|
36
|
+
guaranteeType,
|
36
37
|
} from '@finos/legend-shared';
|
37
38
|
import { deserialize } from 'serializr';
|
38
39
|
import {
|
@@ -95,6 +96,11 @@ import {
|
|
95
96
|
Package,
|
96
97
|
V1_RawValueSpecificationTransformer,
|
97
98
|
V1_buildRawLambdaWithResolvedPaths,
|
99
|
+
type V1_ElementPointerType,
|
100
|
+
V1_buildEmbeddedData,
|
101
|
+
V1_transformEmbeddedData,
|
102
|
+
DataElementReference,
|
103
|
+
V1_DataElementReference,
|
98
104
|
} from '@finos/legend-graph';
|
99
105
|
import { V1_resolveDiagram } from '@finos/legend-extension-dsl-diagram/graph';
|
100
106
|
import { V1_MappingIncludeDataSpace } from './v1/model/packageableElements/mapping/V1_DSL_DataSpace_MappingIncludeDataSpace.js';
|
@@ -103,6 +109,8 @@ import { MappingIncludeDataSpace } from '../../../graph/metamodel/pure/model/pac
|
|
103
109
|
export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH =
|
104
110
|
'meta::pure::metamodel::dataSpace::DataSpace';
|
105
111
|
|
112
|
+
export const DATA_SPACE_ELEMENT_POINTER = 'DATASPACE';
|
113
|
+
|
106
114
|
export class DSL_DataSpace_PureProtocolProcessorPlugin
|
107
115
|
extends PureProtocolProcessorPlugin
|
108
116
|
implements DSL_Mapping_PureProtocolProcessorPlugin_Extension
|
@@ -147,6 +155,12 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
147
155
|
PackageableElementExplicitReference.create(
|
148
156
|
context.graph.getRuntime(contextProtocol.defaultRuntime.path),
|
149
157
|
);
|
158
|
+
execContext.testData = contextProtocol.testData
|
159
|
+
? guaranteeType(
|
160
|
+
V1_buildEmbeddedData(contextProtocol.testData, context),
|
161
|
+
DataElementReference,
|
162
|
+
)
|
163
|
+
: undefined;
|
150
164
|
return execContext;
|
151
165
|
});
|
152
166
|
element.defaultExecutionContext = guaranteeNonNullable(
|
@@ -314,6 +328,17 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
314
328
|
];
|
315
329
|
}
|
316
330
|
|
331
|
+
override V1_getExtraElementPointerTypes(): V1_ElementPointerType[] {
|
332
|
+
return [
|
333
|
+
(elementProtocol: PackageableElement): string | undefined => {
|
334
|
+
if (elementProtocol instanceof DataSpace) {
|
335
|
+
return DATA_SPACE_ELEMENT_POINTER;
|
336
|
+
}
|
337
|
+
return undefined;
|
338
|
+
},
|
339
|
+
];
|
340
|
+
}
|
341
|
+
|
317
342
|
override V1_getExtraElementProtocolSerializers(): V1_ElementProtocolSerializer[] {
|
318
343
|
return [
|
319
344
|
(
|
@@ -371,6 +396,12 @@ export class DSL_DataSpace_PureProtocolProcessorPlugin
|
|
371
396
|
PackageableElementPointerType.RUNTIME,
|
372
397
|
execContext.defaultRuntime.valueForSerialization ?? '',
|
373
398
|
);
|
399
|
+
contextProtocol.testData = execContext.testData
|
400
|
+
? guaranteeType(
|
401
|
+
V1_transformEmbeddedData(execContext.testData, context),
|
402
|
+
V1_DataElementReference,
|
403
|
+
)
|
404
|
+
: undefined;
|
374
405
|
return contextProtocol;
|
375
406
|
},
|
376
407
|
);
|
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
type V1_StereotypePtr,
|
24
24
|
type V1_TaggedValue,
|
25
25
|
V1_PackageableElement,
|
26
|
+
type V1_DataElementReference,
|
26
27
|
} from '@finos/legend-graph';
|
27
28
|
|
28
29
|
export class V1_DataSpaceExecutionContext implements Hashable {
|
@@ -31,6 +32,7 @@ export class V1_DataSpaceExecutionContext implements Hashable {
|
|
31
32
|
description?: string | undefined;
|
32
33
|
mapping!: V1_PackageableElementPointer;
|
33
34
|
defaultRuntime!: V1_PackageableElementPointer;
|
35
|
+
testData: V1_DataElementReference | undefined;
|
34
36
|
|
35
37
|
get hashCode(): string {
|
36
38
|
return hashArray([
|
@@ -40,6 +42,7 @@ export class V1_DataSpaceExecutionContext implements Hashable {
|
|
40
42
|
this.description ?? '',
|
41
43
|
this.mapping.path,
|
42
44
|
this.defaultRuntime.path,
|
45
|
+
this.testData ?? '',
|
43
46
|
]);
|
44
47
|
}
|
45
48
|
}
|
@@ -31,6 +31,7 @@ import {
|
|
31
31
|
V1_packageableElementPointerModelSchema,
|
32
32
|
V1_PackageableElementPointer,
|
33
33
|
V1_rawLambdaModelSchema,
|
34
|
+
V1_dataElementReferenceModelSchema,
|
34
35
|
} from '@finos/legend-graph';
|
35
36
|
import {
|
36
37
|
type PlainObject,
|
@@ -71,6 +72,7 @@ const V1_dataSpaceExecutionContextModelSchema = createModelSchema(
|
|
71
72
|
mapping: usingModelSchema(V1_packageableElementPointerModelSchema),
|
72
73
|
name: primitive(),
|
73
74
|
title: optional(primitive()),
|
75
|
+
testData: optional(usingModelSchema(V1_dataElementReferenceModelSchema)),
|
74
76
|
},
|
75
77
|
);
|
76
78
|
|
@@ -292,12 +292,16 @@ export class DataSpaceQueryCreatorStore extends QueryEditorStore {
|
|
292
292
|
query.groupId = this.groupId;
|
293
293
|
query.artifactId = this.artifactId;
|
294
294
|
query.versionId = this.versionId;
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
295
|
+
if (this.queryBuilderState?.class) {
|
296
|
+
query.taggedValues = [
|
297
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
298
|
+
createQueryClassTaggedValue(this.queryBuilderState.class.path),
|
299
|
+
];
|
300
|
+
} else {
|
301
|
+
query.taggedValues = [
|
302
|
+
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
303
|
+
];
|
304
|
+
}
|
301
305
|
},
|
302
306
|
};
|
303
307
|
}
|