@finos/legend-extension-dsl-data-space 10.3.0 → 10.3.2
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 → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts} +5 -20
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.d.ts.map +1 -0
- package/lib/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.js → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js} +34 -2
- package/lib/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js.map +1 -0
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js +2 -2
- package/lib/components/DSL_DataSpace_LegendApplicationPlugin.js.map +1 -1
- package/lib/components/index.d.ts +4 -4
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +4 -4
- package/lib/components/index.js.map +1 -1
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.d.ts.map +1 -0
- package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -0
- package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -0
- package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -0
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -0
- package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.js +2 -2
- package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -0
- package/lib/components/query-builder/QueryDataSpaceUtil.d.ts.map +1 -0
- package/lib/components/query-builder/QueryDataSpaceUtil.js.map +1 -0
- package/lib/components/{query → query-builder}/index.d.ts +3 -1
- package/lib/components/query-builder/index.d.ts.map +1 -0
- package/lib/components/{query → query-builder}/index.js +3 -1
- package/lib/components/query-builder/index.js.map +1 -0
- package/lib/graph-manager/index.d.ts +1 -0
- package/lib/graph-manager/index.d.ts.map +1 -1
- package/lib/graph-manager/index.js +1 -0
- package/lib/graph-manager/index.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -5
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +1 -2
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -1
- package/lib/{components/query/DataSpaceQueryCreator.d.ts → stores/shared/DataSpaceUtils.d.ts} +4 -4
- package/lib/stores/shared/DataSpaceUtils.d.ts.map +1 -0
- package/lib/stores/shared/DataSpaceUtils.js +32 -0
- package/lib/stores/shared/DataSpaceUtils.js.map +1 -0
- package/package.json +8 -10
- package/src/__lib__/{query/DSL_DataSpace_LegendQueryNavigation.ts → to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts} +47 -18
- package/src/components/DSL_DataSpace_LegendApplicationPlugin.tsx +5 -5
- package/src/components/index.ts +11 -4
- package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +3 -3
- package/src/components/{query → query-builder}/index.ts +7 -1
- package/src/graph-manager/index.ts +1 -0
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +4 -2
- package/src/stores/query-builder/DataSpaceQueryBuilderState.ts +1 -1
- package/src/stores/shared/DataSpaceUtils.ts +42 -0
- package/tsconfig.json +7 -13
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.d.ts.map +0 -1
- package/lib/__lib__/query/DSL_DataSpace_LegendQueryNavigation.js.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +0 -29
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +0 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +0 -243
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +0 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +0 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilder.js.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +0 -1
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQueryCreator.js +0 -41
- package/lib/components/query/DataSpaceQueryCreator.js.map +0 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts +0 -21
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +0 -1
- package/lib/components/query/DataSpaceQuerySetup.js +0 -63
- package/lib/components/query/DataSpaceQuerySetup.js.map +0 -1
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts +0 -19
- package/lib/components/query/DataSpaceTemplateQueryCreator.d.ts.map +0 -1
- package/lib/components/query/DataSpaceTemplateQueryCreator.js +0 -37
- package/lib/components/query/DataSpaceTemplateQueryCreator.js.map +0 -1
- package/lib/components/query/QueryDataSpaceUtil.d.ts.map +0 -1
- package/lib/components/query/QueryDataSpaceUtil.js.map +0 -1
- package/lib/components/query/index.d.ts.map +0 -1
- package/lib/components/query/index.js.map +0 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts +0 -38
- package/lib/stores/query/DataSpaceQueryCreatorStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQueryCreatorStore.js +0 -149
- package/lib/stores/query/DataSpaceQueryCreatorStore.js.map +0 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +0 -51
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +0 -107
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts +0 -35
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.d.ts.map +0 -1
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js +0 -108
- package/lib/stores/query/DataSpaceTemplateQueryCreatorStore.js.map +0 -1
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +0 -445
- package/src/components/query/DataSpaceQueryCreator.tsx +0 -99
- package/src/components/query/DataSpaceQuerySetup.tsx +0 -165
- package/src/components/query/DataSpaceTemplateQueryCreator.tsx +0 -82
- package/src/stores/query/DataSpaceQueryCreatorStore.ts +0 -308
- package/src/stores/query/DataSpaceQuerySetupStore.ts +0 -208
- package/src/stores/query/DataSpaceTemplateQueryCreatorStore.ts +0 -207
- /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.d.ts +0 -0
- /package/lib/components/{query → query-builder}/DataSpaceAdvancedSearchModal.js +0 -0
- /package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.d.ts +0 -0
- /package/lib/components/{query → query-builder}/DataSpaceQueryBuilder.js +0 -0
- /package/lib/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts +0 -0
- /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.d.ts +0 -0
- /package/lib/components/{query → query-builder}/QueryDataSpaceUtil.js +0 -0
- /package/src/components/{query → query-builder}/DataSpaceAdvancedSearchModal.tsx +0 -0
- /package/src/components/{query → query-builder}/DataSpaceQueryBuilder.tsx +0 -0
- /package/src/components/{query → query-builder}/QueryDataSpaceUtil.ts +0 -0
@@ -1,149 +0,0 @@
|
|
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, QueryTaggedValue, RuntimePointer, PackageableElementExplicitReference, } 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 { guaranteeNonNullable, guaranteeType, uuid, } from '@finos/legend-shared';
|
20
|
-
import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_CLASS, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
21
|
-
import { getDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
|
22
|
-
import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../query-builder/DataSpaceQueryBuilderState.js';
|
23
|
-
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.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
|
-
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
|
-
};
|
33
|
-
export const createQueryClassTaggedValue = (classPath) => {
|
34
|
-
const taggedValue = new QueryTaggedValue();
|
35
|
-
taggedValue.profile = QUERY_PROFILE_PATH;
|
36
|
-
taggedValue.tag = QUERY_PROFILE_TAG_CLASS;
|
37
|
-
taggedValue.value = classPath;
|
38
|
-
return taggedValue;
|
39
|
-
};
|
40
|
-
export class DataSpaceQueryCreatorStore extends QueryEditorStore {
|
41
|
-
groupId;
|
42
|
-
artifactId;
|
43
|
-
versionId;
|
44
|
-
dataSpacePath;
|
45
|
-
executionContext;
|
46
|
-
runtimePath;
|
47
|
-
classPath;
|
48
|
-
constructor(applicationStore, depotServerClient, groupId, artifactId, versionId, dataSpacePath, executionContext, runtimePath, executionKey) {
|
49
|
-
super(applicationStore, depotServerClient);
|
50
|
-
this.groupId = groupId;
|
51
|
-
this.artifactId = artifactId;
|
52
|
-
this.versionId = versionId;
|
53
|
-
this.dataSpacePath = dataSpacePath;
|
54
|
-
this.executionContext = executionContext;
|
55
|
-
this.runtimePath = runtimePath;
|
56
|
-
this.classPath = executionKey;
|
57
|
-
}
|
58
|
-
getProjectInfo() {
|
59
|
-
return {
|
60
|
-
groupId: this.groupId,
|
61
|
-
artifactId: this.artifactId,
|
62
|
-
versionId: this.versionId,
|
63
|
-
};
|
64
|
-
}
|
65
|
-
async initializeQueryBuilderState() {
|
66
|
-
const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
|
67
|
-
const executionContext = guaranteeNonNullable(dataSpace.executionContexts.find((context) => context.name === this.executionContext), `Can't find execution context '${this.executionContext}'`);
|
68
|
-
let dataSpaceAnalysisResult;
|
69
|
-
try {
|
70
|
-
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(this.groupId, this.artifactId));
|
71
|
-
dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, this.versionId, dataSpace.path, this.depotServerClient));
|
72
|
-
}
|
73
|
-
catch {
|
74
|
-
// do nothing
|
75
|
-
}
|
76
|
-
const projectInfo = new DataSpaceProjectInfo(this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
|
77
|
-
const sourceInfo = {
|
78
|
-
groupId: projectInfo.groupId,
|
79
|
-
artifactId: projectInfo.artifactId,
|
80
|
-
versionId: projectInfo.versionId,
|
81
|
-
dataSpace: dataSpace.path,
|
82
|
-
};
|
83
|
-
const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, (dataSpaceInfo) => {
|
84
|
-
if (dataSpaceInfo.defaultExecutionContext) {
|
85
|
-
this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
86
|
-
dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
|
87
|
-
}
|
88
|
-
else {
|
89
|
-
this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
|
90
|
-
}
|
91
|
-
}, true, dataSpaceAnalysisResult, (ec) => {
|
92
|
-
// runtime should already be set
|
93
|
-
const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
|
94
|
-
this.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, ec.name, runtimePointer.packageableRuntime.value ===
|
95
|
-
queryBuilderState.executionContext.defaultRuntime.value
|
96
|
-
? undefined
|
97
|
-
: runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
|
98
|
-
}, (runtimeValue) => {
|
99
|
-
const runtimePointer = guaranteeType(runtimeValue, RuntimePointer);
|
100
|
-
queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
|
101
|
-
queryBuilderState.executionContext.defaultRuntime.value
|
102
|
-
? undefined
|
103
|
-
: runtimePointer.packageableRuntime.value.path, queryBuilderState.class?.path));
|
104
|
-
}, (_class) => {
|
105
|
-
// runtime should already be set
|
106
|
-
const runtimePointer = guaranteeType(queryBuilderState.executionContextState.runtimeValue, RuntimePointer);
|
107
|
-
queryBuilderState.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(queryBuilderState.projectInfo).groupId, guaranteeNonNullable(queryBuilderState.projectInfo).artifactId, guaranteeNonNullable(queryBuilderState.projectInfo).versionId, queryBuilderState.dataSpace.path, queryBuilderState.executionContext.name, runtimePointer.packageableRuntime.value ===
|
108
|
-
queryBuilderState.executionContext.defaultRuntime.value
|
109
|
-
? undefined
|
110
|
-
: runtimePointer.packageableRuntime.value.path, _class.path));
|
111
|
-
}, projectInfo, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
112
|
-
queryBuilderState.setExecutionContext(executionContext);
|
113
|
-
queryBuilderState.propagateExecutionContextChange(executionContext);
|
114
|
-
// set runtime if already chosen
|
115
|
-
if (this.runtimePath) {
|
116
|
-
queryBuilderState.changeRuntime(new RuntimePointer(PackageableElementExplicitReference.create(this.graphManagerState.graph.getRuntime(this.runtimePath))));
|
117
|
-
}
|
118
|
-
// set class if already chosen
|
119
|
-
if (this.classPath) {
|
120
|
-
queryBuilderState.changeClass(this.graphManagerState.graph.getClass(this.classPath));
|
121
|
-
}
|
122
|
-
return queryBuilderState;
|
123
|
-
}
|
124
|
-
getPersistConfiguration(lambda, options) {
|
125
|
-
return {
|
126
|
-
defaultName: options?.update
|
127
|
-
? `${extractElementNameFromPath(this.dataSpacePath)}`
|
128
|
-
: `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.executionContext}]`,
|
129
|
-
decorator: (query) => {
|
130
|
-
query.id = uuid();
|
131
|
-
query.groupId = this.groupId;
|
132
|
-
query.artifactId = this.artifactId;
|
133
|
-
query.versionId = this.versionId;
|
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
|
-
}
|
145
|
-
},
|
146
|
-
};
|
147
|
-
}
|
148
|
-
}
|
149
|
-
//# sourceMappingURL=DataSpaceQueryCreatorStore.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreatorStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryCreatorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,EACd,mCAAmC,GAIpC,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,EACL,oBAAoB,EACpB,aAAa,EACb,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,yDAAyD,CAAC;AACvF,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,gDAAgD,CAAC;AAExD,OAAO,EAAE,kCAAkC,EAAE,M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C,GAAG,0BAA0B,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;gBACrD,CAAC,CAAC,iBAAiB,0BAA0B,CAAC,IAAI,CAAC,aAAa,CAAC,IAC7D,IAAI,CAAC,gBACP,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"}
|
@@ -1,51 +0,0 @@
|
|
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 { QueryEditorStore, type QueryPersistConfiguration } from '@finos/legend-application-query';
|
17
|
-
import { type DepotServerClient } from '@finos/legend-server-depot';
|
18
|
-
import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
|
19
|
-
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
20
|
-
import { type QueryBuilderConfig, QueryBuilderState } from '@finos/legend-query-builder';
|
21
|
-
import type { ProjectGAVCoordinates } from '@finos/legend-storage';
|
22
|
-
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
23
|
-
import { type DataSpaceInfo } from '../shared/DataSpaceInfo.js';
|
24
|
-
import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
|
25
|
-
export declare class DataSpaceQuerySetupState extends QueryBuilderState {
|
26
|
-
readonly depotServerClient: DepotServerClient;
|
27
|
-
readonly loadDataSpacesState: ActionState;
|
28
|
-
readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
|
29
|
-
readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
|
30
|
-
readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
|
31
|
-
TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
|
32
|
-
dataSpaces: DataSpaceInfo[];
|
33
|
-
showRuntimeSelector: boolean;
|
34
|
-
advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
|
35
|
-
constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, onDataSpaceChange: (val: DataSpaceInfo) => void, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>, config: QueryBuilderConfig | undefined);
|
36
|
-
get isResultPanelHidden(): boolean;
|
37
|
-
get sideBarClassName(): string | undefined;
|
38
|
-
showAdvancedSearchPanel(): void;
|
39
|
-
hideAdvancedSearchPanel(): void;
|
40
|
-
loadDataSpaces(): GeneratorFn<void>;
|
41
|
-
}
|
42
|
-
export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
|
43
|
-
get isViewProjectActionDisabled(): boolean;
|
44
|
-
getProjectInfo(): ProjectGAVCoordinates;
|
45
|
-
getPersistConfiguration(lambda: RawLambda, options?: {
|
46
|
-
update?: boolean | undefined;
|
47
|
-
}): QueryPersistConfiguration;
|
48
|
-
initializeQueryBuilderState(): Promise<QueryBuilderState>;
|
49
|
-
buildGraph(): GeneratorFn<void>;
|
50
|
-
}
|
51
|
-
//# sourceMappingURL=DataSpaceQuerySetupStore.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAChB,KAAK,yBAAyB,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE/E,OAAO,EACL,KAAK,kBAAkB,EACvB,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EACL,WAAW,EAIX,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,qBAAa,wBAAyB,SAAQ,iBAAiB;IAC7D,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,cAAwB;IACpD,QAAQ,CAA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AAO,CAElD;IAED,cAAc,IAAI,qBAAqB;IAIvC,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;IAItB,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAmCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
|
@@ -1,107 +0,0 @@
|
|
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 { createViewProjectHandler, createViewSDLCProjectHandler, QueryEditorStore, } from '@finos/legend-application-query';
|
17
|
-
import { DepotScope, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
18
|
-
import {} from '@finos/legend-application';
|
19
|
-
import { action, flow, makeObservable, observable } from 'mobx';
|
20
|
-
import { QueryBuilderState, } from '@finos/legend-query-builder';
|
21
|
-
import { ActionState, assertErrorThrown, guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
22
|
-
import { extractDataSpaceInfo, } from '../shared/DataSpaceInfo.js';
|
23
|
-
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
|
24
|
-
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
25
|
-
import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/query/DataSpaceQuerySetup.js';
|
26
|
-
import { DataSpaceAdvancedSearchState } from './DataSpaceAdvancedSearchState.js';
|
27
|
-
export class DataSpaceQuerySetupState extends QueryBuilderState {
|
28
|
-
depotServerClient;
|
29
|
-
loadDataSpacesState = ActionState.create();
|
30
|
-
onDataSpaceChange;
|
31
|
-
viewProject;
|
32
|
-
viewSDLCProject;
|
33
|
-
TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQuerySetupSetupPanelContent(this);
|
34
|
-
dataSpaces = [];
|
35
|
-
showRuntimeSelector = false;
|
36
|
-
advancedSearchState;
|
37
|
-
constructor(applicationStore, graphManagerState, depotServerClient, onDataSpaceChange, viewProject, viewSDLCProject, config) {
|
38
|
-
super(applicationStore, graphManagerState, config);
|
39
|
-
makeObservable(this, {
|
40
|
-
dataSpaces: observable,
|
41
|
-
advancedSearchState: observable,
|
42
|
-
showAdvancedSearchPanel: action,
|
43
|
-
hideAdvancedSearchPanel: action,
|
44
|
-
loadDataSpaces: flow,
|
45
|
-
});
|
46
|
-
this.depotServerClient = depotServerClient;
|
47
|
-
this.onDataSpaceChange = onDataSpaceChange;
|
48
|
-
this.viewProject = viewProject;
|
49
|
-
this.viewSDLCProject = viewSDLCProject;
|
50
|
-
}
|
51
|
-
get isResultPanelHidden() {
|
52
|
-
return true;
|
53
|
-
}
|
54
|
-
get sideBarClassName() {
|
55
|
-
return 'query-builder__setup__data-space-setup';
|
56
|
-
}
|
57
|
-
showAdvancedSearchPanel() {
|
58
|
-
this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
|
59
|
-
viewProject: this.viewProject,
|
60
|
-
viewSDLCProject: this.viewSDLCProject,
|
61
|
-
});
|
62
|
-
}
|
63
|
-
hideAdvancedSearchPanel() {
|
64
|
-
this.advancedSearchState = undefined;
|
65
|
-
}
|
66
|
-
*loadDataSpaces() {
|
67
|
-
this.loadDataSpacesState.inProgress();
|
68
|
-
try {
|
69
|
-
this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
70
|
-
scope: DepotScope.RELEASES,
|
71
|
-
})).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
|
72
|
-
this.loadDataSpacesState.pass();
|
73
|
-
}
|
74
|
-
catch (error) {
|
75
|
-
assertErrorThrown(error);
|
76
|
-
this.loadDataSpacesState.fail();
|
77
|
-
this.applicationStore.notificationService.notifyError(error);
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
export class DataSpaceQuerySetupStore extends QueryEditorStore {
|
82
|
-
get isViewProjectActionDisabled() {
|
83
|
-
return true;
|
84
|
-
}
|
85
|
-
getProjectInfo() {
|
86
|
-
throw new UnsupportedOperationError();
|
87
|
-
}
|
88
|
-
getPersistConfiguration(lambda, options) {
|
89
|
-
throw new UnsupportedOperationError();
|
90
|
-
}
|
91
|
-
async initializeQueryBuilderState() {
|
92
|
-
const queryBuilderState = new DataSpaceQuerySetupState(this.applicationStore, this.graphManagerState, this.depotServerClient, (dataSpaceInfo) => {
|
93
|
-
if (dataSpaceInfo.defaultExecutionContext) {
|
94
|
-
this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
95
|
-
dataSpaceInfo.path, dataSpaceInfo.defaultExecutionContext, undefined, undefined));
|
96
|
-
}
|
97
|
-
else {
|
98
|
-
this.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
|
99
|
-
}
|
100
|
-
}, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient), this.applicationStore.config.options.queryBuilderConfig);
|
101
|
-
return queryBuilderState;
|
102
|
-
}
|
103
|
-
*buildGraph() {
|
104
|
-
// do nothing
|
105
|
-
}
|
106
|
-
}
|
107
|
-
//# sourceMappingURL=DataSpaceQuerySetupStore.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,UAAU,EACV,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,GAE1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAChH,OAAO,EAAE,0CAA0C,EAAE,MAAM,+CAA+C,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEjF,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IACpD,iBAAiB,CAAoB;IACrC,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,iBAAiB,CAA+B;IAChD,WAAW,CAKV;IACD,eAAe,CAIL;IAEV,oCAAoC,GAAG,GAAoB,EAAE,CACpE,0CAA0C,CAAC,IAAI,CAAC,CAAC;IAEnD,UAAU,GAAoB,EAAE,CAAC;IACjC,mBAAmB,GAAG,KAAK,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,EACD,wBAAwB,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAC/C,4BAA4B,CAC1B,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,iBAAiB,CACvB,EACD,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,kBAAkB,CACxD,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEQ,CAAC,UAAU;QAClB,aAAa;IACf,CAAC;CACF"}
|
@@ -1,35 +0,0 @@
|
|
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 { 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 templateQueryId: string;
|
27
|
-
templateQueryTitle?: string;
|
28
|
-
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, groupId: string, artifactId: string, versionId: string, dataSpacePath: string, templateQueryId: string);
|
29
|
-
getProjectInfo(): ProjectGAVCoordinates;
|
30
|
-
initializeQueryBuilderState(): Promise<QueryBuilderState>;
|
31
|
-
getPersistConfiguration(lambda: RawLambda, options?: {
|
32
|
-
update?: boolean | undefined;
|
33
|
-
}): QueryPersistConfiguration;
|
34
|
-
}
|
35
|
-
//# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.d.ts.map
|
@@ -1 +0,0 @@
|
|
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,EAEvB,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,eAAe,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;gBAG1B,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM;IAWzB,cAAc,IAAI,qBAAqB;IAQjC,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IA0F/D,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;CAyB7B"}
|
@@ -1,108 +0,0 @@
|
|
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, } 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 '../query-builder/DataSpaceQueryBuilderState.js';
|
22
|
-
import { generateDataSpaceTemplateQueryCreatorRoute } 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
|
-
templateQueryId;
|
33
|
-
templateQueryTitle;
|
34
|
-
constructor(applicationStore, depotServerClient, groupId, artifactId, versionId, dataSpacePath, templateQueryId) {
|
35
|
-
super(applicationStore, depotServerClient);
|
36
|
-
this.groupId = groupId;
|
37
|
-
this.artifactId = artifactId;
|
38
|
-
this.versionId = versionId;
|
39
|
-
this.dataSpacePath = dataSpacePath;
|
40
|
-
this.templateQueryId = templateQueryId;
|
41
|
-
}
|
42
|
-
getProjectInfo() {
|
43
|
-
return {
|
44
|
-
groupId: this.groupId,
|
45
|
-
artifactId: this.artifactId,
|
46
|
-
versionId: this.versionId,
|
47
|
-
};
|
48
|
-
}
|
49
|
-
async initializeQueryBuilderState() {
|
50
|
-
const dataSpace = getDataSpace(this.dataSpacePath, this.graphManagerState.graph);
|
51
|
-
const dataSpaceExecutableTemplate = guaranteeNonNullable(dataSpace.executables
|
52
|
-
?.filter(filterByType(DataSpaceExecutableTemplate))
|
53
|
-
.find((executable) => executable.id === this.templateQueryId), `Can't find template query with id '${this.templateQueryId}'`);
|
54
|
-
const executionContext = guaranteeNonNullable(dataSpaceExecutableTemplate.executionContextKey
|
55
|
-
? dataSpace.executionContexts.filter((ec) => ec.name === dataSpaceExecutableTemplate.executionContextKey)[0]
|
56
|
-
: dataSpace.defaultExecutionContext, `Can't find execution context '${dataSpaceExecutableTemplate.executionContextKey}'`);
|
57
|
-
this.templateQueryTitle = dataSpaceExecutableTemplate.title;
|
58
|
-
let dataSpaceAnalysisResult;
|
59
|
-
try {
|
60
|
-
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(this.groupId, this.artifactId));
|
61
|
-
dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, this.versionId, dataSpace.path, this.depotServerClient));
|
62
|
-
}
|
63
|
-
catch {
|
64
|
-
// do nothing
|
65
|
-
}
|
66
|
-
const projectInfo = new DataSpaceProjectInfo(this.groupId, this.artifactId, this.versionId, createViewProjectHandler(this.applicationStore), createViewSDLCProjectHandler(this.applicationStore, this.depotServerClient));
|
67
|
-
const sourceInfo = {
|
68
|
-
groupId: projectInfo.groupId,
|
69
|
-
artifactId: projectInfo.artifactId,
|
70
|
-
versionId: projectInfo.versionId,
|
71
|
-
dataSpace: dataSpace.path,
|
72
|
-
};
|
73
|
-
const queryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, this.depotServerClient, dataSpace, executionContext, (dataSpaceInfo) => {
|
74
|
-
this.applicationStore.notificationService.notifyWarning(`Can't switch data space to visit current template query`);
|
75
|
-
}, true, dataSpaceAnalysisResult, (ec) => {
|
76
|
-
this.applicationStore.navigationService.navigator.updateCurrentLocation(generateDataSpaceTemplateQueryCreatorRoute(this.groupId, this.artifactId, this.versionId, dataSpace.path, this.templateQueryId));
|
77
|
-
}, undefined, undefined, projectInfo, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
78
|
-
queryBuilderState.setExecutionContext(executionContext);
|
79
|
-
queryBuilderState.propagateExecutionContextChange(executionContext);
|
80
|
-
queryBuilderState.initializeWithQuery(dataSpaceExecutableTemplate.query);
|
81
|
-
return queryBuilderState;
|
82
|
-
}
|
83
|
-
getPersistConfiguration(lambda, options) {
|
84
|
-
return {
|
85
|
-
defaultName: options?.update
|
86
|
-
? `${extractElementNameFromPath(this.dataSpacePath)}`
|
87
|
-
: `New Query for ${extractElementNameFromPath(this.dataSpacePath)}[${this.templateQueryId}]`,
|
88
|
-
decorator: (query) => {
|
89
|
-
query.id = uuid();
|
90
|
-
query.groupId = this.groupId;
|
91
|
-
query.artifactId = this.artifactId;
|
92
|
-
query.versionId = this.versionId;
|
93
|
-
if (this.queryBuilderState?.class) {
|
94
|
-
query.taggedValues = [
|
95
|
-
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
96
|
-
createQueryClassTaggedValue(this.queryBuilderState.class.path),
|
97
|
-
];
|
98
|
-
}
|
99
|
-
else {
|
100
|
-
query.taggedValues = [
|
101
|
-
createQueryDataSpaceTaggedValue(this.dataSpacePath),
|
102
|
-
];
|
103
|
-
}
|
104
|
-
},
|
105
|
-
};
|
106
|
-
}
|
107
|
-
}
|
108
|
-
//# sourceMappingURL=DataSpaceTemplateQueryCreatorStore.js.map
|
@@ -1 +0,0 @@
|
|
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,GACjB,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,gDAAgD,CAAC;AAExD,OAAO,EAAE,0CAA0C,EAAE,MAAM,4DAA4D,CAAC;AACxH,OAAO,EACL,2BAA2B,GAE5B,MAAM,2FAA2F,CAAC;AAGnG,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,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