@finos/legend-application-query 13.7.193 → 13.7.195
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/LegendQueryNavigation.d.ts +18 -0
- package/lib/__lib__/LegendQueryNavigation.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryNavigation.js +21 -0
- package/lib/__lib__/LegendQueryNavigation.js.map +1 -1
- package/lib/__lib__/LegendQueryUserDataHelper.d.ts +9 -9
- package/lib/__lib__/LegendQueryUserDataHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryUserDataHelper.js.map +1 -1
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.d.ts +7 -7
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.d.ts.map +1 -1
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.js +5 -5
- package/lib/__lib__/LegendQueryUserDataSpaceHelper.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +7 -7
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +46 -50
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/data-space/DataSpaceQueryCreator.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceQueryCreator.js +2 -0
- package/lib/components/data-space/DataSpaceQueryCreator.js.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.d.ts +2 -2
- package/lib/components/data-space/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/data-space/DataSpaceQuerySetup.js +32 -15
- package/lib/components/data-space/DataSpaceQuerySetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/light-mode.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryEditorStore.d.ts +3 -3
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +20 -12
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts +30 -0
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js +41 -0
- package/lib/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.js.map +1 -0
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.d.ts +0 -3
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.js +0 -6
- package/lib/stores/data-space/DataSpaceQueryBuilderHelper.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts +45 -17
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +195 -67
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +7 -3
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.d.ts +46 -0
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.js +63 -0
- package/lib/stores/data-space/LegendQueryBareQueryBuilderState.js.map +1 -0
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.d.ts +47 -0
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.d.ts.map +1 -0
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.js +145 -0
- package/lib/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.js.map +1 -0
- package/package.json +10 -10
- package/src/__lib__/LegendQueryNavigation.ts +43 -0
- package/src/__lib__/LegendQueryUserDataHelper.ts +14 -12
- package/src/__lib__/LegendQueryUserDataSpaceHelper.ts +14 -14
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +5 -13
- package/src/components/QueryEditor.tsx +145 -103
- package/src/components/data-space/DataSpaceQueryCreator.tsx +4 -2
- package/src/components/data-space/DataSpaceQuerySetup.tsx +63 -20
- package/src/index.ts +1 -1
- package/src/stores/QueryEditorStore.ts +100 -91
- package/src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts +129 -0
- package/src/stores/data-space/DataSpaceQueryBuilderHelper.ts +0 -29
- package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +293 -101
- package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +11 -12
- package/src/stores/data-space/LegendQueryBareQueryBuilderState.ts +117 -0
- package/src/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.ts +340 -0
- package/tsconfig.json +3 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +0 -44
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +0 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js +0 -89
- package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +0 -1
- package/src/stores/data-space/DataSpaceQuerySetupState.ts +0 -171
|
@@ -0,0 +1,117 @@
|
|
|
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 { type DepotServerClient } from '@finos/legend-server-depot';
|
|
18
|
+
import { type GraphManagerState } from '@finos/legend-graph';
|
|
19
|
+
import { action, makeObservable, observable } from 'mobx';
|
|
20
|
+
import {
|
|
21
|
+
type QueryBuilderConfig,
|
|
22
|
+
QueryBuilderDataBrowserWorkflow,
|
|
23
|
+
BaseQueryBuilderState,
|
|
24
|
+
} from '@finos/legend-query-builder';
|
|
25
|
+
import type { ResolvedDataSpaceEntityWithOrigin } from '@finos/legend-extension-dsl-data-space/application';
|
|
26
|
+
import type { DepotEntityWithOrigin } from '@finos/legend-storage';
|
|
27
|
+
import {
|
|
28
|
+
QueryBuilderActionConfig_QueryApplication,
|
|
29
|
+
type QueryEditorStore,
|
|
30
|
+
} from '../QueryEditorStore.js';
|
|
31
|
+
import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/data-space/DataSpaceQuerySetup.js';
|
|
32
|
+
import { DataSpaceAdvancedSearchState } from '@finos/legend-extension-dsl-data-space/application-query';
|
|
33
|
+
import { DataProductSelectorState } from './DataSpaceQueryCreatorStore.js';
|
|
34
|
+
import {
|
|
35
|
+
createViewProjectHandler,
|
|
36
|
+
createViewSDLCProjectHandler,
|
|
37
|
+
} from './DataSpaceQueryBuilderHelper.js';
|
|
38
|
+
import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
|
|
39
|
+
|
|
40
|
+
export class LegendQueryBareQueryBuilderState extends BaseQueryBuilderState {
|
|
41
|
+
declare applicationStore: LegendQueryApplicationStore;
|
|
42
|
+
editorStore: QueryEditorStore;
|
|
43
|
+
readonly depotServerClient: DepotServerClient;
|
|
44
|
+
readonly changeHandlers: {
|
|
45
|
+
onDataSpaceChange: (val: ResolvedDataSpaceEntityWithOrigin) => void;
|
|
46
|
+
onDataProductChange: (val: DepotEntityWithOrigin) => void;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
override TEMPORARY__setupPanelContentRenderer = (): React.ReactNode =>
|
|
50
|
+
renderDataSpaceQuerySetupSetupPanelContent(this);
|
|
51
|
+
|
|
52
|
+
showRuntimeSelector = false;
|
|
53
|
+
isLightGraphEnabled!: boolean;
|
|
54
|
+
productSelectorState: DataProductSelectorState;
|
|
55
|
+
|
|
56
|
+
// advanced state
|
|
57
|
+
advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
|
|
58
|
+
|
|
59
|
+
constructor(
|
|
60
|
+
editorStore: QueryEditorStore,
|
|
61
|
+
applicationStore: LegendQueryApplicationStore,
|
|
62
|
+
graphManagerState: GraphManagerState,
|
|
63
|
+
depotServerClient: DepotServerClient,
|
|
64
|
+
changeHandlers: {
|
|
65
|
+
onDataSpaceChange: (val: ResolvedDataSpaceEntityWithOrigin) => void;
|
|
66
|
+
onDataProductChange: (val: DepotEntityWithOrigin) => void;
|
|
67
|
+
},
|
|
68
|
+
config: QueryBuilderConfig | undefined,
|
|
69
|
+
productSelectorState: DataProductSelectorState | undefined,
|
|
70
|
+
) {
|
|
71
|
+
super(
|
|
72
|
+
applicationStore,
|
|
73
|
+
graphManagerState,
|
|
74
|
+
QueryBuilderDataBrowserWorkflow.INSTANCE,
|
|
75
|
+
config,
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
makeObservable(this, {
|
|
79
|
+
advancedSearchState: observable,
|
|
80
|
+
showAdvancedSearchPanel: action,
|
|
81
|
+
hideAdvancedSearchPanel: action,
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
this.editorStore = editorStore;
|
|
85
|
+
this.workflowState.updateActionConfig(
|
|
86
|
+
new QueryBuilderActionConfig_QueryApplication(editorStore),
|
|
87
|
+
);
|
|
88
|
+
this.depotServerClient = depotServerClient;
|
|
89
|
+
this.changeHandlers = changeHandlers;
|
|
90
|
+
this.productSelectorState =
|
|
91
|
+
productSelectorState ??
|
|
92
|
+
new DataProductSelectorState(depotServerClient, applicationStore);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
override get sideBarClassName(): string | undefined {
|
|
96
|
+
return 'query-builder__setup__data-space-setup';
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
showAdvancedSearchPanel(): void {
|
|
100
|
+
this.advancedSearchState = new DataSpaceAdvancedSearchState(
|
|
101
|
+
this.applicationStore,
|
|
102
|
+
this.graphManagerState,
|
|
103
|
+
this.depotServerClient,
|
|
104
|
+
{
|
|
105
|
+
viewProject: createViewProjectHandler(this.applicationStore),
|
|
106
|
+
viewSDLCProject: createViewSDLCProjectHandler(
|
|
107
|
+
this.applicationStore,
|
|
108
|
+
this.depotServerClient,
|
|
109
|
+
),
|
|
110
|
+
},
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
hideAdvancedSearchPanel(): void {
|
|
115
|
+
this.advancedSearchState = undefined;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,340 @@
|
|
|
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 {
|
|
18
|
+
DataSpaceQueryBuilderState,
|
|
19
|
+
ResolvedDataSpaceEntityWithOrigin,
|
|
20
|
+
} from '@finos/legend-extension-dsl-data-space/application';
|
|
21
|
+
import {
|
|
22
|
+
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
|
23
|
+
type DataSpaceExecutionContext,
|
|
24
|
+
DataSpaceServiceExecutableInfo,
|
|
25
|
+
extractDataSpaceInfo,
|
|
26
|
+
type DataSpace,
|
|
27
|
+
type DataSpaceExecutableAnalysisResult,
|
|
28
|
+
type DataSpaceAnalysisResult,
|
|
29
|
+
} from '@finos/legend-extension-dsl-data-space/graph';
|
|
30
|
+
import {
|
|
31
|
+
generateDataSpaceQueryCreatorRoute,
|
|
32
|
+
generateDataSpaceTemplateQueryCreatorRoute,
|
|
33
|
+
} from '../../../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
|
|
34
|
+
import {
|
|
35
|
+
DataSpaceAdvancedSearchState,
|
|
36
|
+
type DataSpaceOption,
|
|
37
|
+
} from '@finos/legend-extension-dsl-data-space/application-query';
|
|
38
|
+
import {
|
|
39
|
+
DepotScope,
|
|
40
|
+
extractDepotEntityInfo,
|
|
41
|
+
resolveVersion,
|
|
42
|
+
SNAPSHOT_VERSION_ALIAS,
|
|
43
|
+
type StoredEntity,
|
|
44
|
+
type StoredSummaryEntity,
|
|
45
|
+
type DepotServerClient,
|
|
46
|
+
} from '@finos/legend-server-depot';
|
|
47
|
+
import {
|
|
48
|
+
CORE_PURE_PATH,
|
|
49
|
+
GraphDataWithOrigin,
|
|
50
|
+
LegendSDLC,
|
|
51
|
+
RuntimePointer,
|
|
52
|
+
type Class,
|
|
53
|
+
type GraphData,
|
|
54
|
+
type GraphManagerState,
|
|
55
|
+
type Runtime,
|
|
56
|
+
} from '@finos/legend-graph';
|
|
57
|
+
import {
|
|
58
|
+
ExtraOptionsConfig,
|
|
59
|
+
type QueryBuilderActionConfig,
|
|
60
|
+
type QueryBuilderConfig,
|
|
61
|
+
type QueryBuilderWorkflowState,
|
|
62
|
+
} from '@finos/legend-query-builder';
|
|
63
|
+
import type { LegendQueryApplicationStore } from '../../LegendQueryBaseStore.js';
|
|
64
|
+
import {
|
|
65
|
+
createViewProjectHandler,
|
|
66
|
+
createViewSDLCProjectHandler,
|
|
67
|
+
} from '../DataSpaceQueryBuilderHelper.js';
|
|
68
|
+
import {
|
|
69
|
+
assertErrorThrown,
|
|
70
|
+
LogEvent,
|
|
71
|
+
type GeneratorFn,
|
|
72
|
+
} from '@finos/legend-shared';
|
|
73
|
+
import type {
|
|
74
|
+
DepotEntityWithOrigin,
|
|
75
|
+
ProjectGAVCoordinates,
|
|
76
|
+
QueryableSourceInfo,
|
|
77
|
+
} from '@finos/legend-storage';
|
|
78
|
+
import { APPLICATION_EVENT } from '@finos/legend-application';
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Legend Query DataSpace query builder state.
|
|
82
|
+
*/
|
|
83
|
+
export class LegendQueryDataSpaceQueryBuilderState extends DataSpaceQueryBuilderState {
|
|
84
|
+
declare applicationStore: LegendQueryApplicationStore;
|
|
85
|
+
depotServerClient: DepotServerClient;
|
|
86
|
+
project: ProjectGAVCoordinates;
|
|
87
|
+
disableDataProducts = false;
|
|
88
|
+
declare extraOptionsConfig: ExtraOptionsConfig<DepotEntityWithOrigin>;
|
|
89
|
+
|
|
90
|
+
constructor(
|
|
91
|
+
applicationStore: LegendQueryApplicationStore,
|
|
92
|
+
graphManagerState: GraphManagerState,
|
|
93
|
+
workflow: QueryBuilderWorkflowState,
|
|
94
|
+
actionConfig: QueryBuilderActionConfig,
|
|
95
|
+
dataSpace: DataSpace,
|
|
96
|
+
executionContext: DataSpaceExecutionContext,
|
|
97
|
+
isLightGraphEnabled: boolean,
|
|
98
|
+
depotServerClient: DepotServerClient,
|
|
99
|
+
project: ProjectGAVCoordinates,
|
|
100
|
+
prioritizeEntityFunc:
|
|
101
|
+
| ((val: ResolvedDataSpaceEntityWithOrigin) => boolean)
|
|
102
|
+
| undefined,
|
|
103
|
+
onDataSpaceChange: (
|
|
104
|
+
val: ResolvedDataSpaceEntityWithOrigin,
|
|
105
|
+
) => Promise<void>,
|
|
106
|
+
dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined,
|
|
107
|
+
onExecutionContextChange?:
|
|
108
|
+
| ((val: DataSpaceExecutionContext) => void)
|
|
109
|
+
| undefined,
|
|
110
|
+
onRuntimeChange?: ((val: Runtime) => void) | undefined,
|
|
111
|
+
onClassChange?: ((val: Class) => void) | undefined,
|
|
112
|
+
config?: QueryBuilderConfig | undefined,
|
|
113
|
+
sourceInfo?: QueryableSourceInfo | undefined,
|
|
114
|
+
) {
|
|
115
|
+
super(
|
|
116
|
+
applicationStore,
|
|
117
|
+
graphManagerState,
|
|
118
|
+
workflow,
|
|
119
|
+
actionConfig,
|
|
120
|
+
dataSpace,
|
|
121
|
+
executionContext,
|
|
122
|
+
isLightGraphEnabled,
|
|
123
|
+
prioritizeEntityFunc,
|
|
124
|
+
onDataSpaceChange,
|
|
125
|
+
dataSpaceAnalysisResult,
|
|
126
|
+
onExecutionContextChange,
|
|
127
|
+
onRuntimeChange,
|
|
128
|
+
onClassChange,
|
|
129
|
+
config,
|
|
130
|
+
sourceInfo,
|
|
131
|
+
);
|
|
132
|
+
this.project = project;
|
|
133
|
+
this.depotServerClient = depotServerClient;
|
|
134
|
+
this.extraOptionsConfig = new ExtraOptionsConfig<DepotEntityWithOrigin>(
|
|
135
|
+
'DataProduct',
|
|
136
|
+
'DEPOT_ENTITY_WITH_ORIGIN',
|
|
137
|
+
undefined,
|
|
138
|
+
undefined,
|
|
139
|
+
(val: DepotEntityWithOrigin): string => val.path,
|
|
140
|
+
undefined,
|
|
141
|
+
undefined,
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
override get isAdvancedDataSpaceSearchEnabled(): boolean {
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
override get canVisitTemplateQuery(): boolean {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
get sdlc(): LegendSDLC {
|
|
154
|
+
return new LegendSDLC(
|
|
155
|
+
this.project.groupId,
|
|
156
|
+
this.project.artifactId,
|
|
157
|
+
resolveVersion(this.project.versionId),
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
override get isDataSpaceLinkable(): boolean {
|
|
162
|
+
return true;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
withOptions(
|
|
166
|
+
dataspaces: ResolvedDataSpaceEntityWithOrigin[] | undefined,
|
|
167
|
+
products: DepotEntityWithOrigin[] | undefined,
|
|
168
|
+
): LegendQueryDataSpaceQueryBuilderState {
|
|
169
|
+
this.entities = dataspaces;
|
|
170
|
+
if (products) {
|
|
171
|
+
this.extraOptionsConfig.setOptions(
|
|
172
|
+
products.map((e) => ({
|
|
173
|
+
label: e.path,
|
|
174
|
+
value: e,
|
|
175
|
+
})),
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
return this;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
override copyDataSpaceLinkToClipboard(): void {
|
|
182
|
+
const dataSpace = this.dataSpace;
|
|
183
|
+
const executionContext = this.executionContext;
|
|
184
|
+
const runtimePath =
|
|
185
|
+
this.executionContextState.runtimeValue instanceof RuntimePointer
|
|
186
|
+
? this.executionContextState.runtimeValue.packageableRuntime.value.path
|
|
187
|
+
: undefined;
|
|
188
|
+
const route =
|
|
189
|
+
this.applicationStore.navigationService.navigator.generateAddress(
|
|
190
|
+
generateDataSpaceQueryCreatorRoute(
|
|
191
|
+
this.project.groupId,
|
|
192
|
+
this.project.artifactId,
|
|
193
|
+
this.project.versionId,
|
|
194
|
+
dataSpace.path,
|
|
195
|
+
executionContext.name,
|
|
196
|
+
runtimePath,
|
|
197
|
+
this.class?.path,
|
|
198
|
+
),
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
navigator.clipboard
|
|
202
|
+
.writeText(route)
|
|
203
|
+
.catch(() =>
|
|
204
|
+
this.applicationStore.notificationService.notifyError(
|
|
205
|
+
'Error copying data product query set up link to clipboard',
|
|
206
|
+
),
|
|
207
|
+
);
|
|
208
|
+
|
|
209
|
+
this.applicationStore.notificationService.notifySuccess(
|
|
210
|
+
'Copied data product query set up link to clipboard',
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
override get selectedDataSpaceOption(): DataSpaceOption {
|
|
215
|
+
return {
|
|
216
|
+
label: this.dataSpace.title ?? this.dataSpace.name,
|
|
217
|
+
value: new ResolvedDataSpaceEntityWithOrigin(
|
|
218
|
+
{
|
|
219
|
+
groupId: this.project.groupId,
|
|
220
|
+
artifactId: this.project.artifactId,
|
|
221
|
+
versionId: this.project.versionId,
|
|
222
|
+
},
|
|
223
|
+
this.dataSpace.title,
|
|
224
|
+
this.dataSpace.name,
|
|
225
|
+
this.dataSpace.path,
|
|
226
|
+
this.dataSpace.defaultExecutionContext.name,
|
|
227
|
+
),
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
override *loadEntities(): GeneratorFn<void> {
|
|
232
|
+
if (this.entities === undefined) {
|
|
233
|
+
this.loadEntitiesState.inProgress();
|
|
234
|
+
const toGetSnapShot = this.project.versionId === SNAPSHOT_VERSION_ALIAS;
|
|
235
|
+
try {
|
|
236
|
+
// use promise
|
|
237
|
+
this.entities = (
|
|
238
|
+
(yield this.depotServerClient.getEntitiesByClassifier(
|
|
239
|
+
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
|
240
|
+
{
|
|
241
|
+
scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
|
|
242
|
+
},
|
|
243
|
+
)) as StoredEntity[]
|
|
244
|
+
).map((storedEntity) =>
|
|
245
|
+
extractDataSpaceInfo(storedEntity, toGetSnapShot),
|
|
246
|
+
);
|
|
247
|
+
const dataProducts = this.disableDataProducts
|
|
248
|
+
? []
|
|
249
|
+
: (
|
|
250
|
+
(yield this.depotServerClient.getEntitiesSummaryByClassifier(
|
|
251
|
+
CORE_PURE_PATH.DATA_PRODUCT,
|
|
252
|
+
{
|
|
253
|
+
scope: DepotScope.RELEASES,
|
|
254
|
+
summary: true,
|
|
255
|
+
},
|
|
256
|
+
)) as StoredSummaryEntity[]
|
|
257
|
+
).map((storedEntity) => {
|
|
258
|
+
return extractDepotEntityInfo(storedEntity, false);
|
|
259
|
+
});
|
|
260
|
+
this.extraOptionsConfig.setOptions(
|
|
261
|
+
dataProducts.map((e) => ({
|
|
262
|
+
label: e.name,
|
|
263
|
+
value: e,
|
|
264
|
+
})),
|
|
265
|
+
);
|
|
266
|
+
this.loadEntitiesState.pass();
|
|
267
|
+
} catch (error) {
|
|
268
|
+
assertErrorThrown(error);
|
|
269
|
+
this.loadEntitiesState.fail();
|
|
270
|
+
this.applicationStore.notificationService.notifyError(error);
|
|
271
|
+
this.applicationStore.logService.error(
|
|
272
|
+
LogEvent.create(APPLICATION_EVENT.GENERIC_FAILURE),
|
|
273
|
+
error,
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
override visitTemplateQuery(
|
|
280
|
+
dataSpace: DataSpace,
|
|
281
|
+
template: DataSpaceExecutableAnalysisResult,
|
|
282
|
+
): void {
|
|
283
|
+
let templateId;
|
|
284
|
+
if (template.info) {
|
|
285
|
+
if (template.info.id) {
|
|
286
|
+
templateId = template.info.id;
|
|
287
|
+
} else if (template.info instanceof DataSpaceServiceExecutableInfo) {
|
|
288
|
+
templateId = template.executable ?? template.info.pattern;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (!templateId) {
|
|
292
|
+
this.applicationStore.notificationService.notifyWarning(
|
|
293
|
+
`Can't visit template query without an Id`,
|
|
294
|
+
);
|
|
295
|
+
} else {
|
|
296
|
+
this.applicationStore.navigationService.navigator.visitAddress(
|
|
297
|
+
this.applicationStore.navigationService.navigator.generateAddress(
|
|
298
|
+
generateDataSpaceTemplateQueryCreatorRoute(
|
|
299
|
+
this.project.groupId,
|
|
300
|
+
this.project.artifactId,
|
|
301
|
+
this.project.versionId,
|
|
302
|
+
dataSpace.path,
|
|
303
|
+
templateId,
|
|
304
|
+
),
|
|
305
|
+
),
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
override showAdvancedSearchPanel(dataSpace: DataSpace): void {
|
|
311
|
+
this.advancedSearchState = new DataSpaceAdvancedSearchState(
|
|
312
|
+
this.applicationStore,
|
|
313
|
+
this.graphManagerState,
|
|
314
|
+
this.depotServerClient,
|
|
315
|
+
{
|
|
316
|
+
viewProject: createViewProjectHandler(this.applicationStore),
|
|
317
|
+
viewSDLCProject: createViewSDLCProjectHandler(
|
|
318
|
+
this.applicationStore,
|
|
319
|
+
this.depotServerClient,
|
|
320
|
+
),
|
|
321
|
+
},
|
|
322
|
+
new ResolvedDataSpaceEntityWithOrigin(
|
|
323
|
+
{
|
|
324
|
+
groupId: this.project.groupId,
|
|
325
|
+
artifactId: this.project.artifactId,
|
|
326
|
+
versionId: this.project.versionId,
|
|
327
|
+
},
|
|
328
|
+
dataSpace.title,
|
|
329
|
+
dataSpace.name,
|
|
330
|
+
dataSpace.path,
|
|
331
|
+
dataSpace.defaultExecutionContext.name,
|
|
332
|
+
),
|
|
333
|
+
this.project.versionId === SNAPSHOT_VERSION_ALIAS,
|
|
334
|
+
);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
override getGraphData(): GraphData {
|
|
338
|
+
return new GraphDataWithOrigin(this.sdlc);
|
|
339
|
+
}
|
|
340
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -76,10 +76,12 @@
|
|
|
76
76
|
"./src/stores/UpdateExistingServiceQuerySetupStore.ts",
|
|
77
77
|
"./src/stores/__test-utils__/LegendQueryApplicationTestUtils.ts",
|
|
78
78
|
"./src/stores/data-cube/ExistingQueryDataCubeViewer.ts",
|
|
79
|
+
"./src/stores/data-product/query-builder/LegendQueryDataProductQueryBuilderState.ts",
|
|
79
80
|
"./src/stores/data-space/DataSpaceQueryBuilderHelper.ts",
|
|
80
81
|
"./src/stores/data-space/DataSpaceQueryCreatorStore.ts",
|
|
81
|
-
"./src/stores/data-space/DataSpaceQuerySetupState.ts",
|
|
82
82
|
"./src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts",
|
|
83
|
+
"./src/stores/data-space/LegendQueryBareQueryBuilderState.ts",
|
|
84
|
+
"./src/stores/data-space/query-builder/LegendQueryDataSpaceQueryBuilderState.ts",
|
|
83
85
|
"./src/application/LegendQuery.tsx",
|
|
84
86
|
"./src/components/CloneQueryServiceSetup.tsx",
|
|
85
87
|
"./src/components/Core_LegendQueryApplicationPlugin.tsx",
|
|
@@ -1,44 +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 DepotServerClient } from '@finos/legend-server-depot';
|
|
17
|
-
import type { GraphManagerState } from '@finos/legend-graph';
|
|
18
|
-
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
|
19
|
-
import { type QueryBuilderConfig, QueryBuilderState } from '@finos/legend-query-builder';
|
|
20
|
-
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
|
21
|
-
import { type DataSpaceInfo } from '@finos/legend-extension-dsl-data-space/application';
|
|
22
|
-
import { type QueryEditorStore } from '../QueryEditorStore.js';
|
|
23
|
-
import { DataSpaceAdvancedSearchState } from '@finos/legend-extension-dsl-data-space/application-query';
|
|
24
|
-
export declare class DataSpaceQuerySetupState extends QueryBuilderState {
|
|
25
|
-
editorStore: QueryEditorStore;
|
|
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
|
-
isLightGraphEnabled: boolean;
|
|
36
|
-
constructor(editorStore: QueryEditorStore, 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);
|
|
37
|
-
get isResultPanelHidden(): boolean;
|
|
38
|
-
get sideBarClassName(): string | undefined;
|
|
39
|
-
configureDataSpaceOptions(val: DataSpaceInfo[]): void;
|
|
40
|
-
showAdvancedSearchPanel(): void;
|
|
41
|
-
hideAdvancedSearchPanel(): void;
|
|
42
|
-
initializeDataSpaceSetup(): GeneratorFn<void>;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=DataSpaceQuerySetupState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.d.ts","sourceRoot":"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,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IAC/D,mBAAmB,EAAG,OAAO,CAAC;gBAG5B,WAAW,EAAE,gBAAgB,EAC7B,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,EAC/C,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,IAAI,EACT,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,EAClB,MAAM,EAAE,kBAAkB,GAAG,SAAS;IA4BxC,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,yBAAyB,CAAC,GAAG,EAAE,aAAa,EAAE,GAAG,IAAI;IAIrD,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,wBAAwB,IAAI,WAAW,CAAC,IAAI,CAAC;CAsB/C"}
|
|
@@ -1,89 +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 { DepotScope, } from '@finos/legend-server-depot';
|
|
17
|
-
import { APPLICATION_EVENT, } from '@finos/legend-application';
|
|
18
|
-
import { action, flow, makeObservable, observable } from 'mobx';
|
|
19
|
-
import { QueryBuilderState, QueryBuilderDataBrowserWorkflow, } from '@finos/legend-query-builder';
|
|
20
|
-
import { ActionState, assertErrorThrown, LogEvent, } from '@finos/legend-shared';
|
|
21
|
-
import { extractDataSpaceInfo, } from '@finos/legend-extension-dsl-data-space/application';
|
|
22
|
-
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '@finos/legend-extension-dsl-data-space/graph';
|
|
23
|
-
import { QueryBuilderActionConfig_QueryApplication, } from '../QueryEditorStore.js';
|
|
24
|
-
import { renderDataSpaceQuerySetupSetupPanelContent } from '../../components/data-space/DataSpaceQuerySetup.js';
|
|
25
|
-
import { DataSpaceAdvancedSearchState } from '@finos/legend-extension-dsl-data-space/application-query';
|
|
26
|
-
export class DataSpaceQuerySetupState extends QueryBuilderState {
|
|
27
|
-
editorStore;
|
|
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
|
-
isLightGraphEnabled;
|
|
38
|
-
constructor(editorStore, applicationStore, graphManagerState, depotServerClient, onDataSpaceChange, viewProject, viewSDLCProject, config) {
|
|
39
|
-
super(applicationStore, graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, config);
|
|
40
|
-
makeObservable(this, {
|
|
41
|
-
dataSpaces: observable,
|
|
42
|
-
advancedSearchState: observable,
|
|
43
|
-
configureDataSpaceOptions: action,
|
|
44
|
-
showAdvancedSearchPanel: action,
|
|
45
|
-
hideAdvancedSearchPanel: action,
|
|
46
|
-
initializeDataSpaceSetup: flow,
|
|
47
|
-
});
|
|
48
|
-
this.editorStore = editorStore;
|
|
49
|
-
this.workflowState.updateActionConfig(new QueryBuilderActionConfig_QueryApplication(editorStore));
|
|
50
|
-
this.depotServerClient = depotServerClient;
|
|
51
|
-
this.onDataSpaceChange = onDataSpaceChange;
|
|
52
|
-
this.viewProject = viewProject;
|
|
53
|
-
this.viewSDLCProject = viewSDLCProject;
|
|
54
|
-
}
|
|
55
|
-
get isResultPanelHidden() {
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
|
-
get sideBarClassName() {
|
|
59
|
-
return 'query-builder__setup__data-space-setup';
|
|
60
|
-
}
|
|
61
|
-
configureDataSpaceOptions(val) {
|
|
62
|
-
this.dataSpaces = val;
|
|
63
|
-
}
|
|
64
|
-
showAdvancedSearchPanel() {
|
|
65
|
-
this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
|
|
66
|
-
viewProject: this.viewProject,
|
|
67
|
-
viewSDLCProject: this.viewSDLCProject,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
hideAdvancedSearchPanel() {
|
|
71
|
-
this.advancedSearchState = undefined;
|
|
72
|
-
}
|
|
73
|
-
*initializeDataSpaceSetup() {
|
|
74
|
-
this.loadDataSpacesState.inProgress();
|
|
75
|
-
try {
|
|
76
|
-
this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
|
77
|
-
scope: DepotScope.RELEASES,
|
|
78
|
-
})).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
|
|
79
|
-
this.loadDataSpacesState.pass();
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
assertErrorThrown(error);
|
|
83
|
-
this.loadDataSpacesState.fail();
|
|
84
|
-
this.applicationStore.notificationService.notifyError(error);
|
|
85
|
-
this.applicationStore.logService.error(LogEvent.create(APPLICATION_EVENT.GENERIC_FAILURE), error);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
//# sourceMappingURL=DataSpaceQuerySetupState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupState.js","sourceRoot":"","sources":["../../../src/stores/data-space/DataSpaceQuerySetupState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,UAAU,GAGX,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,iBAAiB,GAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,+BAA+B,GAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,QAAQ,GAET,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,oBAAoB,GAErB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,8CAA8C,CAAC;AAClG,OAAO,EACL,yCAAyC,GAE1C,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,0CAA0C,EAAE,MAAM,oDAAoD,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,0DAA0D,CAAC;AAExG,MAAM,OAAO,wBAAyB,SAAQ,iBAAiB;IAC7D,WAAW,CAAmB;IACrB,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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