@finos/legend-extension-dsl-data-space 10.2.1 → 10.2.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts +3 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js +23 -7
- package/lib/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.d.ts +19 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.d.ts.map +1 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.js +20 -0
- package/lib/components/query/DSL_DataSpace_LegendQueryDocumentation.js.map +1 -0
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js +3 -1
- package/lib/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -1
- package/lib/components/query/QueryDataSpaceUtil.d.ts +19 -0
- package/lib/components/query/QueryDataSpaceUtil.d.ts.map +1 -0
- package/lib/components/query/QueryDataSpaceUtil.js +25 -0
- package/lib/components/query/QueryDataSpaceUtil.js.map +1 -0
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.d.ts.map +1 -1
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js +3 -1
- package/lib/components/studio/DataSpaceTemplateQueryPromoteReview.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/package.json +7 -7
- package/src/components/query/DSL_DataSpace_LegendQueryApplicationPlugin.tsx +37 -14
- package/src/components/query/DSL_DataSpace_LegendQueryDocumentation.ts +19 -0
- package/src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +7 -0
- package/src/components/query/QueryDataSpaceUtil.ts +34 -0
- package/src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx +7 -0
- package/tsconfig.json +2 -0
@@ -14,13 +14,15 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
/// <reference types="react" resolution-mode="require"/>
|
17
|
-
import { type ExistingQueryEditorStateBuilder, type QueryEditorStore, type QuerySetupActionConfiguration, LegendQueryApplicationPlugin, type QueryEditorActionConfiguration } from '@finos/legend-application-query';
|
17
|
+
import { type ExistingQueryEditorStateBuilder, type QueryEditorStore, type QuerySetupActionConfiguration, LegendQueryApplicationPlugin, type QueryEditorActionConfiguration, type NewQueryNavigationPath } from '@finos/legend-application-query';
|
18
18
|
import { type ApplicationPageEntry } from '@finos/legend-application';
|
19
19
|
export declare class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
20
20
|
constructor();
|
21
|
+
getExtraRootAppRedirectPath(): string | undefined;
|
21
22
|
getExtraApplicationPageEntries(): ApplicationPageEntry[];
|
22
23
|
getExtraQuerySetupActionConfigurations(): QuerySetupActionConfiguration[];
|
23
24
|
getExtraExistingQueryEditorStateBuilders(): ExistingQueryEditorStateBuilder[];
|
25
|
+
getExtraNewQueryNavigationPaths(): NewQueryNavigationPath[];
|
24
26
|
getExtraQueryHeaders(): ((editorStore: QueryEditorStore) => React.ReactNode | undefined)[];
|
25
27
|
getExtraQueryEditorActionConfigurations(): QueryEditorActionConfiguration[];
|
26
28
|
}
|
@@ -1 +1 @@
|
|
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,
|
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"}
|
@@ -20,8 +20,7 @@ import { ArrowCircleUpIcon, SquareIcon } from '@finos/legend-art';
|
|
20
20
|
import { ActionAlertActionType, ActionAlertType, } from '@finos/legend-application';
|
21
21
|
import { DATA_SPACE_QUERY_ROUTE_PATTERN, generateDataSpaceQueryCreatorRoute, generateDataSpaceQuerySetupRoute, generateDataSpaceTemplateQueryPromotionRoute, } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
22
22
|
import { DataSpaceQueryCreator } from './DataSpaceQueryCreator.js';
|
23
|
-
import {
|
24
|
-
import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
23
|
+
import {} from '@finos/legend-graph';
|
25
24
|
import { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../../stores/query/DataSpaceQueryBuilderState.js';
|
26
25
|
import { getOwnDataSpace } from '../../graph-manager/DSL_DataSpace_GraphManagerHelper.js';
|
27
26
|
import { assertErrorThrown, buildUrl, guaranteeNonNullable, LogEvent, } from '@finos/legend-shared';
|
@@ -33,6 +32,7 @@ import { flowResult } from 'mobx';
|
|
33
32
|
import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
|
34
33
|
import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
|
35
34
|
import { parseProjectIdentifier } from '@finos/legend-storage';
|
35
|
+
import { getDataSpaceQueryInfo } from './QueryDataSpaceUtil.js';
|
36
36
|
const resolveExecutionContext = (dataSpace, queryMapping, queryRuntime) => {
|
37
37
|
const matchingExecContexts = dataSpace.executionContexts.filter((ec) => ec.mapping.value === queryMapping);
|
38
38
|
if (matchingExecContexts.length > 1) {
|
@@ -47,6 +47,9 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
47
47
|
constructor() {
|
48
48
|
super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
|
49
49
|
}
|
50
|
+
getExtraRootAppRedirectPath() {
|
51
|
+
return DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP;
|
52
|
+
}
|
50
53
|
getExtraApplicationPageEntries() {
|
51
54
|
return [
|
52
55
|
// data space query editor setup
|
@@ -88,11 +91,8 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
88
91
|
getExtraExistingQueryEditorStateBuilders() {
|
89
92
|
return [
|
90
93
|
async (query, editorStore) => {
|
91
|
-
const
|
92
|
-
|
93
|
-
isValidFullPath(taggedValue.value));
|
94
|
-
if (dataSpaceTaggedValue) {
|
95
|
-
const dataSpacePath = dataSpaceTaggedValue.value;
|
94
|
+
const dataSpacePath = getDataSpaceQueryInfo(query);
|
95
|
+
if (dataSpacePath) {
|
96
96
|
const dataSpace = getOwnDataSpace(dataSpacePath, editorStore.graphManagerState.graph);
|
97
97
|
const mapping = query.mapping.value;
|
98
98
|
const matchingExecutionContext = resolveExecutionContext(dataSpace, mapping, query.runtime.value);
|
@@ -174,6 +174,22 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
174
174
|
},
|
175
175
|
];
|
176
176
|
}
|
177
|
+
getExtraNewQueryNavigationPaths() {
|
178
|
+
return [
|
179
|
+
(query, editorStore) => {
|
180
|
+
const dataSpacePath = getDataSpaceQueryInfo(query);
|
181
|
+
const queryBuilderState = editorStore.queryBuilderState;
|
182
|
+
if (dataSpacePath &&
|
183
|
+
queryBuilderState instanceof DataSpaceQueryBuilderState) {
|
184
|
+
queryBuilderState.executionContext.name;
|
185
|
+
return generateDataSpaceQueryCreatorRoute(query.groupId, query.artifactId, query.versionId, dataSpacePath,
|
186
|
+
// TODO: fix execution key once that is fixed
|
187
|
+
queryBuilderState.executionContext.name, undefined, undefined);
|
188
|
+
}
|
189
|
+
return undefined;
|
190
|
+
},
|
191
|
+
];
|
192
|
+
}
|
177
193
|
getExtraQueryHeaders() {
|
178
194
|
return [
|
179
195
|
(editorStore) => {
|
@@ -1 +1 @@
|
|
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,
|
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,CAA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AAuE,CACxE,CAAC;yBACH;oBACH,CAAC,CAAC;oBAEJ,MAAM,OAAO,GAAG,GAAS,EAAE;wBACzB,iBAAiB,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,EAAE;4BAC9D,oCAAoC,EAAE,CAAC,KAAK,CAC1C,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CACjD,CAAC;wBACJ,CAAC,CAAC,CAAC;oBACL,CAAC,CAAC;oBAEF,OAAO,CACL,4BACG,WAAW,YAAY,wBAAwB;4BAC9C,iBAAiB,YAAY,0BAA0B,IAAI,CACzD,kBACE,SAAS,EAAC,wCAAwC,EAClD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,OAAO,EAChB,KAAK,EACH,CAAC,CAAC,WAAW,YAAY,wBAAwB,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"}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export declare enum DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY {
|
17
|
+
CURATED_TEMPLATE_QUERY = "dsl-dataspace.curated-template-query"
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=DSL_DataSpace_LegendQueryDocumentation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryDocumentation.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,4CAA4C;IACtD,sBAAsB,yCAAyC;CAChE"}
|
@@ -0,0 +1,20 @@
|
|
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
|
+
export var DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY;
|
17
|
+
(function (DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY) {
|
18
|
+
DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY["CURATED_TEMPLATE_QUERY"] = "dsl-dataspace.curated-template-query";
|
19
|
+
})(DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY || (DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY = {}));
|
20
|
+
//# sourceMappingURL=DSL_DataSpace_LegendQueryDocumentation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_LegendQueryDocumentation.js","sourceRoot":"","sources":["../../../src/components/query/DSL_DataSpace_LegendQueryDocumentation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,4CAEX;AAFD,WAAY,4CAA4C;IACtD,+GAA+D,CAAA;AACjE,CAAC,EAFW,4CAA4C,KAA5C,4CAA4C,QAEvD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kDAAkD,CAAC;AAqMnG,eAAO,MAAM,oDAAoD,sBAC5C,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
|
@@ -20,6 +20,8 @@ import { useRef } from 'react';
|
|
20
20
|
import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
21
21
|
import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
|
22
22
|
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
23
|
+
import { DocumentationLink } from '@finos/legend-lego/application';
|
24
|
+
import { DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from './DSL_DataSpace_LegendQueryDocumentation.js';
|
23
25
|
const DataSpaceTemplateQueryDialog = observer((props) => {
|
24
26
|
const { triggerElement, queryBuilderState, templateQueries } = props;
|
25
27
|
const applicationStore = useApplicationStore();
|
@@ -79,7 +81,7 @@ const DataSpaceTemplateQueryDialog = observer((props) => {
|
|
79
81
|
}, transformOrigin: {
|
80
82
|
vertical: 'top',
|
81
83
|
horizontal: 'center',
|
82
|
-
}, children: _jsxs("div", { className: "query-builder__data-space__template-query-panel", children: [
|
84
|
+
}, children: _jsxs("div", { className: "query-builder__data-space__template-query-panel", children: [_jsxs("div", { className: "query-builder__data-space__template-query-panel__header", children: ["Curated Template Queries", _jsx(DocumentationLink, { documentationKey: DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY })] }), templateQueries.map((query) => (_jsxs("div", { className: "query-builder__data-space__template-query-panel__query", children: [_jsx(TagIcon, { className: "query-builder__data-space__template-query-panel__query__icon" }), _jsx("button", { className: "query-builder__data-space__template-query-panel__query__entry", title: "click to load template query", onClick: () => loadQuery(query), children: _jsxs("div", { className: "query-builder__data-space__template-query-panel__query__entry__content", children: [_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__title", children: query.title }), query.description && (_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__description", children: query.description }))] }) }), _jsxs("button", { className: "query-builder__data-space__template-query-panel__query__share", title: "Visit...", onClick: () => visitTemplateQuery(query), children: [_jsx(ShareIcon, {}), _jsx("div", { className: "query-builder__data-space__template-query-panel__query__share__label", children: "Visit" })] })] }, query.title)))] }) }) }) }));
|
83
85
|
});
|
84
86
|
const DataSpaceQueryBuilderTemplateQueryPanel = observer((props) => {
|
85
87
|
const { queryBuilderState } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,2FAA2F,CAAC;AAExI,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,0CAA0C,EAAE,MAAM,4DAA4D,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,2BAA2B,EAAE,MAAM,2FAA2F,CAAC;AAExI,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,0CAA0C,EAAE,MAAM,4DAA4D,CAAC;AACxH,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,4CAA4C,EAAE,MAAM,6CAA6C,CAAC;AAE3G,MAAM,4BAA4B,GAAG,QAAQ,CAC3C,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IACrE,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,WAAW,GAAG,GAAS,EAAE;QAC7B,iBAAiB,CAAC,0BAA0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EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,4BAEhB,eAAe,CAAC,MAAM,UAC3B,EACR,iBAAiB,CAAC,yBAAyB,IAAI,CAC9C,KAAC,4BAA4B,IAC3B,cAAc,EAAE,sBAAsB,CAAC,OAAO,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,IACW,CACf,GACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAClE,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,uCAAuC,IACtC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
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 Query } from '@finos/legend-graph';
|
17
|
+
export declare const getDataSpaceQueryInfo: (query: Query) => string | undefined;
|
18
|
+
export declare const isDataSpaceQuery: (query: Query) => boolean;
|
19
|
+
//# sourceMappingURL=QueryDataSpaceUtil.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryDataSpaceUtil.d.ts","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAmB,KAAK,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAMlE,eAAO,MAAM,qBAAqB,UAAW,KAAK,KAAG,MAAM,GAAG,SAQ7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,KAAK,KAAG,OACT,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
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 { isValidFullPath } from '@finos/legend-graph';
|
17
|
+
import { QUERY_PROFILE_PATH, QUERY_PROFILE_TAG_DATA_SPACE, } from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
18
|
+
export const getDataSpaceQueryInfo = (query) => {
|
19
|
+
const dataSpaceTaggedValue = query.taggedValues?.find((taggedValue) => taggedValue.profile === QUERY_PROFILE_PATH &&
|
20
|
+
taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
|
21
|
+
isValidFullPath(taggedValue.value));
|
22
|
+
return dataSpaceTaggedValue?.value;
|
23
|
+
};
|
24
|
+
export const isDataSpaceQuery = (query) => Boolean(getDataSpaceQueryInfo(query));
|
25
|
+
//# sourceMappingURL=QueryDataSpaceUtil.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryDataSpaceUtil.js","sourceRoot":"","sources":["../../../src/components/query/QueryDataSpaceUtil.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,eAAe,EAAc,MAAM,qBAAqB,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,4BAA4B,GAC7B,MAAM,6CAA6C,CAAC;AAErD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,KAAY,EAAsB,EAAE;IACxE,MAAM,oBAAoB,GAAG,KAAK,CAAC,YAAY,EAAE,IAAI,CACnD,CAAC,WAAW,EAAE,EAAE,CACd,WAAW,CAAC,OAAO,KAAK,kBAAkB;QAC1C,WAAW,CAAC,GAAG,KAAK,4BAA4B;QAChD,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CACrC,CAAC;IACF,OAAO,oBAAoB,EAAE,KAAK,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAY,EAAW,EAAE,CACxD,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceTemplateQueryPromoteReview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryPromoteReview.d.ts","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiQH,eAAO,MAAM,uCAAuC;;CAoBlD,CAAC"}
|
@@ -24,6 +24,8 @@ import { ActivityBarMenu, LEGEND_STUDIO_TEST_ID, useLegendStudioApplicationStore
|
|
24
24
|
import { createContext, useContext } from 'react';
|
25
25
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
26
26
|
import { flowResult } from 'mobx';
|
27
|
+
import { DocumentationLink } from '@finos/legend-lego/application';
|
28
|
+
import { DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../query/DSL_DataSpace_LegendQueryDocumentation.js';
|
27
29
|
const TemplateQueryPromotionReviewerStoreContext = createContext(undefined);
|
28
30
|
const DataSpaceTemplateQueryPromotionReviewerStoreProvider = ({ children, dataSpacePath, queryId }) => {
|
29
31
|
const applicationStore = useLegendStudioApplicationStore();
|
@@ -55,7 +57,7 @@ const TemplateQueryPromotionReviewerContent = observer(() => {
|
|
55
57
|
queryPromotionReviewerStore.graphManagerState.generationsBuildState
|
56
58
|
.message ??
|
57
59
|
queryPromotionReviewerStore.graphManagerState.graphBuildState
|
58
|
-
.message })), _jsxs("div", { className: "template-query-promotor", children: [_jsxs("div", { className: "template-query-promotor__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "template-query-promotor__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "template-query-promotor__content__main", children: [
|
60
|
+
.message })), _jsxs("div", { className: "template-query-promotor", children: [_jsxs("div", { className: "template-query-promotor__body", children: [_jsx("div", { className: "activity-bar", children: _jsx(ActivityBarMenu, {}) }), _jsx("div", { className: "template-query-promotor__content", "data-testid": LEGEND_STUDIO_TEST_ID.SETUP__CONTENT, children: _jsxs("div", { className: "template-query-promotor__content__main", children: [_jsxs("div", { className: "template-query-promotor__title", children: ["Promote as Curated Template Query", _jsx(DocumentationLink, { documentationKey: DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY })] }), _jsx("div", { className: "template-query-promotor__title__prompt", children: "We will promote this query as a curated template query in dataspace. This automated process will generate a code review and workspace. Please get the generated code review reviewed and approved." }), _jsxs("div", { className: "template-query-promotor__group template-query-promotor__group--workspace", children: [_jsx("div", { className: "template-query-promotor__group__header", children: "workspace" }), _jsx("div", { className: "template-query-promotor__group__content", children: _jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__icon", title: "workspace", children: _jsx(GitBranchIcon, { className: "template-query-promotor__input__icon--workspce" }) }), _jsxs("div", { className: "input-group template-query-promotor__input__input", children: [_jsx("input", { className: clsx('input input--dark input-group__input', {
|
59
61
|
'input-group__input--error': !queryPromotionReviewerStore.isWorkspaceNameValid,
|
60
62
|
}), spellCheck: false, value: queryPromotionReviewerStore.workspaceName, placeholder: "Enter a name for your workspace", onChange: changeWorkspaceName }), !queryPromotionReviewerStore.isWorkspaceNameValid && (_jsx("div", { className: "input-group__error-message", children: "Workspace already existed" }))] })] }) })] }), _jsxs("div", { className: "template-query-promotor__group template-query-promotor__group--template", children: [_jsx("div", { className: "template-query-promotor__group__header", children: "template query" }), _jsxs("div", { className: "template-query-promotor__group__content", children: [_jsxs("div", { className: "template-query-promotor__input", children: [_jsx("div", { className: "template-query-promotor__input__label", children: "id" }), _jsxs("div", { className: "input-group template-query-promotor__input__input", children: [_jsx("input", { className: clsx('input input--dark input-group__input', {
|
61
63
|
'input-group__input--error': !queryPromotionReviewerStore.isTemplateQueryIdValid,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceTemplateQueryPromoteReview.js","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,oEAAoE,CAAC;AAClI,OAAO,EACL,uDAAuD,GAExD,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceTemplateQueryPromoteReview.js","sourceRoot":"","sources":["../../../src/components/studio/DataSpaceTemplateQueryPromoteReview.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,oEAAoE,CAAC;AAClI,OAAO,EACL,uDAAuD,GAExD,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,+BAA+B,EAC/B,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,4CAA4C,EAAE,MAAM,oDAAoD,CAAC;AAElH,MAAM,0CAA0C,GAAG,aAAa,CAE9D,SAAS,CAAC,CAAC;AAEb,MAAM,oDAAoD,GAIrD,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;IAC5C,MAAM,gBAAgB,GAAG,+BAA+B,EAAE,CAAC;IAC3D,MAAM,SAAS,GAAG,wBAAwB,EAAE,CAAC;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AAK,EACjB,WAAW,EAAC,+CAA+C,EAC3D,KAAK,EACH,2BAA2B,CAAC,wBAAwB,EAEtD,QAAQ,EAAE,gCAAgC,GAC1C,GACE,IACF,IACF,IACF,EACN,cAAK,SAAS,EAAC,kCAAkC,YAC/C,iBACE,SAAS,EAAC,6CAA6C,EACvD,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EACN,2BAA2B,CAAC,YAAY,CAAC,YAAY;oDACrD,CAAC,2BAA2B,CAAC,YAAY;oDACzC,CAAC,2BAA2B,CAAC,gBAAgB;oDAC7C,CAAC,2BAA2B,CAAC,cAAc;oDAC3C,CAAC,2BAA2B;yDACzB,iCAAiC,EAAE,YAAY;oDAClD,CAAC,2BAA2B,CAAC,aAAa;oDAC1C,CAAC,2BAA2B,CAAC,kBAAkB;oDAC/C,CAAC,2BAA2B,CAAC,oBAAoB;oDACjD,CAAC,2BAA2B,CAAC,sBAAsB,8BAI9C,GACL,IACF,GACF,IACF,EACN,6BACe,qBAAqB,CAAC,UAAU,EAC7C,SAAS,EAAC,oBAAoB,GAC9B,IACE,IACF,CACP,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG,QAAQ,CAAC,GAAG,EAAE;IACnE,MAAM,UAAU,GACd,SAAS,EAAqD,CAAC;IACjE,MAAM,aAAa,GACjB,UAAU,CACR,uDAAuD,CAAC,eAAe,CACxE,CAAC;IACJ,MAAM,OAAO,GACX,UAAU,CACR,uDAAuD,CAAC,QAAQ,CACjE,CAAC;IAEJ,OAAO,CACL,KAAC,oDAAoD,IACnD,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,OAAO,YAEhB,KAAC,qCAAqC,KAAG,GACY,CACxD,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
3
|
-
"version": "10.2.
|
3
|
+
"version": "10.2.3",
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -45,13 +45,13 @@
|
|
45
45
|
},
|
46
46
|
"dependencies": {
|
47
47
|
"@finos/legend-application": "15.0.74",
|
48
|
-
"@finos/legend-application-query": "13.
|
49
|
-
"@finos/legend-application-studio": "28.16.
|
48
|
+
"@finos/legend-application-query": "13.4.0",
|
49
|
+
"@finos/legend-application-studio": "28.16.11",
|
50
50
|
"@finos/legend-art": "7.1.26",
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
52
|
-
"@finos/legend-graph": "31.9.
|
53
|
-
"@finos/legend-lego": "1.2.
|
54
|
-
"@finos/legend-query-builder": "4.14.
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.155",
|
52
|
+
"@finos/legend-graph": "31.9.10",
|
53
|
+
"@finos/legend-lego": "1.2.23",
|
54
|
+
"@finos/legend-query-builder": "4.14.24",
|
55
55
|
"@finos/legend-server-depot": "6.0.39",
|
56
56
|
"@finos/legend-server-sdlc": "5.3.10",
|
57
57
|
"@finos/legend-shared": "10.0.34",
|
@@ -25,6 +25,7 @@ import {
|
|
25
25
|
createViewProjectHandler,
|
26
26
|
createViewSDLCProjectHandler,
|
27
27
|
type QueryEditorActionConfiguration,
|
28
|
+
type NewQueryNavigationPath,
|
28
29
|
} from '@finos/legend-application-query';
|
29
30
|
import { ArrowCircleUpIcon, SquareIcon } from '@finos/legend-art';
|
30
31
|
import {
|
@@ -43,12 +44,7 @@ import {
|
|
43
44
|
type Query,
|
44
45
|
type Mapping,
|
45
46
|
type PackageableRuntime,
|
46
|
-
isValidFullPath,
|
47
47
|
} from '@finos/legend-graph';
|
48
|
-
import {
|
49
|
-
QUERY_PROFILE_PATH,
|
50
|
-
QUERY_PROFILE_TAG_DATA_SPACE,
|
51
|
-
} from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
52
48
|
import {
|
53
49
|
DataSpaceQueryBuilderState,
|
54
50
|
DataSpaceProjectInfo,
|
@@ -77,6 +73,7 @@ import type {
|
|
77
73
|
import { DataSpaceTemplateQueryCreator } from './DataSpaceTemplateQueryCreator.js';
|
78
74
|
import { DataSpaceTemplateQueryCreatorStore } from '../../stores/query/DataSpaceTemplateQueryCreatorStore.js';
|
79
75
|
import { parseProjectIdentifier } from '@finos/legend-storage';
|
76
|
+
import { getDataSpaceQueryInfo } from './QueryDataSpaceUtil.js';
|
80
77
|
|
81
78
|
const resolveExecutionContext = (
|
82
79
|
dataSpace: DataSpace,
|
@@ -102,6 +99,10 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
102
99
|
super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
|
103
100
|
}
|
104
101
|
|
102
|
+
override getExtraRootAppRedirectPath(): string | undefined {
|
103
|
+
return DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP;
|
104
|
+
}
|
105
|
+
|
105
106
|
override getExtraApplicationPageEntries(): ApplicationPageEntry[] {
|
106
107
|
return [
|
107
108
|
// data space query editor setup
|
@@ -152,15 +153,8 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
152
153
|
query: Query,
|
153
154
|
editorStore: ExistingQueryEditorStore,
|
154
155
|
): Promise<QueryBuilderState | undefined> => {
|
155
|
-
const
|
156
|
-
|
157
|
-
taggedValue.profile === QUERY_PROFILE_PATH &&
|
158
|
-
taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
|
159
|
-
isValidFullPath(taggedValue.value),
|
160
|
-
);
|
161
|
-
|
162
|
-
if (dataSpaceTaggedValue) {
|
163
|
-
const dataSpacePath = dataSpaceTaggedValue.value;
|
156
|
+
const dataSpacePath = getDataSpaceQueryInfo(query);
|
157
|
+
if (dataSpacePath) {
|
164
158
|
const dataSpace = getOwnDataSpace(
|
165
159
|
dataSpacePath,
|
166
160
|
editorStore.graphManagerState.graph,
|
@@ -312,6 +306,35 @@ export class DSL_DataSpace_LegendQueryApplicationPlugin extends LegendQueryAppli
|
|
312
306
|
];
|
313
307
|
}
|
314
308
|
|
309
|
+
override getExtraNewQueryNavigationPaths(): NewQueryNavigationPath[] {
|
310
|
+
return [
|
311
|
+
(
|
312
|
+
query: Query,
|
313
|
+
editorStore: ExistingQueryEditorStore,
|
314
|
+
): string | undefined => {
|
315
|
+
const dataSpacePath = getDataSpaceQueryInfo(query);
|
316
|
+
const queryBuilderState = editorStore.queryBuilderState;
|
317
|
+
if (
|
318
|
+
dataSpacePath &&
|
319
|
+
queryBuilderState instanceof DataSpaceQueryBuilderState
|
320
|
+
) {
|
321
|
+
queryBuilderState.executionContext.name;
|
322
|
+
return generateDataSpaceQueryCreatorRoute(
|
323
|
+
query.groupId,
|
324
|
+
query.artifactId,
|
325
|
+
query.versionId,
|
326
|
+
dataSpacePath,
|
327
|
+
// TODO: fix execution key once that is fixed
|
328
|
+
queryBuilderState.executionContext.name,
|
329
|
+
undefined,
|
330
|
+
undefined,
|
331
|
+
);
|
332
|
+
}
|
333
|
+
return undefined;
|
334
|
+
},
|
335
|
+
];
|
336
|
+
}
|
337
|
+
|
315
338
|
override getExtraQueryHeaders(): ((
|
316
339
|
editorStore: QueryEditorStore,
|
317
340
|
) => React.ReactNode | undefined)[] {
|
@@ -0,0 +1,19 @@
|
|
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
|
+
export enum DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY {
|
18
|
+
CURATED_TEMPLATE_QUERY = 'dsl-dataspace.curated-template-query',
|
19
|
+
}
|
@@ -32,6 +32,8 @@ import {
|
|
32
32
|
useApplicationStore,
|
33
33
|
} from '@finos/legend-application';
|
34
34
|
import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
35
|
+
import { DocumentationLink } from '@finos/legend-lego/application';
|
36
|
+
import { DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from './DSL_DataSpace_LegendQueryDocumentation.js';
|
35
37
|
|
36
38
|
const DataSpaceTemplateQueryDialog = observer(
|
37
39
|
(props: {
|
@@ -132,6 +134,11 @@ const DataSpaceTemplateQueryDialog = observer(
|
|
132
134
|
<div className="query-builder__data-space__template-query-panel">
|
133
135
|
<div className="query-builder__data-space__template-query-panel__header">
|
134
136
|
Curated Template Queries
|
137
|
+
<DocumentationLink
|
138
|
+
documentationKey={
|
139
|
+
DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY
|
140
|
+
}
|
141
|
+
/>
|
135
142
|
</div>
|
136
143
|
{templateQueries.map((query) => (
|
137
144
|
<div
|
@@ -0,0 +1,34 @@
|
|
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 { isValidFullPath, type Query } from '@finos/legend-graph';
|
18
|
+
import {
|
19
|
+
QUERY_PROFILE_PATH,
|
20
|
+
QUERY_PROFILE_TAG_DATA_SPACE,
|
21
|
+
} from '../../graph/DSL_DataSpace_MetaModelConst.js';
|
22
|
+
|
23
|
+
export const getDataSpaceQueryInfo = (query: Query): string | undefined => {
|
24
|
+
const dataSpaceTaggedValue = query.taggedValues?.find(
|
25
|
+
(taggedValue) =>
|
26
|
+
taggedValue.profile === QUERY_PROFILE_PATH &&
|
27
|
+
taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
|
28
|
+
isValidFullPath(taggedValue.value),
|
29
|
+
);
|
30
|
+
return dataSpaceTaggedValue?.value;
|
31
|
+
};
|
32
|
+
|
33
|
+
export const isDataSpaceQuery = (query: Query): boolean =>
|
34
|
+
Boolean(getDataSpaceQueryInfo(query));
|
@@ -32,6 +32,8 @@ import {
|
|
32
32
|
import { createContext, useContext } from 'react';
|
33
33
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
34
34
|
import { flowResult } from 'mobx';
|
35
|
+
import { DocumentationLink } from '@finos/legend-lego/application';
|
36
|
+
import { DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../query/DSL_DataSpace_LegendQueryDocumentation.js';
|
35
37
|
|
36
38
|
const TemplateQueryPromotionReviewerStoreContext = createContext<
|
37
39
|
DataSpaceTemplateQueryPromotionReviewerStore | undefined
|
@@ -126,6 +128,11 @@ const TemplateQueryPromotionReviewerContent = observer(() => {
|
|
126
128
|
<div className="template-query-promotor__content__main">
|
127
129
|
<div className="template-query-promotor__title">
|
128
130
|
Promote as Curated Template Query
|
131
|
+
<DocumentationLink
|
132
|
+
documentationKey={
|
133
|
+
DSL_DATASPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY
|
134
|
+
}
|
135
|
+
/>
|
129
136
|
</div>
|
130
137
|
<div className="template-query-promotor__title__prompt">
|
131
138
|
We will promote this query as a curated template query in
|
package/tsconfig.json
CHANGED
@@ -38,6 +38,8 @@
|
|
38
38
|
"./src/__lib__/studio/DSL_DataSpace_LegendStudioCodeSnippet.ts",
|
39
39
|
"./src/__lib__/studio/DSL_DataSpace_LegendStudioDocumentation.ts",
|
40
40
|
"./src/components/index.ts",
|
41
|
+
"./src/components/query/DSL_DataSpace_LegendQueryDocumentation.ts",
|
42
|
+
"./src/components/query/QueryDataSpaceUtil.ts",
|
41
43
|
"./src/components/query/index.ts",
|
42
44
|
"./src/components/studio/index.ts",
|
43
45
|
"./src/graph/DSL_DataSpace_HashUtils.ts",
|