@finos/legend-extension-dsl-data-space 10.3.0 → 10.3.1
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 +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 +4 -6
- 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
@@ -42,24 +42,7 @@ export enum DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN {
|
|
42
42
|
TEMPLATE_QUERY_ID = 'templateQueryId',
|
43
43
|
}
|
44
44
|
|
45
|
-
|
46
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.GAV]: string;
|
47
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.DATA_SPACE_PATH]: string;
|
48
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.EXECUTION_CONTEXT]: string;
|
49
|
-
[DATA_SPACE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.RUNTIME_PATH]?: string;
|
50
|
-
};
|
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_ID]: string;
|
56
|
-
};
|
57
|
-
|
58
|
-
export type DataSpaceQueryEditorQueryParams = {
|
59
|
-
[DATA_SPACE_QUERY_CREATOR_QUERY_PARAM_TOKEN.CLASS_PATH]?: string | undefined;
|
60
|
-
};
|
61
|
-
|
62
|
-
export const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
45
|
+
const DATA_SPACE_QUERY_ROUTE_PATTERN = Object.freeze({
|
63
46
|
SETUP: `/dataspace`,
|
64
47
|
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
48
|
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_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE}/:${DATA_SPACE_TEMPLATE_QUERY_CREATOR_ROUTE_PATTERN_TOKEN.TEMPLATE_QUERY_ID}`,
|
@@ -121,3 +104,49 @@ export const generateDataSpaceTemplateQueryCreatorRoute = (
|
|
121
104
|
templateQueryId,
|
122
105
|
},
|
123
106
|
);
|
107
|
+
enum LEGEND_QUERY_ROUTE_PATTERN_TOKEN {
|
108
|
+
GAV = 'gav',
|
109
|
+
QUERY_ID = 'queryId',
|
110
|
+
MAPPING_PATH = 'mappingPath',
|
111
|
+
RUNTIME_PATH = 'runtimePath',
|
112
|
+
SERVICE_PATH = 'servicePath',
|
113
|
+
}
|
114
|
+
|
115
|
+
const LEGEND_QUERY_ROUTE_PATTERN = Object.freeze({
|
116
|
+
SETUP: '/setup',
|
117
|
+
EDIT_EXISTING_QUERY_SETUP: '/setup/existing-query',
|
118
|
+
CREATE_MAPPING_QUERY_SETUP: '/setup/manual',
|
119
|
+
CLONE_SERVICE_QUERY_SETUP: '/setup/clone-service-query',
|
120
|
+
QUERY_PRODUCTIONIZER_SETUP: '/setup/productionize-query',
|
121
|
+
UPDATE_EXISTING_SERVICE_QUERY_SETUP: '/setup/update-existing-service-query',
|
122
|
+
LOAD_PROJECT_SERVICE_QUERY_SETUP: '/setup/load-project-service-query',
|
123
|
+
CREATE_FROM_MAPPING_QUERY: `/create/manual/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.MAPPING_PATH}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.RUNTIME_PATH}`,
|
124
|
+
CREATE_FROM_SERVICE_QUERY: `/create-from-service/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV}/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.SERVICE_PATH}`,
|
125
|
+
EDIT_EXISTING_QUERY: `/edit/:${LEGEND_QUERY_ROUTE_PATTERN_TOKEN.QUERY_ID}`,
|
126
|
+
});
|
127
|
+
|
128
|
+
export enum LEGEND_QUERY_QUERY_PARAM_TOKEN {
|
129
|
+
SERVICE_EXECUTION_KEY = 'executionKey',
|
130
|
+
}
|
131
|
+
export const generateServiceQueryCreatorRoute = (
|
132
|
+
groupId: string,
|
133
|
+
artifactId: string,
|
134
|
+
versionId: string,
|
135
|
+
servicePath: string,
|
136
|
+
executionKey?: string | undefined,
|
137
|
+
): string =>
|
138
|
+
addQueryParametersToUrl(
|
139
|
+
generatePath(LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_SERVICE_QUERY, {
|
140
|
+
[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.GAV]: generateGAVCoordinates(
|
141
|
+
groupId,
|
142
|
+
artifactId,
|
143
|
+
versionId,
|
144
|
+
),
|
145
|
+
[LEGEND_QUERY_ROUTE_PATTERN_TOKEN.SERVICE_PATH]: servicePath,
|
146
|
+
}),
|
147
|
+
stringifyQueryParams({
|
148
|
+
[LEGEND_QUERY_QUERY_PARAM_TOKEN.SERVICE_EXECUTION_KEY]: executionKey
|
149
|
+
? encodeURIComponent(executionKey)
|
150
|
+
: executionKey,
|
151
|
+
}),
|
152
|
+
);
|
@@ -31,16 +31,16 @@ import type {
|
|
31
31
|
TemplateQueryPanelContentRenderer,
|
32
32
|
} from '@finos/legend-query-builder';
|
33
33
|
import { DataSpaceQueryBuilderState } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
|
34
|
-
import {
|
35
|
-
createQueryClassTaggedValue,
|
36
|
-
createQueryDataSpaceTaggedValue,
|
37
|
-
} from '../stores/query/DataSpaceQueryCreatorStore.js';
|
38
34
|
import { DSL_DATA_SPACE_LEGEND_APPLICATION_COMMAND_CONFIG } from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
39
35
|
import type { QuerySearchSpecification } from '@finos/legend-graph';
|
40
36
|
import { configureDataGridComponent } from '@finos/legend-lego/data-grid';
|
41
|
-
import { renderDataSpaceQueryBuilderTemplateQueryPanelContent } from './query/DataSpaceQueryBuilderTemplateQueryPanelContent.js';
|
42
37
|
import { DataSpaceExecutableTemplate } from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
43
38
|
import { filterByType } from '@finos/legend-shared';
|
39
|
+
import {
|
40
|
+
createQueryClassTaggedValue,
|
41
|
+
createQueryDataSpaceTaggedValue,
|
42
|
+
} from '../stores/shared/DataSpaceUtils.js';
|
43
|
+
import { renderDataSpaceQueryBuilderTemplateQueryPanelContent } from './query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js';
|
44
44
|
|
45
45
|
export class DSL_DataSpace_LegendApplicationPlugin
|
46
46
|
extends LegendApplicationPlugin
|
package/src/components/index.ts
CHANGED
@@ -15,15 +15,22 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
export * from '../__lib__/DSL_DataSpace_LegendApplicationNavigation.js';
|
18
|
-
export * from '../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
19
18
|
export * from '../__lib__/shared/DSL_DataSpace_LegendNavigation.js';
|
20
19
|
|
20
|
+
export * from '../__lib__/DSL_DataSpace_LegendApplicationCommand.js';
|
21
21
|
export { DSL_DataSpace_LegendApplicationPlugin } from './DSL_DataSpace_LegendApplicationPlugin.js';
|
22
22
|
export { DataSpaceViewer } from './DataSpaceViewer.js';
|
23
23
|
export * from '../stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
|
24
24
|
export { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
25
|
-
export {
|
26
|
-
|
27
|
-
|
25
|
+
export {
|
26
|
+
DataSpaceQueryBuilderState,
|
27
|
+
DataSpaceProjectInfo,
|
28
|
+
} from '../stores/query-builder/DataSpaceQueryBuilderState.js';
|
29
|
+
export {
|
30
|
+
type DataSpaceInfo,
|
31
|
+
extractDataSpaceInfo,
|
32
|
+
} from '../stores/shared/DataSpaceInfo.js';
|
33
|
+
|
34
|
+
export * from '../stores/shared/DataSpaceUtils.js';
|
28
35
|
|
29
36
|
export * from './shared/DSL_DataSpace_Icon.js';
|
package/src/components/{query → query-builder}/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx
RENAMED
@@ -24,15 +24,15 @@ import {
|
|
24
24
|
} from '@finos/legend-art';
|
25
25
|
import { observer } from 'mobx-react-lite';
|
26
26
|
import { useRef } from 'react';
|
27
|
-
import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
28
|
-
import type { DataSpaceQueryBuilderState } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
29
27
|
import {
|
30
28
|
ActionAlertActionType,
|
31
29
|
ActionAlertType,
|
32
30
|
useApplicationStore,
|
33
31
|
} from '@finos/legend-application';
|
34
|
-
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
35
32
|
import { DocumentationLink } from '@finos/legend-lego/application';
|
33
|
+
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
34
|
+
import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
35
|
+
import type { DataSpaceQueryBuilderState } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
36
36
|
import { DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../../__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js';
|
37
37
|
|
38
38
|
const DataSpaceTemplateQueryDialog = observer(
|
@@ -14,4 +14,10 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
export {
|
17
|
+
export {
|
18
|
+
buildDataSpaceOption,
|
19
|
+
formatDataSpaceOptionLabel,
|
20
|
+
type DataSpaceOption,
|
21
|
+
} from './DataSpaceQueryBuilder.js';
|
22
|
+
export { DataSpaceAdvancedSearchModal } from './DataSpaceAdvancedSearchModal.js';
|
23
|
+
export { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
|
@@ -17,6 +17,7 @@
|
|
17
17
|
// Graph
|
18
18
|
export * from '../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
19
19
|
export * from '../graph/metamodel/pure/model/packageableElements/mapping/DSL_DataSpace_MappingIncludeDataSpace.js';
|
20
|
+
export * from '../graph/DSL_DataSpace_MetaModelConst.js';
|
20
21
|
|
21
22
|
export * from './DSL_DataSpace_GraphManagerPreset.js';
|
22
23
|
|
@@ -38,7 +38,6 @@ import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
38
38
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
39
39
|
import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
|
40
40
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
41
|
-
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
42
41
|
import {
|
43
42
|
type DataSpaceInfo,
|
44
43
|
extractDataSpaceInfo,
|
@@ -46,7 +45,10 @@ import {
|
|
46
45
|
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
47
46
|
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
48
47
|
import type { DataSpaceAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
49
|
-
import {
|
48
|
+
import {
|
49
|
+
generateDataSpaceQueryCreatorRoute,
|
50
|
+
generateServiceQueryCreatorRoute,
|
51
|
+
} from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
|
50
52
|
|
51
53
|
export class DataSpaceAdvancedSearchState {
|
52
54
|
readonly applicationStore: GenericLegendApplicationStore;
|
@@ -45,7 +45,7 @@ import {
|
|
45
45
|
uniq,
|
46
46
|
} from '@finos/legend-shared';
|
47
47
|
import { action, flow, makeObservable, observable } from 'mobx';
|
48
|
-
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query/DataSpaceQueryBuilder.js';
|
48
|
+
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
|
49
49
|
import {
|
50
50
|
DataSpace,
|
51
51
|
type DataSpaceExecutionContext,
|
@@ -0,0 +1,42 @@
|
|
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 { QueryTaggedValue } from '@finos/legend-graph';
|
18
|
+
import {
|
19
|
+
QUERY_PROFILE_PATH,
|
20
|
+
QUERY_PROFILE_TAG_CLASS,
|
21
|
+
QUERY_PROFILE_TAG_DATA_SPACE,
|
22
|
+
} from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
23
|
+
|
24
|
+
export const createQueryDataSpaceTaggedValue = (
|
25
|
+
dataSpacePath: string,
|
26
|
+
): QueryTaggedValue => {
|
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
|
+
|
34
|
+
export const createQueryClassTaggedValue = (
|
35
|
+
classPath: string,
|
36
|
+
): QueryTaggedValue => {
|
37
|
+
const taggedValue = new QueryTaggedValue();
|
38
|
+
taggedValue.profile = QUERY_PROFILE_PATH;
|
39
|
+
taggedValue.tag = QUERY_PROFILE_TAG_CLASS;
|
40
|
+
taggedValue.value = classPath;
|
41
|
+
return taggedValue;
|
42
|
+
};
|
package/tsconfig.json
CHANGED
@@ -35,11 +35,11 @@
|
|
35
35
|
"./src/__lib__/DSL_DataSpace_LegendApplicationCommand.ts",
|
36
36
|
"./src/__lib__/DSL_DataSpace_LegendApplicationNavigation.ts",
|
37
37
|
"./src/__lib__/query/DSL_DataSpace_LegendQueryDocumentation.ts",
|
38
|
-
"./src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts",
|
39
38
|
"./src/__lib__/shared/DSL_DataSpace_LegendNavigation.ts",
|
39
|
+
"./src/__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.ts",
|
40
40
|
"./src/components/index.ts",
|
41
|
-
"./src/components/query/QueryDataSpaceUtil.ts",
|
42
|
-
"./src/components/query/index.ts",
|
41
|
+
"./src/components/query-builder/QueryDataSpaceUtil.ts",
|
42
|
+
"./src/components/query-builder/index.ts",
|
43
43
|
"./src/graph/DSL_DataSpace_HashUtils.ts",
|
44
44
|
"./src/graph/DSL_DataSpace_MetaModelConst.ts",
|
45
45
|
"./src/graph/DSL_DataSpace_PureGraphPlugin.ts",
|
@@ -69,11 +69,9 @@
|
|
69
69
|
"./src/stores/DataSpaceViewerNavigation.ts",
|
70
70
|
"./src/stores/DataSpaceViewerState.ts",
|
71
71
|
"./src/stores/query/DataSpaceAdvancedSearchState.ts",
|
72
|
-
"./src/stores/query/DataSpaceQueryCreatorStore.ts",
|
73
|
-
"./src/stores/query/DataSpaceQuerySetupStore.ts",
|
74
|
-
"./src/stores/query/DataSpaceTemplateQueryCreatorStore.ts",
|
75
72
|
"./src/stores/query-builder/DataSpaceQueryBuilderState.ts",
|
76
73
|
"./src/stores/shared/DataSpaceInfo.ts",
|
74
|
+
"./src/stores/shared/DataSpaceUtils.ts",
|
77
75
|
"./src/components/DSL_DataSpace_LegendApplicationPlugin.tsx",
|
78
76
|
"./src/components/DataSpaceDataAccess.tsx",
|
79
77
|
"./src/components/DataSpaceDescription.tsx",
|
@@ -88,13 +86,9 @@
|
|
88
86
|
"./src/components/DataSpaceViewer.tsx",
|
89
87
|
"./src/components/DataSpaceViewerActivityBar.tsx",
|
90
88
|
"./src/components/DataSpaceWiki.tsx",
|
91
|
-
"./src/components/query/
|
92
|
-
"./src/components/query/
|
93
|
-
"./src/components/query/
|
94
|
-
"./src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx",
|
95
|
-
"./src/components/query/DataSpaceQueryCreator.tsx",
|
96
|
-
"./src/components/query/DataSpaceQuerySetup.tsx",
|
97
|
-
"./src/components/query/DataSpaceTemplateQueryCreator.tsx",
|
89
|
+
"./src/components/query-builder/DataSpaceAdvancedSearchModal.tsx",
|
90
|
+
"./src/components/query-builder/DataSpaceQueryBuilder.tsx",
|
91
|
+
"./src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx",
|
98
92
|
"./src/components/shared/DSL_DataSpace_Icon.tsx",
|
99
93
|
"./src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_SystemModels.json"
|
100
94
|
],
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryNavigation.d.ts","sourceRoot":"","sources":["../../../src/__lib__/query/DSL_DataSpace_LegendQueryNavigation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,oBAAY,4CAA4C;IACtD,GAAG,QAAQ;IACX,eAAe,kBAAkB;IACjC,iBAAiB,qBAAqB;IACtC,YAAY,gBAAgB;CAC7B;AAED,oBAAY,0CAA0C;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AAM,kCAAkC,GAAG,CAChD,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,mBAA2B,EAC3B,WAAgC,EAChC,SAA8B,EACtB,EAAE,CACV,uBAAuB,CACrB,YAAY,CACV,2BAA2B,CAAC,8BAA8B,CAAC,MAAM,CAAC,EAClE;IACE,CAAC,4CAA4C,CAAC,GAAG,CAAC,EAChD,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC;IACxD,CAAC,4CAA4C,CAAC,eAAe,CAAC,EAC5D,aAAa;IACf,CAAC,4CAA4C,CAAC,iBAAiB,CAAC,EAC9D,mBAAmB;IACrB,CAAC,4CAA4C,CAAC,YAAY,CAAC,EACzD,WAAW;CACd,CACF,EACD,oBAAoB,CAAC;IACnB,CAAC,0CAA0C,CAAC,UAAU,CAAC,EAAE,SAAS;QAChE,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC;QAC/B,CAAC,CAAC,SAAS;CACd,CAAC,CACH,CAAC;AAEJ,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,OAAe,EACf,UAAkB,EAClB,SAAiB,EACjB,aAAqB,EACrB,eAAuB,EACf,EAAE,CACV,YAAY,CACV,2BAA2B,CAAC,8BAA8B,CAAC,cAAc,CAAC,EAC1E;IACE,CAAC,qDAAqD,CAAC,GAAG,CAAC,EACzD,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC;IACxD,CAAC,qDAAqD,CAAC,eAAe,CAAC,EACrE,aAAa;IACf,CAAC,qDAAqD,CAAC,QAAQ,CAAC,EAC9D,qDAAqD,CAAC,QAAQ;IAChE,CAAC,qDAAqD,CAAC,iBAAiB,CAAC,EACvE,eAAe;CAClB,CACF,CAAC"}
|
@@ -1,29 +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
|
-
/// <reference types="react" resolution-mode="require"/>
|
17
|
-
import { type ExistingQueryEditorStateBuilder, type QueryEditorStore, type QuerySetupActionConfiguration, LegendQueryApplicationPlugin, type QueryEditorActionConfiguration, type NewQueryNavigationPath } from '@finos/legend-application-query';
|
18
|
-
import { type ApplicationPageEntry } from '@finos/legend-application';
|
19
|
-
export declare class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
20
|
-
constructor();
|
21
|
-
getExtraRootAppRedirectPath(): string | undefined;
|
22
|
-
getExtraApplicationPageEntries(): ApplicationPageEntry[];
|
23
|
-
getExtraQuerySetupActionConfigurations(): QuerySetupActionConfiguration[];
|
24
|
-
getExtraExistingQueryEditorStateBuilders(): ExistingQueryEditorStateBuilder[];
|
25
|
-
getExtraNewQueryNavigationPaths(): NewQueryNavigationPath[];
|
26
|
-
getExtraQueryHeaders(): ((editorStore: QueryEditorStore) => React.ReactNode | undefined)[];
|
27
|
-
getExtraQueryEditorActionConfigurations(): QueryEditorActionConfiguration[];
|
28
|
-
}
|
29
|
-
//# sourceMappingURL=DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAElC,4BAA4B,EAI5B,KAAK,8BAA8B,EACnC,KAAK,sBAAsB,EAC5B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,2BAA2B,CAAC;AA8DnC,qBAAa,0CAA2C,SAAQ,4BAA4B;;IAKjF,2BAA2B,IAAI,MAAM,GAAG,SAAS;IAIjD,8BAA8B,IAAI,oBAAoB,EAAE;IAwBxD,sCAAsC,IAAI,6BAA6B,EAAE;IAoBzE,wCAAwC,IAAI,+BAA+B,EAAE;IA+J7E,+BAA+B,IAAI,sBAAsB,EAAE;IA6B3D,oBAAoB,IAAI,CAAC,CAChC,WAAW,EAAE,gBAAgB,KAC1B,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,EAAE;IAoB1B,uCAAuC,IAAI,8BAA8B,EAAE;CAqFrF"}
|
@@ -1,243 +0,0 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
-
/**
|
3
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
-
* you may not use this file except in compliance with the License.
|
7
|
-
* You may obtain a copy of the License at
|
8
|
-
*
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
-
*
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
-
* See the License for the specific language governing permissions and
|
15
|
-
* limitations under the License.
|
16
|
-
*/
|
17
|
-
import packageJson from '../../../package.json' assert { type: 'json' };
|
18
|
-
import { ExistingQueryEditorStore, LegendQueryApplicationPlugin, LEGEND_QUERY_APP_EVENT, createViewProjectHandler, createViewSDLCProjectHandler, } from '@finos/legend-application-query';
|
19
|
-
import { ArrowCircleUpIcon, SquareIcon } from '@finos/legend-art';
|
20
|
-
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
21
|
-
import { DATA_SPACE_QUERY_ROUTE_PATTERN, generateDataSpaceQueryCreatorRoute, generateDataSpaceQuerySetupRoute, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
22
|
-
import { DataSpaceQueryCreator } from './DataSpaceQueryCreator.js';
|
23
|
-
import {} from '@finos/legend-graph';
|
24
|
-
import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
|
25
|
-
import { getOwnDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
|
26
|
-
import { assertErrorThrown, buildUrl, guaranteeNonNullable, LogEvent, } from '@finos/legend-shared';
|
27
|
-
import { DataSpaceQuerySetup } from './DataSpaceQuerySetup.js';
|
28
|
-
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
29
|
-
import { LATEST_VERSION_ALIAS, StoreProjectData, } from '@finos/legend-server-depot';
|
30
|
-
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
31
|
-
import { flowResult } from 'mobx';
|
32
|
-
import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
|
33
|
-
import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
|
34
|
-
import { parseProjectIdentifier } from '@finos/legend-storage';
|
35
|
-
import { getDataSpaceQueryInfo } from './QueryDataSpaceUtil.js';
|
36
|
-
import { generateDataSpaceTemplateQueryPromotionRoute } from '../../__lib__/shared/DSL_DataSpace_LegendNavigation.js';
|
37
|
-
const resolveExecutionContext = (dataSpace, queryMapping, queryRuntime) => {
|
38
|
-
const matchingExecContexts = dataSpace.executionContexts.filter((ec) => ec.mapping.value === queryMapping);
|
39
|
-
if (matchingExecContexts.length > 1) {
|
40
|
-
const matchRuntime = matchingExecContexts.find((exec) => exec.defaultRuntime.value.path === queryRuntime.path);
|
41
|
-
// TODO: we will safely do this for now. Long term we should save exec context key into query store
|
42
|
-
// we should make runtime/mapping optional
|
43
|
-
return matchRuntime ?? matchingExecContexts[0];
|
44
|
-
}
|
45
|
-
return matchingExecContexts[0];
|
46
|
-
};
|
47
|
-
export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
48
|
-
constructor() {
|
49
|
-
super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
|
50
|
-
}
|
51
|
-
getExtraRootAppRedirectPath() {
|
52
|
-
return DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP;
|
53
|
-
}
|
54
|
-
getExtraApplicationPageEntries() {
|
55
|
-
return [
|
56
|
-
// data space query editor setup
|
57
|
-
{
|
58
|
-
key: 'data-space-query-setup-application-page',
|
59
|
-
addressPatterns: [DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP],
|
60
|
-
renderer: DataSpaceQuerySetup,
|
61
|
-
},
|
62
|
-
// data space template query creator
|
63
|
-
// Heads-up: TEMPLATE_QUERY must come before CREATE as it has a more specific pattern than CREATE.
|
64
|
-
{
|
65
|
-
key: 'data-space-template-query-viewer-application-page',
|
66
|
-
addressPatterns: [DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY],
|
67
|
-
renderer: DataSpaceTemplateQueryCreator,
|
68
|
-
},
|
69
|
-
// data space query editor
|
70
|
-
{
|
71
|
-
key: 'data-space-query-editor-application-page',
|
72
|
-
addressPatterns: [DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE],
|
73
|
-
renderer: DataSpaceQueryCreator,
|
74
|
-
},
|
75
|
-
];
|
76
|
-
}
|
77
|
-
getExtraQuerySetupActionConfigurations() {
|
78
|
-
return [
|
79
|
-
{
|
80
|
-
key: 'create-query-from-data-space',
|
81
|
-
isAdvanced: false,
|
82
|
-
isCreateAction: true,
|
83
|
-
action: async (setupStore) => {
|
84
|
-
setupStore.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQuerySetupRoute());
|
85
|
-
},
|
86
|
-
label: 'Create query from data space',
|
87
|
-
className: 'query-setup__landing-page__action--data-space',
|
88
|
-
icon: (_jsx(SquareIcon, { className: "query-setup__landing-page__icon--data-space" })),
|
89
|
-
},
|
90
|
-
];
|
91
|
-
}
|
92
|
-
getExtraExistingQueryEditorStateBuilders() {
|
93
|
-
return [
|
94
|
-
async (query, editorStore) => {
|
95
|
-
const dataSpacePath = getDataSpaceQueryInfo(query);
|
96
|
-
if (dataSpacePath) {
|
97
|
-
const dataSpace = getOwnDataSpace(dataSpacePath, editorStore.graphManagerState.graph);
|
98
|
-
const mapping = query.mapping.value;
|
99
|
-
const matchingExecutionContext = resolveExecutionContext(dataSpace, mapping, query.runtime.value);
|
100
|
-
if (!matchingExecutionContext) {
|
101
|
-
// if a matching execution context is not found, it means this query is not
|
102
|
-
// properly created from a data space, therefore, we cannot support this case
|
103
|
-
return undefined;
|
104
|
-
}
|
105
|
-
let dataSpaceAnalysisResult;
|
106
|
-
try {
|
107
|
-
const project = StoreProjectData.serialization.fromJson(await editorStore.depotServerClient.getProject(query.groupId, query.artifactId));
|
108
|
-
dataSpaceAnalysisResult =
|
109
|
-
await DSL_DataSpace_getGraphManagerExtension(editorStore.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, query.versionId, dataSpace.path, editorStore.depotServerClient));
|
110
|
-
}
|
111
|
-
catch {
|
112
|
-
// do nothing
|
113
|
-
}
|
114
|
-
const projectInfo = new DataSpaceProjectInfo(query.groupId, query.artifactId, query.versionId, createViewProjectHandler(editorStore.applicationStore), createViewSDLCProjectHandler(editorStore.applicationStore, editorStore.depotServerClient));
|
115
|
-
const sourceInfo = {
|
116
|
-
groupId: projectInfo.groupId,
|
117
|
-
artifactId: projectInfo.artifactId,
|
118
|
-
versionId: projectInfo.versionId,
|
119
|
-
dataSpace: dataSpace.path,
|
120
|
-
};
|
121
|
-
const dataSpaceQueryBuilderState = new DataSpaceQueryBuilderState(editorStore.applicationStore, editorStore.graphManagerState, editorStore.depotServerClient, dataSpace, matchingExecutionContext, (dataSpaceInfo) => {
|
122
|
-
if (dataSpaceInfo.defaultExecutionContext) {
|
123
|
-
const proceed = () => editorStore.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
124
|
-
dataSpaceInfo.path, guaranteeNonNullable(dataSpaceInfo.defaultExecutionContext), undefined, undefined));
|
125
|
-
const updateQueryAndProceed = async () => {
|
126
|
-
try {
|
127
|
-
await flowResult(editorStore.updateState.updateQuery(undefined, undefined));
|
128
|
-
proceed();
|
129
|
-
}
|
130
|
-
catch (error) {
|
131
|
-
assertErrorThrown(error);
|
132
|
-
editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE), error);
|
133
|
-
editorStore.applicationStore.notificationService.notifyError(error);
|
134
|
-
}
|
135
|
-
};
|
136
|
-
if (!query.isCurrentUserQuery ||
|
137
|
-
!editorStore.queryBuilderState?.changeDetectionState
|
138
|
-
.hasChanged) {
|
139
|
-
proceed();
|
140
|
-
}
|
141
|
-
else {
|
142
|
-
editorStore.applicationStore.alertService.setActionAlertInfo({
|
143
|
-
message: `To change the data space, you need to save the current query
|
144
|
-
to proceed`,
|
145
|
-
type: ActionAlertType.CAUTION,
|
146
|
-
actions: [
|
147
|
-
{
|
148
|
-
label: 'Save query and Proceed',
|
149
|
-
type: ActionAlertActionType.PROCEED_WITH_CAUTION,
|
150
|
-
handler: () => {
|
151
|
-
updateQueryAndProceed().catch(editorStore.applicationStore.alertUnhandledError);
|
152
|
-
},
|
153
|
-
},
|
154
|
-
{
|
155
|
-
label: 'Abort',
|
156
|
-
type: ActionAlertActionType.PROCEED,
|
157
|
-
default: true,
|
158
|
-
},
|
159
|
-
],
|
160
|
-
});
|
161
|
-
}
|
162
|
-
}
|
163
|
-
else {
|
164
|
-
editorStore.applicationStore.notificationService.notifyWarning(`Can't switch data space: default execution context not specified`);
|
165
|
-
}
|
166
|
-
}, true, dataSpaceAnalysisResult, undefined, undefined, undefined, projectInfo, editorStore.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
167
|
-
const mappingModelCoverageAnalysisResult = dataSpaceAnalysisResult?.executionContextsIndex.get(matchingExecutionContext.name)?.mappingModelCoverageAnalysisResult;
|
168
|
-
if (mappingModelCoverageAnalysisResult) {
|
169
|
-
dataSpaceQueryBuilderState.explorerState.mappingModelCoverageAnalysisResult =
|
170
|
-
mappingModelCoverageAnalysisResult;
|
171
|
-
}
|
172
|
-
return dataSpaceQueryBuilderState;
|
173
|
-
}
|
174
|
-
return undefined;
|
175
|
-
},
|
176
|
-
];
|
177
|
-
}
|
178
|
-
getExtraNewQueryNavigationPaths() {
|
179
|
-
return [
|
180
|
-
(query, editorStore) => {
|
181
|
-
const dataSpacePath = getDataSpaceQueryInfo(query);
|
182
|
-
const queryBuilderState = editorStore.queryBuilderState;
|
183
|
-
if (dataSpacePath &&
|
184
|
-
queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
185
|
-
queryBuilderState.executionContext.name;
|
186
|
-
return generateDataSpaceQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, dataSpacePath,
|
187
|
-
// TODO: fix execution key once that is fixed
|
188
|
-
queryBuilderState.executionContext.name, undefined, undefined);
|
189
|
-
}
|
190
|
-
return undefined;
|
191
|
-
},
|
192
|
-
];
|
193
|
-
}
|
194
|
-
getExtraQueryHeaders() {
|
195
|
-
return [
|
196
|
-
(editorStore) => {
|
197
|
-
if (editorStore instanceof DataSpaceTemplateQueryCreatorStore) {
|
198
|
-
return (_jsxs("div", { className: "query-editor__dataspace__header", children: [_jsx("div", { className: "query-editor__header__content__main query-editor__header__content__title__text query-editor__dataspace__header__title__text", children: editorStore.templateQueryTitle }), _jsx("div", { className: "query-editor__dataspace__header__title__tag", children: "template" })] }));
|
199
|
-
}
|
200
|
-
return undefined;
|
201
|
-
},
|
202
|
-
];
|
203
|
-
}
|
204
|
-
getExtraQueryEditorActionConfigurations() {
|
205
|
-
return [
|
206
|
-
{
|
207
|
-
key: 'promote-as-curated-template-query',
|
208
|
-
renderer: (editorStore, queryBuilderState) => {
|
209
|
-
const proceedCuratedTemplateQueryPromotion = async () => {
|
210
|
-
if (!(editorStore instanceof ExistingQueryEditorStore &&
|
211
|
-
queryBuilderState instanceof DataSpaceQueryBuilderState)) {
|
212
|
-
return;
|
213
|
-
}
|
214
|
-
// fetch project data
|
215
|
-
const project = StoreProjectData.serialization.fromJson(await editorStore.depotServerClient.getProject(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId));
|
216
|
-
// find the matching SDLC instance
|
217
|
-
const projectIDPrefix = parseProjectIdentifier(project.projectId).prefix;
|
218
|
-
const matchingSDLCEntry = editorStore.applicationStore.config.studioInstances.find((entry) => entry.sdlcProjectIDPrefix === projectIDPrefix);
|
219
|
-
if (matchingSDLCEntry) {
|
220
|
-
editorStore.applicationStore.navigationService.navigator.visitAddress(buildUrl([
|
221
|
-
editorStore.applicationStore.config.studioApplicationUrl,
|
222
|
-
generateDataSpaceTemplateQueryPromotionRoute(editorStore.lightQuery.groupId, editorStore.lightQuery.artifactId, editorStore.lightQuery.versionId, queryBuilderState.dataSpace.path, editorStore.lightQuery.id),
|
223
|
-
]));
|
224
|
-
}
|
225
|
-
else {
|
226
|
-
editorStore.applicationStore.notificationService.notifyWarning(`Can't find the corresponding SDLC instance to productionize the query`);
|
227
|
-
}
|
228
|
-
};
|
229
|
-
const proceed = () => {
|
230
|
-
queryBuilderState.changeDetectionState.alertUnsavedChanges(() => {
|
231
|
-
proceedCuratedTemplateQueryPromotion().catch(editorStore.applicationStore.alertUnhandledError);
|
232
|
-
});
|
233
|
-
};
|
234
|
-
return (_jsx(_Fragment, { children: editorStore instanceof ExistingQueryEditorStore &&
|
235
|
-
queryBuilderState instanceof DataSpaceQueryBuilderState && (_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: proceed, title: !(editorStore instanceof ExistingQueryEditorStore)
|
236
|
-
? 'Please save your query first before promoting'
|
237
|
-
: 'Promote Curated Template query...', children: [_jsx(ArrowCircleUpIcon, { className: "query-editor__header__action__icon--productionize" }), _jsx("div", { className: "query-editor__header__action__label", children: "Promote as Template Query" })] })) }));
|
238
|
-
},
|
239
|
-
},
|
240
|
-
];
|
241
|
-
}
|
242
|
-
}
|
243
|
-
//# sourceMappingURL=DSL_DataSpace_LegendQueryApplicationPlugin.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,SAAS,IAAI,EAAE,MAAM,EAAE,CAAC;AACxE,OAAO,EAIL,wBAAwB,EACxB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,4BAA4B,GAG7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,qBAAqB,EACrB,eAAe,GAEhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,GACjC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAIN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,0DAA0D,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,yDAAyD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CAAC;gCAChD,CAAC,CAAC,+CAA+C;gCACjD,CAAC,CAAC,mCAAmC,aAGzC,KAAC,iBAAiB,IAAC,SAAS,EAAC,mDAAmD,GAAG,EACnF,cAAK,SAAS,EAAC,qCAAqC,0CAE9C,IACC,CACV,GACF,CACJ,CAAC;gBACJ,CAAC;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAQvG,eAAO,MAAM,4BAA4B,WAC/B;IACN,WAAW,EAAE,4BAA4B,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;;CAsLF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchModal.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,MAAM,EACN,SAAS,EACT,cAAc,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SA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AS,EAAE,IAAI,CACb,6DAA6D,EAC7D;wCACE,qEAAqE,EACnE,WAAW,CAAC,aAAa;qCAC5B,CACF,EACD,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAE,IACL,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KACrC,6EAA6E,EAC7E,OAAO,EAAE,iBAAiB,YAE1B,KAAC,QAAQ,KAAG,GACL,EACT,iBACE,SAAS,EAAC,wDAAwD,EAClE,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,yBAAyB,EAC/B,OAAO,EAAE,oBAAoB,YAE7B,KAAC,cAAc,KAAG,GACX,IACL,EACN,eAAK,SAAS,EAAC,0CAA0C,aACvD,KAAC,qBAAqB,IACpB,SAAS,EAAE,WAAW,CAAC,kBAAkB,CAAC,YAAY,GACtD,EACD,WAAW,CAAC,oBAAoB,IAAI,CACnC,KAAC,eAAe,IACd,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,GACtD,CACH,EACA,CAAC,WAAW,CAAC,oBAAoB,IAAI,CACpC,8BACG,WAAW,CAAC,kBAAkB,CAAC,YAAY,IAAI,CAC9C,KAAC,iBAAiB,cACf,WAAW,CAAC,kBAAkB,CAAC,OAAO,GACrB,CACrB,EACA,WAAW,CAAC,kBAAkB,CAAC,SAAS,IAAI,CAC3C,KAAC,iBAAiB,cAChB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,wDAAwD,YACrE,KAAC,eAAe,KAAG,GACf,EACN,cAAK,SAAS,EAAC,wDAAwD,YACpE,uBAAuB,GACpB,IACF,GACY,CACrB,IACA,CACJ,IACG,IACF,IACA,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,0DAA0D,CAAC;AAYlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAS1E,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,oBAAoB,UACxB,aAAa,KACnB,eAGD,CAAC;AACH,eAAO,MAAM,0BAA0B,WAC7B,eAAe,KACtB,MAAM,SAiCR,CAAC;AAuQF,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
|