@finos/legend-extension-dsl-service 1.0.7 → 1.0.8
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/components/query/DSL_Service_LegendQueryApplicationPlugin.d.ts +2 -2
- package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.js +8 -3
- package/lib/components/query/DSL_Service_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/query/ServiceRegisterModal.d.ts +2 -3
- package/lib/components/query/ServiceRegisterModal.d.ts.map +1 -1
- package/lib/components/query/ServiceRegisterModal.js +4 -2
- package/lib/components/query/ServiceRegisterModal.js.map +1 -1
- package/lib/components/studio/ServiceQueryEditor.d.ts +0 -1
- package/lib/components/studio/ServiceQueryEditor.d.ts.map +1 -1
- package/lib/components/studio/ServiceQueryEditorReviewAction.d.ts +0 -1
- package/lib/components/studio/ServiceQueryEditorReviewAction.d.ts.map +1 -1
- package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.d.ts +0 -1
- package/lib/components/studio/ServiceQueryEditorWorkspaceStatus.d.ts.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +3 -3
- package/package.json +12 -12
- package/src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx +13 -4
- package/src/components/query/ServiceRegisterModal.tsx +13 -8
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { type
|
|
16
|
+
import { type QueryEditorActionConfiguration, LegendQueryApplicationPlugin } from '@finos/legend-application-query';
|
|
17
17
|
export declare class DSL_Service_LegendQueryApplicationPlugin extends LegendQueryApplicationPlugin {
|
|
18
18
|
constructor();
|
|
19
|
-
|
|
19
|
+
getExtraQueryEditorActionConfigurations(): QueryEditorActionConfiguration[];
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=DSL_Service_LegendQueryApplicationPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Service_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"DSL_Service_LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,8BAA8B,EACnC,4BAA4B,EAE7B,MAAM,iCAAiC,CAAC;AAQzC,qBAAa,wCAAyC,SAAQ,4BAA4B;;IAK/E,uCAAuC,IAAI,8BAA8B,EAAE;CA+ErF"}
|
|
@@ -15,7 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
|
-
import { LegendQueryApplicationPlugin, } from '@finos/legend-application-query';
|
|
18
|
+
import { LegendQueryApplicationPlugin, ExistingQueryEditorStore, } from '@finos/legend-application-query';
|
|
19
19
|
import { ArrowCircleUpIcon } from '@finos/legend-art';
|
|
20
20
|
import { generateQueryProductionizerRoute } from '../../__lib__/studio/DSL_Service_LegendStudioNavigation.js';
|
|
21
21
|
import { StoreProjectData } from '@finos/legend-server-depot';
|
|
@@ -26,12 +26,15 @@ export class DSL_Service_LegendQueryApplicationPlugin extends LegendQueryApplica
|
|
|
26
26
|
constructor() {
|
|
27
27
|
super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
getExtraQueryEditorActionConfigurations() {
|
|
30
30
|
return [
|
|
31
31
|
{
|
|
32
32
|
key: 'productionize-query',
|
|
33
33
|
renderer: (editorStore, queryBuilderState) => {
|
|
34
34
|
const openQueryProductionizer = async () => {
|
|
35
|
+
if (!(editorStore instanceof ExistingQueryEditorStore)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
35
38
|
// fetch project data
|
|
36
39
|
const project = StoreProjectData.serialization.fromJson(await editorStore.depotServerClient.getProject(editorStore.query.groupId, editorStore.query.artifactId));
|
|
37
40
|
// find the matching SDLC instance
|
|
@@ -52,7 +55,9 @@ export class DSL_Service_LegendQueryApplicationPlugin extends LegendQueryApplica
|
|
|
52
55
|
openQueryProductionizer().catch(editorStore.applicationStore.alertUnhandledError);
|
|
53
56
|
});
|
|
54
57
|
};
|
|
55
|
-
return (_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: proceed,
|
|
58
|
+
return (_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: proceed, disabled: !(editorStore instanceof ExistingQueryEditorStore), title: !(editorStore instanceof ExistingQueryEditorStore)
|
|
59
|
+
? 'Please save your query first before productionizing'
|
|
60
|
+
: 'Productionize query...', children: [_jsx(ArrowCircleUpIcon, { className: "query-editor__header__action__icon--productionize" }), _jsx("div", { className: "query-editor__header__action__label", children: "Productionize Query" })] }));
|
|
56
61
|
},
|
|
57
62
|
},
|
|
58
63
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_Service_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAEL,4BAA4B,
|
|
1
|
+
{"version":3,"file":"DSL_Service_LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../../src/components/query/DSL_Service_LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBA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B,GACpC,CACH;aACF;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -13,11 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
import type { ExistingQueryEditorStore } from '@finos/legend-application-query';
|
|
16
|
+
import { type QueryEditorStore } from '@finos/legend-application-query';
|
|
18
17
|
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
19
18
|
export declare const ServiceRegisterAction: ((props: {
|
|
20
|
-
editorStore:
|
|
19
|
+
editorStore: QueryEditorStore;
|
|
21
20
|
queryBuilderState: QueryBuilderState;
|
|
22
21
|
}) => JSX.Element) & {
|
|
23
22
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceRegisterModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/ServiceRegisterModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"ServiceRegisterModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/ServiceRegisterModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuCH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAwQrE,eAAO,MAAM,qBAAqB,WACxB;IACN,WAAW,EAAE,gBAAgB,CAAC;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CAgCF,CAAC"}
|
|
@@ -22,6 +22,7 @@ import { createServiceElement } from '../../stores/studio/QueryProductionizerSto
|
|
|
22
22
|
import { CheckSquareIcon, clsx, CustomSelectorInput, Dialog, Modal, ModalTitle, Panel, PanelFullContent, PanelLoadingIndicator, RocketIcon, SquareIcon, } from '@finos/legend-art';
|
|
23
23
|
import { ActionAlertType, ActionAlertActionType, } from '@finos/legend-application';
|
|
24
24
|
import { RuntimePointer, ServiceExecutionMode, validate_ServicePattern, } from '@finos/legend-graph';
|
|
25
|
+
import {} from '@finos/legend-application-query';
|
|
25
26
|
import { resolveVersion } from '@finos/legend-server-depot';
|
|
26
27
|
const ServiceRegisterModal = observer((props) => {
|
|
27
28
|
const { editorStore, onClose, queryBuilderState } = props;
|
|
@@ -76,7 +77,8 @@ const ServiceRegisterModal = observer((props) => {
|
|
|
76
77
|
const serverConfig = serverRegistrationOptions.find((option) => option.env === selectedEnvOption.value);
|
|
77
78
|
registrationState.setMessage(`Registering service...`);
|
|
78
79
|
const service = await createServiceElement('model::QueryService', servicePattern, owners.map((o) => o.value), queryBuilderState.buildQuery(), queryBuilderState.mapping.path, queryBuilderState.runtimeValue.packageableRuntime.value.path, editorStore.graphManagerState);
|
|
79
|
-
const
|
|
80
|
+
const { groupId, artifactId, versionId } = editorStore.getProjectInfo();
|
|
81
|
+
const serviceRegistrationResult = await editorStore.graphManagerState.graphManager.registerService(service, editorStore.graphManagerState.graph, groupId, artifactId, resolveVersion(versionId), guaranteeNonNullable(serverConfig?.executionUrl), ServiceExecutionMode.SEMI_INTERACTIVE);
|
|
80
82
|
if (activateService) {
|
|
81
83
|
registrationState.setMessage(`Activating service...`);
|
|
82
84
|
await editorStore.graphManagerState.graphManager.activateService(guaranteeNonNullable(serverConfig?.executionUrl), serviceRegistrationResult.serviceInstanceId);
|
|
@@ -125,6 +127,6 @@ export const ServiceRegisterAction = observer((props) => {
|
|
|
125
127
|
setShowRegisterServiceModal(true);
|
|
126
128
|
};
|
|
127
129
|
const onClose = () => setShowRegisterServiceModal(false);
|
|
128
|
-
return (_jsxs(_Fragment, { children: [_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: registerCurrentQuery, title: "Register query as service
|
|
130
|
+
return (_jsxs(_Fragment, { children: [_jsxs("button", { className: "query-editor__header__action btn--dark", tabIndex: -1, onClick: registerCurrentQuery, title: "Register query as service", children: [_jsx(RocketIcon, { className: "query-editor__header__action__icon--service" }), _jsx("div", { className: "query-editor__header__action__label", children: "Register DEV Service" })] }), showRegisterServiceModal && (_jsx(ServiceRegisterModal, { editorStore: editorStore, onClose: onClose, queryBuilderState: queryBuilderState }))] }));
|
|
129
131
|
});
|
|
130
132
|
//# sourceMappingURL=ServiceRegisterModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceRegisterModal.js","sourceRoot":"","sources":["../../../src/components/query/ServiceRegisterModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,oBAAoB,EACpB,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,4BAA4B,EAC5B,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AACvF,OAAO,EACL,eAAe,EACf,IAAI,EACJ,mBAAmB,EACnB,MAAM,EACN,KAAK,EACL,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ServiceRegisterModal.js","sourceRoot":"","sources":["../../../src/components/query/ServiceRegisterModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,O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E,WAAW,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IAEjD,MAAM,CAAC,wBAAwB,EAAE,2BAA2B,CAAC,GAC3D,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClB,MAAM,oBAAoB,GAAG,GAAS,EAAE;QACtC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC,CAAC;IACF,MAAM,OAAO,GAAG,GAAS,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC/D,OAAO,CACL,8BACE,kBACE,SAAS,EAAC,wCAAwC,EAClD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,oBAAoB,EAC7B,KAAK,EAAC,2BAA2B,aAEjC,KAAC,UAAU,IAAC,SAAS,EAAC,6CAA6C,GAAG,EACtE,cAAK,SAAS,EAAC,qCAAqC,qCAE9C,IACC,EACR,wBAAwB,IAAI,CAC3B,KAAC,oBAAoB,IACnB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,iBAAiB,EAAE,iBAAiB,GACpC,CACH,IACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
export declare const ServiceQueryEditor: (() => JSX.Element) & {
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceQueryEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"ServiceQueryEditor.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA0dH,eAAO,MAAM,kBAAkB;;CAuC7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAe9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;CAgBrC,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
export declare const ServiceQueryEditorReviewAction: (() => JSX.Element) & {
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceQueryEditorReviewAction.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorReviewAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"ServiceQueryEditorReviewAction.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorReviewAction.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA+GH,eAAO,MAAM,8BAA8B;;CAkDzC,CAAC"}
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
/// <reference types="react" resolution-mode="require"/>
|
|
17
16
|
export declare const ServiceQueryEditorWorkspaceStatus: (() => JSX.Element) & {
|
|
18
17
|
displayName: string;
|
|
19
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceQueryEditorWorkspaceStatus.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorWorkspaceStatus.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"ServiceQueryEditorWorkspaceStatus.d.ts","sourceRoot":"","sources":["../../../src/components/studio/ServiceQueryEditorWorkspaceStatus.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,eAAO,MAAM,iCAAiC;;CA+F5C,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-service",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Legend extension for Service DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@finos/legend-server-sdlc": "workspace:*",
|
|
54
54
|
"@finos/legend-shared": "workspace:*",
|
|
55
55
|
"@finos/legend-storage": "workspace:*",
|
|
56
|
-
"@types/react": "18.0
|
|
56
|
+
"@types/react": "18.2.0",
|
|
57
57
|
"mobx": "6.9.0",
|
|
58
58
|
"mobx-react-lite": "3.4.3",
|
|
59
59
|
"react": "18.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jest": "29.5.0",
|
|
69
69
|
"npm-run-all": "4.1.5",
|
|
70
70
|
"rimraf": "5.0.0",
|
|
71
|
-
"sass": "1.62.
|
|
71
|
+
"sass": "1.62.1",
|
|
72
72
|
"typescript": "5.0.4"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-service",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Legend extension for Service DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
"test:watch": "jest --watch"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@finos/legend-application": "15.0.
|
|
46
|
-
"@finos/legend-application-query": "12.0.
|
|
47
|
-
"@finos/legend-application-studio": "24.1.
|
|
48
|
-
"@finos/legend-art": "7.0.
|
|
49
|
-
"@finos/legend-graph": "28.1.
|
|
50
|
-
"@finos/legend-lego": "0.1.
|
|
51
|
-
"@finos/legend-query-builder": "3.0.
|
|
52
|
-
"@finos/legend-server-depot": "6.0.
|
|
45
|
+
"@finos/legend-application": "15.0.5",
|
|
46
|
+
"@finos/legend-application-query": "12.0.8",
|
|
47
|
+
"@finos/legend-application-studio": "24.1.2",
|
|
48
|
+
"@finos/legend-art": "7.0.6",
|
|
49
|
+
"@finos/legend-graph": "28.1.2",
|
|
50
|
+
"@finos/legend-lego": "0.1.11",
|
|
51
|
+
"@finos/legend-query-builder": "3.0.8",
|
|
52
|
+
"@finos/legend-server-depot": "6.0.3",
|
|
53
53
|
"@finos/legend-server-sdlc": "5.0.3",
|
|
54
54
|
"@finos/legend-shared": "10.0.2",
|
|
55
55
|
"@finos/legend-storage": "3.0.52",
|
|
56
|
-
"@types/react": "18.0
|
|
56
|
+
"@types/react": "18.2.0",
|
|
57
57
|
"mobx": "6.9.0",
|
|
58
58
|
"mobx-react-lite": "3.4.3",
|
|
59
59
|
"react": "18.2.0",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"serializr": "3.0.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
|
64
|
+
"@finos/legend-dev-utils": "2.0.57",
|
|
65
65
|
"@jest/globals": "29.5.0",
|
|
66
66
|
"cross-env": "7.0.3",
|
|
67
67
|
"eslint": "8.39.0",
|
|
68
68
|
"jest": "29.5.0",
|
|
69
69
|
"npm-run-all": "4.1.5",
|
|
70
70
|
"rimraf": "5.0.0",
|
|
71
|
-
"sass": "1.62.
|
|
71
|
+
"sass": "1.62.1",
|
|
72
72
|
"typescript": "5.0.4"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import packageJson from '../../../package.json';
|
|
18
18
|
import {
|
|
19
|
-
type
|
|
19
|
+
type QueryEditorActionConfiguration,
|
|
20
20
|
LegendQueryApplicationPlugin,
|
|
21
|
+
ExistingQueryEditorStore,
|
|
21
22
|
} from '@finos/legend-application-query';
|
|
22
23
|
import { ArrowCircleUpIcon } from '@finos/legend-art';
|
|
23
24
|
import { generateQueryProductionizerRoute } from '../../__lib__/studio/DSL_Service_LegendStudioNavigation.js';
|
|
@@ -31,12 +32,15 @@ export class DSL_Service_LegendQueryApplicationPlugin extends LegendQueryApplica
|
|
|
31
32
|
super(packageJson.extensions.applicationQueryPlugin, packageJson.version);
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
override
|
|
35
|
+
override getExtraQueryEditorActionConfigurations(): QueryEditorActionConfiguration[] {
|
|
35
36
|
return [
|
|
36
37
|
{
|
|
37
38
|
key: 'productionize-query',
|
|
38
39
|
renderer: (editorStore, queryBuilderState) => {
|
|
39
40
|
const openQueryProductionizer = async (): Promise<void> => {
|
|
41
|
+
if (!(editorStore instanceof ExistingQueryEditorStore)) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
40
44
|
// fetch project data
|
|
41
45
|
const project = StoreProjectData.serialization.fromJson(
|
|
42
46
|
await editorStore.depotServerClient.getProject(
|
|
@@ -81,11 +85,16 @@ export class DSL_Service_LegendQueryApplicationPlugin extends LegendQueryApplica
|
|
|
81
85
|
className="query-editor__header__action btn--dark"
|
|
82
86
|
tabIndex={-1}
|
|
83
87
|
onClick={proceed}
|
|
84
|
-
|
|
88
|
+
disabled={!(editorStore instanceof ExistingQueryEditorStore)}
|
|
89
|
+
title={
|
|
90
|
+
!(editorStore instanceof ExistingQueryEditorStore)
|
|
91
|
+
? 'Please save your query first before productionizing'
|
|
92
|
+
: 'Productionize query...'
|
|
93
|
+
}
|
|
85
94
|
>
|
|
86
95
|
<ArrowCircleUpIcon className="query-editor__header__action__icon--productionize" />
|
|
87
96
|
<div className="query-editor__header__action__label">
|
|
88
|
-
Productionize
|
|
97
|
+
Productionize Query
|
|
89
98
|
</div>
|
|
90
99
|
</button>
|
|
91
100
|
);
|
|
@@ -51,14 +51,14 @@ import {
|
|
|
51
51
|
ServiceExecutionMode,
|
|
52
52
|
validate_ServicePattern,
|
|
53
53
|
} from '@finos/legend-graph';
|
|
54
|
-
import type
|
|
54
|
+
import { type QueryEditorStore } from '@finos/legend-application-query';
|
|
55
55
|
import type { UserOption } from '../studio/QueryProductionizer.js';
|
|
56
56
|
import type { QueryBuilderState } from '@finos/legend-query-builder';
|
|
57
57
|
import { resolveVersion } from '@finos/legend-server-depot';
|
|
58
58
|
|
|
59
59
|
const ServiceRegisterModal = observer(
|
|
60
60
|
(props: {
|
|
61
|
-
editorStore:
|
|
61
|
+
editorStore: QueryEditorStore;
|
|
62
62
|
onClose(): void;
|
|
63
63
|
queryBuilderState: QueryBuilderState;
|
|
64
64
|
}) => {
|
|
@@ -141,13 +141,17 @@ const ServiceRegisterModal = observer(
|
|
|
141
141
|
queryBuilderState.runtimeValue.packageableRuntime.value.path,
|
|
142
142
|
editorStore.graphManagerState,
|
|
143
143
|
);
|
|
144
|
+
|
|
145
|
+
const { groupId, artifactId, versionId } =
|
|
146
|
+
editorStore.getProjectInfo();
|
|
147
|
+
|
|
144
148
|
const serviceRegistrationResult =
|
|
145
149
|
await editorStore.graphManagerState.graphManager.registerService(
|
|
146
150
|
service,
|
|
147
151
|
editorStore.graphManagerState.graph,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
resolveVersion(
|
|
152
|
+
groupId,
|
|
153
|
+
artifactId,
|
|
154
|
+
resolveVersion(versionId),
|
|
151
155
|
guaranteeNonNullable(serverConfig?.executionUrl),
|
|
152
156
|
ServiceExecutionMode.SEMI_INTERACTIVE,
|
|
153
157
|
);
|
|
@@ -315,10 +319,11 @@ const ServiceRegisterModal = observer(
|
|
|
315
319
|
|
|
316
320
|
export const ServiceRegisterAction = observer(
|
|
317
321
|
(props: {
|
|
318
|
-
editorStore:
|
|
322
|
+
editorStore: QueryEditorStore;
|
|
319
323
|
queryBuilderState: QueryBuilderState;
|
|
320
324
|
}) => {
|
|
321
325
|
const { editorStore, queryBuilderState } = props;
|
|
326
|
+
|
|
322
327
|
const [showRegisterServiceModal, setShowRegisterServiceModal] =
|
|
323
328
|
useState(false);
|
|
324
329
|
const registerCurrentQuery = (): void => {
|
|
@@ -331,11 +336,11 @@ export const ServiceRegisterAction = observer(
|
|
|
331
336
|
className="query-editor__header__action btn--dark"
|
|
332
337
|
tabIndex={-1}
|
|
333
338
|
onClick={registerCurrentQuery}
|
|
334
|
-
title="Register query as service
|
|
339
|
+
title="Register query as service"
|
|
335
340
|
>
|
|
336
341
|
<RocketIcon className="query-editor__header__action__icon--service" />
|
|
337
342
|
<div className="query-editor__header__action__label">
|
|
338
|
-
Register Service
|
|
343
|
+
Register DEV Service
|
|
339
344
|
</div>
|
|
340
345
|
</button>
|
|
341
346
|
{showRegisterServiceModal && (
|