@finos/legend-application-query 13.5.5 → 13.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type QueryEditorStore } from '../../stores/QueryEditorStore.js';
17
- import type { DataSpace, DataSpaceExecutionContext } from '@finos/legend-extension-dsl-data-space/graph';
17
+ import { type DataSpace, type DataSpaceExecutionContext } from '@finos/legend-extension-dsl-data-space/graph';
18
18
  export declare const QueryEditorDataspaceInfoModal: ((props: {
19
19
  editorStore: QueryEditorStore;
20
20
  dataspace: DataSpace;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceInfo.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceInfo.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,KAAK,EACV,SAAS,EACT,yBAAyB,EAC1B,MAAM,8CAA8C,CAAC;AAKtD,eAAO,MAAM,6BAA6B,WAChC;IACN,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;;CAoIF,CAAC"}
1
+ {"version":3,"file":"DataSpaceInfo.d.ts","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceInfo.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EACL,KAAK,SAAS,EACd,KAAK,yBAAyB,EAE/B,MAAM,8CAA8C,CAAC;AAYtD,eAAO,MAAM,6BAA6B,WAChC;IACN,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;;CA2MF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  /**
3
3
  * Copyright (c) 2020-present, Goldman Sachs
4
4
  *
@@ -18,9 +18,11 @@ import { Dialog, Modal, ModalTitle, Panel, PanelFullContent, } from '@finos/lege
18
18
  import { StoreProjectData } from '@finos/legend-server-depot';
19
19
  import { observer } from 'mobx-react-lite';
20
20
  import {} from '../../stores/QueryEditorStore.js';
21
- import { EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl } from '../../__lib__/LegendQueryNavigation.js';
21
+ import { DataSpaceSupportEmail, } from '@finos/legend-extension-dsl-data-space/graph';
22
+ import { EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl, EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl, } from '../../__lib__/LegendQueryNavigation.js';
22
23
  import { flowResult } from 'mobx';
23
24
  import { assertErrorThrown } from '@finos/legend-shared';
25
+ import { ConnectionPointer, RelationalDatabaseConnection, } from '@finos/legend-graph';
24
26
  export const QueryEditorDataspaceInfoModal = observer((props) => {
25
27
  const { editorStore, dataspace, executionContext, open, closeModal } = props;
26
28
  const projectInfo = editorStore.getProjectInfo();
@@ -36,9 +38,30 @@ export const QueryEditorDataspaceInfoModal = observer((props) => {
36
38
  editorStore.applicationStore.notificationService.notifyError(`Can't visit element of path: '${path}'`);
37
39
  }
38
40
  };
41
+ const connection = executionContext.defaultRuntime.value.runtimeValue.connections[0]
42
+ ?.storeConnections[0]?.connection instanceof ConnectionPointer
43
+ ? executionContext.defaultRuntime.value.runtimeValue.connections[0]
44
+ ?.storeConnections[0]?.connection
45
+ : undefined;
39
46
  return (_jsx(Dialog, { open: open, onClose: closeModal, classes: { container: 'dataspace-info-modal__container' }, PaperProps: {
40
47
  classes: { root: 'dataspace-info-modal__inner-container' },
41
48
  }, children: _jsxs(Modal, { darkMode: !editorStore.applicationStore.layoutService
42
- .TEMPORARY__isLightColorThemeEnabled, className: "dataspace-info-modal", children: [_jsx(ModalTitle, { title: "About Dataspace" }), _jsx(Panel, { children: _jsxs(PanelFullContent, { children: [projectInfo && (_jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Project" }), _jsx("div", { className: "dataspace-info-modal__field__value", children: `${projectInfo.groupId}:${projectInfo.artifactId}:${projectInfo.versionId}` })] })), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Name" }), _jsx("div", { className: "dataspace-info-modal__field__value", children: dataspace.title })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Execution Context" }), _jsx("div", { className: "dataspace-info-modal__field__value", children: executionContext.name })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Mapping" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(executionContext.mapping.value.path)), children: executionContext.mapping.value.name })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Runtime" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(executionContext.defaultRuntime.value.path)), children: executionContext.defaultRuntime.value.name })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Configuration" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(dataspace.path)), children: "Show Dataspace Configuration" })] }), dataspace.supportInfo?.documentationUrl && (_jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Support Email" }), _jsx("a", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", href: `mailto:${dataspace.supportInfo.documentationUrl}`, children: dataspace.supportInfo.documentationUrl })] }))] }) })] }) }));
49
+ .TEMPORARY__isLightColorThemeEnabled, className: "dataspace-info-modal", children: [_jsx(ModalTitle, { title: "About Dataspace" }), _jsx(Panel, { children: _jsxs(PanelFullContent, { children: [projectInfo && (_jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Project" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => {
50
+ try {
51
+ editorStore.applicationStore.navigationService.navigator.visitAddress(EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl(editorStore.applicationStore.config
52
+ .studioApplicationUrl, projectInfo.groupId, projectInfo.artifactId, projectInfo.versionId, undefined));
53
+ }
54
+ catch (error) {
55
+ assertErrorThrown(error);
56
+ editorStore.applicationStore.notificationService.notifyError(`Can't visit project: '${projectInfo.groupId}:${projectInfo.artifactId}:${projectInfo.versionId}'`);
57
+ }
58
+ }, children: `${projectInfo.groupId}:${projectInfo.artifactId}:${projectInfo.versionId}` })] })), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Name" }), _jsx("div", { className: "dataspace-info-modal__field__value", children: dataspace.title })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Execution Context" }), _jsx("div", { className: "dataspace-info-modal__field__value", children: executionContext.name })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Mapping" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(executionContext.mapping.value.path)), children: executionContext.mapping.value.name })] }), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Runtime" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(executionContext.defaultRuntime.value.path)), children: executionContext.defaultRuntime.value.name })] }), connection && (_jsxs(_Fragment, { children: [connection.store && (_jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Store" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => {
59
+ if (connection.store) {
60
+ flowResult(visitElement(connection.store.value.path));
61
+ }
62
+ }, children: connection.store.value.name })] })), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Connection" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(connection.packageableConnection.value.path)), children: connection.packageableConnection.value
63
+ .connectionValue instanceof RelationalDatabaseConnection
64
+ ? `${connection.packageableConnection.value.name}:${connection.packageableConnection.value.connectionValue.type}`
65
+ : connection.packageableConnection.value.name })] })] })), _jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Configuration" }), _jsx("div", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", onClick: () => flowResult(visitElement(dataspace.path)), children: "Show Dataspace Configuration" })] }), dataspace.supportInfo instanceof DataSpaceSupportEmail && (_jsxs("div", { className: "dataspace-info-modal__field", children: [_jsx("div", { className: "dataspace-info-modal__field__label", children: "Support Email" }), _jsx("a", { className: "dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable", href: `mailto:${dataspace.supportInfo.address}`, children: dataspace.supportInfo.address })] }))] }) })] }) }));
43
66
  });
44
67
  //# sourceMappingURL=DataSpaceInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceInfo.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceInfo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AC,CAClD,YAGF,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAChC,IACF,EACN,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,oCAAoC,wBAE7C,EACN,cACE,SAAS,EAAC,kFAAkF,EAC5F,OAAO,EAAE,GAAG,EAAE,CACZ,UAAU,CACR,YAAY,CAAC,gBAAgB,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,CACzD,YAGF,gBAAgB,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,GACvC,IACF,EACN,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,oCAAoC,8BAE7C,EACN,cACE,SAAS,EAAC,iFAAiF,EAC3F,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,6CAGnD,IACF,EACL,SAAS,CAAC,WAAW,EAAE,gBAAgB,IAAI,CAC1C,eAAK,SAAS,EAAC,6BAA6B,aAC1C,cAAK,SAAS,EAAC,oCAAoC,8BAE7C,EACN,YACE,SAAS,EAAC,iFAAiF,EAC3F,IAAI,EAAE,UAAU,SAAS,CAAC,WAAW,CAAC,gBAAgB,EAAE,YAEvD,SAAS,CAAC,WAAW,CAAC,gBAAgB,GACrC,IACA,CACP,IACgB,GACb,IACF,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DataSpaceInfo.js","sourceRoot":"","sources":["../../../src/components/data-space/DataSpaceInfo.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,KAAK,EACL,UAAU,EACV,KAAK,EACL,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAyB,MAAM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C,OAAO,GAC5B,IACA,CACP,IACgB,GACb,IACF,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.5.5
1
+ /** @license @finos/legend-application-query v13.5.7
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.5.5",
3
+ "version": "13.5.7",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.5.5",
3
+ "version": "13.5.7",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,15 +43,15 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "15.1.9",
47
- "@finos/legend-art": "7.1.37",
48
- "@finos/legend-extension-dsl-data-space": "10.3.26",
49
- "@finos/legend-graph": "31.10.3",
50
- "@finos/legend-lego": "1.2.39",
51
- "@finos/legend-query-builder": "4.14.49",
52
- "@finos/legend-server-depot": "6.0.44",
53
- "@finos/legend-shared": "10.0.39",
54
- "@finos/legend-storage": "3.0.89",
46
+ "@finos/legend-application": "15.1.10",
47
+ "@finos/legend-art": "7.1.38",
48
+ "@finos/legend-extension-dsl-data-space": "10.3.28",
49
+ "@finos/legend-graph": "31.10.5",
50
+ "@finos/legend-lego": "1.2.41",
51
+ "@finos/legend-query-builder": "4.14.51",
52
+ "@finos/legend-server-depot": "6.0.45",
53
+ "@finos/legend-shared": "10.0.40",
54
+ "@finos/legend-storage": "3.0.90",
55
55
  "@testing-library/dom": "10.1.0",
56
56
  "@testing-library/react": "16.0.0",
57
57
  "@types/react": "18.3.3",
@@ -63,7 +63,7 @@
63
63
  "serializr": "3.0.2"
64
64
  },
65
65
  "devDependencies": {
66
- "@finos/legend-dev-utils": "2.1.7",
66
+ "@finos/legend-dev-utils": "2.1.8",
67
67
  "@jest/globals": "29.7.0",
68
68
  "cross-env": "7.0.3",
69
69
  "eslint": "8.57.0",
@@ -24,13 +24,21 @@ import {
24
24
  import { StoreProjectData } from '@finos/legend-server-depot';
25
25
  import { observer } from 'mobx-react-lite';
26
26
  import { type QueryEditorStore } from '../../stores/QueryEditorStore.js';
27
- import type {
28
- DataSpace,
29
- DataSpaceExecutionContext,
27
+ import {
28
+ type DataSpace,
29
+ type DataSpaceExecutionContext,
30
+ DataSpaceSupportEmail,
30
31
  } from '@finos/legend-extension-dsl-data-space/graph';
31
- import { EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl } from '../../__lib__/LegendQueryNavigation.js';
32
+ import {
33
+ EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl,
34
+ EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl,
35
+ } from '../../__lib__/LegendQueryNavigation.js';
32
36
  import { flowResult } from 'mobx';
33
37
  import { assertErrorThrown } from '@finos/legend-shared';
38
+ import {
39
+ ConnectionPointer,
40
+ RelationalDatabaseConnection,
41
+ } from '@finos/legend-graph';
34
42
 
35
43
  export const QueryEditorDataspaceInfoModal = observer(
36
44
  (props: {
@@ -68,6 +76,13 @@ export const QueryEditorDataspaceInfoModal = observer(
68
76
  }
69
77
  };
70
78
 
79
+ const connection =
80
+ executionContext.defaultRuntime.value.runtimeValue.connections[0]
81
+ ?.storeConnections[0]?.connection instanceof ConnectionPointer
82
+ ? executionContext.defaultRuntime.value.runtimeValue.connections[0]
83
+ ?.storeConnections[0]?.connection
84
+ : undefined;
85
+
71
86
  return (
72
87
  <Dialog
73
88
  open={open}
@@ -92,7 +107,28 @@ export const QueryEditorDataspaceInfoModal = observer(
92
107
  <div className="dataspace-info-modal__field__label">
93
108
  Project
94
109
  </div>
95
- <div className="dataspace-info-modal__field__value">
110
+ <div
111
+ className="dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable"
112
+ onClick={() => {
113
+ try {
114
+ editorStore.applicationStore.navigationService.navigator.visitAddress(
115
+ EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl(
116
+ editorStore.applicationStore.config
117
+ .studioApplicationUrl,
118
+ projectInfo.groupId,
119
+ projectInfo.artifactId,
120
+ projectInfo.versionId,
121
+ undefined,
122
+ ),
123
+ );
124
+ } catch (error) {
125
+ assertErrorThrown(error);
126
+ editorStore.applicationStore.notificationService.notifyError(
127
+ `Can't visit project: '${projectInfo.groupId}:${projectInfo.artifactId}:${projectInfo.versionId}'`,
128
+ );
129
+ }
130
+ }}
131
+ >
96
132
  {`${projectInfo.groupId}:${projectInfo.artifactId}:${projectInfo.versionId}`}
97
133
  </div>
98
134
  </div>
@@ -141,6 +177,49 @@ export const QueryEditorDataspaceInfoModal = observer(
141
177
  {executionContext.defaultRuntime.value.name}
142
178
  </div>
143
179
  </div>
180
+ {connection && (
181
+ <>
182
+ {connection.store && (
183
+ <div className="dataspace-info-modal__field">
184
+ <div className="dataspace-info-modal__field__label">
185
+ Store
186
+ </div>
187
+ <div
188
+ className="dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable"
189
+ onClick={() => {
190
+ if (connection.store) {
191
+ flowResult(
192
+ visitElement(connection.store.value.path),
193
+ );
194
+ }
195
+ }}
196
+ >
197
+ {connection.store.value.name}
198
+ </div>
199
+ </div>
200
+ )}
201
+ <div className="dataspace-info-modal__field">
202
+ <div className="dataspace-info-modal__field__label">
203
+ Connection
204
+ </div>
205
+ <div
206
+ className="dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable"
207
+ onClick={() =>
208
+ flowResult(
209
+ visitElement(
210
+ connection.packageableConnection.value.path,
211
+ ),
212
+ )
213
+ }
214
+ >
215
+ {connection.packageableConnection.value
216
+ .connectionValue instanceof RelationalDatabaseConnection
217
+ ? `${connection.packageableConnection.value.name}:${connection.packageableConnection.value.connectionValue.type}`
218
+ : connection.packageableConnection.value.name}
219
+ </div>
220
+ </div>
221
+ </>
222
+ )}
144
223
  <div className="dataspace-info-modal__field">
145
224
  <div className="dataspace-info-modal__field__label">
146
225
  Configuration
@@ -152,16 +231,16 @@ export const QueryEditorDataspaceInfoModal = observer(
152
231
  Show Dataspace Configuration
153
232
  </div>
154
233
  </div>
155
- {dataspace.supportInfo?.documentationUrl && (
234
+ {dataspace.supportInfo instanceof DataSpaceSupportEmail && (
156
235
  <div className="dataspace-info-modal__field">
157
236
  <div className="dataspace-info-modal__field__label">
158
237
  Support Email
159
238
  </div>
160
239
  <a
161
240
  className="dataspace-info-modal__field__value dataspace-info-modal__field__value--linkable"
162
- href={`mailto:${dataspace.supportInfo.documentationUrl}`}
241
+ href={`mailto:${dataspace.supportInfo.address}`}
163
242
  >
164
- {dataspace.supportInfo.documentationUrl}
243
+ {dataspace.supportInfo.address}
165
244
  </a>
166
245
  </div>
167
246
  )}