@finos/legend-query-builder 4.15.1 → 4.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. package/lib/components/data-cube/QueryBuilderDataCube.d.ts.map +1 -1
  2. package/lib/components/data-cube/QueryBuilderDataCube.js +3 -10
  3. package/lib/components/data-cube/QueryBuilderDataCube.js.map +1 -1
  4. package/lib/components/result/QueryBuilderResultPanel.d.ts.map +1 -1
  5. package/lib/components/result/QueryBuilderResultPanel.js +13 -1
  6. package/lib/components/result/QueryBuilderResultPanel.js.map +1 -1
  7. package/lib/index.css +1 -1
  8. package/lib/package.json +1 -1
  9. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts +1 -3
  10. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.d.ts.map +1 -1
  11. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js +1 -7
  12. package/lib/stores/data-cube/QueryBuilderDataCubeApplicationEngine.js.map +1 -1
  13. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts +5 -2
  14. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.d.ts.map +1 -1
  15. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js +14 -2
  16. package/lib/stores/data-cube/QueryBuilderDataCubeEngine.js.map +1 -1
  17. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts +1 -1
  18. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.d.ts.map +1 -1
  19. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js +8 -1
  20. package/lib/stores/data-cube/QueryBuilderDataCubeEngineHelper.js.map +1 -1
  21. package/lib/stores/shared/LambdaParameterState.d.ts +2 -1
  22. package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
  23. package/lib/stores/shared/LambdaParameterState.js +1 -0
  24. package/lib/stores/shared/LambdaParameterState.js.map +1 -1
  25. package/package.json +6 -6
  26. package/src/components/data-cube/QueryBuilderDataCube.tsx +4 -16
  27. package/src/components/result/QueryBuilderResultPanel.tsx +23 -3
  28. package/src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts +1 -12
  29. package/src/stores/data-cube/QueryBuilderDataCubeEngine.ts +23 -0
  30. package/src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts +16 -1
  31. package/src/stores/shared/LambdaParameterState.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCube.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAiD3E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgDjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCube.d.ts","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAqC3E,eAAO,MAAM,0BAA0B,WAC7B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAgDjD,CAAC"}
@@ -19,21 +19,14 @@ import { observer } from 'mobx-react-lite';
19
19
  import { QueryBuilderDataCubeApplicationEngine } from '../../stores/data-cube/QueryBuilderDataCubeApplicationEngine.js';
20
20
  import { clsx, Dialog, EmptyWindowRestoreIcon, Modal, TimesIcon, WindowMaximizeIcon, } from '@finos/legend-art';
21
21
  import { useState } from 'react';
22
- import { RuntimePointer } from '@finos/legend-graph';
23
- import { QueryBuilderDataCubeEngine } from '../../stores/data-cube/QueryBuilderDataCubeEngine.js';
22
+ import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/QueryBuilderDataCubeEngineHelper.js';
24
23
  const QueryBuilderDataCube = observer((props) => {
25
24
  const { queryBuilderState } = props;
26
25
  const applicationStore = new QueryBuilderDataCubeApplicationEngine(queryBuilderState.applicationStore);
27
- const runtime = queryBuilderState.executionContextState.runtimeValue instanceof
28
- RuntimePointer
29
- ? queryBuilderState.executionContextState.runtimeValue
30
- .packageableRuntime.value.path
31
- : undefined;
32
- if (!runtime) {
33
- // TODO: add better message
26
+ const queryBuilderEngine = createDataCubeEngineFromQueryBuilder(queryBuilderState);
27
+ if (!queryBuilderEngine) {
34
28
  return null;
35
29
  }
36
- const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
37
30
  return (_jsx(DataCubeProvider, { application: applicationStore, engine: queryBuilderEngine, children: _jsx(DataCube, {}) }));
38
31
  });
39
32
  export const QueryBuilderDataCubeDialog = observer((props) => {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCube.js","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,qCAAqC,EAAE,MAAM,iEAAiE,CAAC;AACxH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,sBAAsB,EACtB,KAAK,EACL,SAAS,EACT,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,sDAAsD,CAAC;AAElG,MAAM,oBAAoB,GAAG,QAAQ,CACnC,CAAC,KAA+C,EAAE,EAAE;IAClD,MAAM,EAAE,iBAAiB,EAAE,GAAG,KAAK,CAAC;IACpC,MAAM,gBAAgB,GAAG,IAAI,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C,EAAE;gBACpD,iCAAiC,EAAE,WAAW;aAC/C,CAAC,aAEF,cAAK,SAAS,EAAC,+BAA+B,YAC5C,eAAK,SAAS,EAAC,wCAAwC,aACrD,iBACE,SAAS,EAAC,uCAAuC,EACjD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,cAAc,EACvB,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,YAE3C,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,sBAAsB,KAAG,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,kBAAkB,KAAG,CACvB,GACM,EACT,iBACE,SAAS,EAAC,uCAAuC,EACjD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,UAAU,EACnB,KAAK,EAAC,OAAO,YAEb,KAAC,SAAS,KAAG,GACN,IACL,GACF,EACN,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,oBAAoB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GAC1D,IACA,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCube.js","sourceRoot":"","sources":["../../../src/components/data-cube/QueryBuilderDataCube.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,qCAAqC,EAAE,MAAM,iEAAiE,CAAC;AACxH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,sBAAsB,EACtB,KAAK,EACL,SAAS,EACT,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,oCAAoC,EAAE,MAAM,4DAA4D,CAAC;AAElH,MAAM,oBAAoB,GAAG,QAAQ,CACn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KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,YAE3C,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,sBAAsB,KAAG,CAC3B,CAAC,CAAC,CAAC,CACF,KAAC,kBAAkB,KAAG,CACvB,GACM,EACT,iBACE,SAAS,EAAC,uCAAuC,EACjD,QAAQ,EAAE,CAAC,CAAC,EACZ,OAAO,EAAE,UAAU,EACnB,KAAK,EAAC,OAAO,YAEb,KAAC,SAAS,KAAG,GACN,IACL,GACF,EACN,cAAK,SAAS,EAAC,gCAAgC,YAC7C,KAAC,oBAAoB,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,GAC1D,IACA,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,qBAAqB,CAAC;AAsB7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AASvF,eAAO,MAAM,+BAA+B,WAClC;IACN,WAAW,EAAE,uBAAuB,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;;CA4GF,CAAC;AAEF,eAAO,MAAM,qCAAqC,WACxC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmCjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,WAC3B;IACN,eAAe,EAAE,eAAe,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CAmDF,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAqnBjD,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAsCH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EACL,KAAK,eAAe,EAMrB,MAAM,qBAAqB,CAAC;AAsB7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AASvF,eAAO,MAAM,+BAA+B,WAClC;IACN,WAAW,EAAE,uBAAuB,CAAC;IACrC,cAAc,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC;;CA4GF,CAAC;AAEF,eAAO,MAAM,qCAAqC,WACxC;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAmCjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,WAC3B;IACN,eAAe,EAAE,eAAe,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;;CAmDF,CAAC;AAEF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAyoBjD,CAAC"}
@@ -169,6 +169,18 @@ export const QueryBuilderResultPanel = observer((props) => {
169
169
  }
170
170
  resultState.pressedRunQuery.complete();
171
171
  };
172
+ const openDataCube = () => {
173
+ if (queryParametersState.parameterStates.length &&
174
+ queryParametersState.parameterStates.find((param) => !queryBuilderState.milestoningState.isMilestoningParameter(param.parameter))) {
175
+ queryParametersState.parameterValuesEditorState.open(() => {
176
+ queryBuilderState.setIsCubeEnabled(true);
177
+ return Promise.resolve();
178
+ }, PARAMETER_SUBMIT_ACTION.DATA_CUBE);
179
+ }
180
+ else {
181
+ queryBuilderState.setIsCubeEnabled(true);
182
+ }
183
+ };
172
184
  const cancelQuery = applicationStore.guardUnhandledError(() => flowResult(resultState.cancelQuery()));
173
185
  const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
174
186
  const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
@@ -263,7 +275,7 @@ export const QueryBuilderResultPanel = observer((props) => {
263
275
  anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
264
276
  transformOrigin: { vertical: 'top', horizontal: 'right' },
265
277
  }, children: _jsx(CaretDownIcon, {}) })] })) }), _jsxs(ControlledDropdownMenu, { className: "query-builder__result__export__dropdown", title: "Export", disabled: !isQueryValid, content: _jsxs(MenuContent, { children: [Object.values(fetchStructureImplementation.exportDataFormatOptions).map((format) => (_jsxs(MenuContentItem, { onClick: () => confirmExport(format), children: [_jsx(MenuContentItemIcon, { children: _jsx(CsvIcon, {}) }), _jsx(MenuContentItemLabel, { children: format })] }, format))), _jsxs(MenuContentItem, { onClick: () => resultState.setIsQueryUsageViewerOpened(true), disabled: queryBuilderState.changeDetectionState.hasChanged ||
266
- !isExtraQueryUsageOptionsConfigured, children: [_jsx(MenuContentItemIcon, { children: _jsx(ChartIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Others..." })] }), queryBuilderState.config?.TEMPORARY__enableExportToCube && (_jsxs(MenuContentItem, { onClick: () => queryBuilderState.setIsCubeEnabled(true), disabled: !queryBuilderState.fetchStructureState.implementation
278
+ !isExtraQueryUsageOptionsConfigured, children: [_jsx(MenuContentItemIcon, { children: _jsx(ChartIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Others..." })] }), queryBuilderState.config?.TEMPORARY__enableExportToCube && (_jsxs(MenuContentItem, { onClick: openDataCube, disabled: !queryBuilderState.fetchStructureState.implementation
267
279
  .canBeExportedToCube ||
268
280
  !(queryBuilderState.executionContextState
269
281
  .runtimeValue instanceof RuntimePointer), children: [_jsx(MenuContentItemIcon, { children: _jsx(CubeIcon, {}) }), _jsx(MenuContentItemLabel, { children: "Data Cube (BETA)" })] })), extraExportMenuContentItems] }), menuProps: {
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../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CAEP,MACD,CAAC,kDAAkD,EAAE,EAAE;gCACxD,EAAE,CACL;iCACA,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACb,wBACG,IAAI,CAAC,oBAAoB;oCACxB,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;oCAC9C,CAAC,CAAC,SAAS,IAHL,IAAI,CAAC,GAAG,CAIZ,CACP,CAAC,IACA,IACF,EACN,MAAC,YAAY,IAAC,SAAS,EAAC,gCAAgC,aACtD,KAAC,qBAAqB,IAAC,SAAS,EAAE,SAAS,YACzC,KAAC,yBAAyB,KAAG,GACP,EACvB,CAAC,eAAe,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC,cAAc,IAAI,CAChE,KAAC,iBAAiB,oDAEE,CACrB,EACA,CAAC,SAAS,IAAI,WAAW,CAAC,cAAc,IAAI,CAC3C,KAAC,+BAA+B,IAC9B,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,WAAW,CAAC,cAAc,GAC1C,CACH,EACA,eAAe,IAAI,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC,cAAc,IAAI,CAC/D,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../../src/components/result/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,aAAa,EACb,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,MAAM,EACN,OAAO,EACP,MAAM,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 +1,4 @@
1
- /** @license @finos/legend-query-builder v4.15.1
1
+ /** @license @finos/legend-query-builder v4.15.2
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-query-builder",
3
- "version": "4.15.1",
3
+ "version": "4.15.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type GenericLegendApplicationStore } from '@finos/legend-application';
17
- import { DataCubeApplicationEngine, type ActionAlert } from '@finos/legend-data-cube';
17
+ import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
18
18
  import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
19
19
  export declare class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
20
20
  private readonly application;
@@ -25,8 +25,6 @@ export declare class QueryBuilderDataCubeApplicationEngine extends DataCubeAppli
25
25
  shouldDisplayDocumentationEntry(entry: DocumentationEntry): boolean;
26
26
  openLink(url: string): void;
27
27
  setWindowTitle(title: string): void;
28
- alertAction(alertInfo: ActionAlert | undefined): void;
29
- alertUnhandledError(error: Error): void;
30
28
  logDebug(message: string, ...data: unknown[]): void;
31
29
  debugProcess(processName: string, ...data: unknown[]): void;
32
30
  logInfo(event: LogEvent, ...data: unknown[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeApplicationEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,EACzB,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,KAAK,kBA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C;AACpE,OAAO,EAAE,QAAQ,EAAE,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,qBAAa,qCAAsC,SAAQ,yBAAyB;IAClF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgC;gBAEhD,WAAW,EAAE,6BAA6B;IAMtD,IAAI,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAEzC;IAED,qBAAqB,CAAC,GAAG,EAAE,MAAM;IAIjC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB;IAIhD,+BAA+B,CAAC,KAAK,EAAE,kBAAkB;IAIzD,QAAQ,CAAC,GAAG,EAAE,MAAM;IAIpB,cAAc,CAAC,KAAK,EAAE,MAAM;IAI5B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAQ5C,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IASpD,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI3C,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI9C,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE;IAI5C,iBAAiB,CAAC,KAAK,EAAE,KAAK;IAI9B,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAOpD"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { APPLICATION_EVENT, shouldDisplayVirtualAssistantDocumentationEntry, } from '@finos/legend-application';
17
- import { DataCubeApplicationEngine, } from '@finos/legend-data-cube';
17
+ import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
18
18
  import { LogEvent } from '@finos/legend-shared';
19
19
  export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
20
20
  application;
@@ -40,12 +40,6 @@ export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEn
40
40
  setWindowTitle(title) {
41
41
  this.application.layoutService.setWindowTitle(title);
42
42
  }
43
- alertAction(alertInfo) {
44
- this.currentActionAlert = alertInfo;
45
- }
46
- alertUnhandledError(error) {
47
- this.application.alertUnhandledError(error);
48
- }
49
43
  logDebug(message, ...data) {
50
44
  this.application.logService.debug(LogEvent.create(APPLICATION_EVENT.DEBUG), message, ...data);
51
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeApplicationEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,+CAA+C,GAEhD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,yBAAyB,GAE1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAA2B,MAAM,sBAAsB,CAAC;AAEzE,MAAM,OAAO,qCAAsC,SAAQ,yBAAyB;IACjE,WAAW,CAAgC;IAE5D,YAAY,WAA0C;QACpD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC;IACnD,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAChE,CAAC;IAED,sBAAsB,CAAC,KAAyB;QAC9C,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;IACzC,CAAC;IAED,+BAA+B,CAAC,KAAyB;QACvD,OAAO,+CAA+C,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS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,CAAC,KAAY;QAC5B,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,oBAAoB,CAAC,OAAe,EAAE,KAAa;QACjD,IAAI,CAAC,QAAQ,CACX,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,kCAAkC,CAAC,EACrE,OAAO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilderDataCubeApplicationEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeApplicationEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,+CAA+C,GAEhD,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAA2B,MAAM,sBAAsB,CAAC;AAEzE,MAAM,OAAO,qCAAsC,SAAQ,yBAAyB;IACjE,WAAW,CAAgC;IAE5D,YAAY,WAA0C;QACpD,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,gBAAgB;QAClB,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAAC;IACnD,CAAC;IAED,qBAAqB,CAAC,GAAW;QAC/B,OAAO,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAChE,CAAC;IAED,sBAAsB,CAAC,KAAyB;QAC9C,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;IACzC,CAAC;IAED,+BAA+B,CAAC,KAAyB;QACvD,OAAO,+CAA+C,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,QAAQ,CAAC,GAAW;QAClB,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC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AO,EACP,KAAK,CACN,CAAC;IACJ,CAAC;CACF"}
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification } from '@finos/legend-graph';
16
+ import { V1_Lambda, RawLambda, TDSExecutionResult, type GraphManagerState, type PureModel, type V1_ValueSpecification, type ParameterValue } from '@finos/legend-graph';
17
17
  import { DataCubeGetBaseQueryResult, DataCubeEngine, type CompletionItem, DataCubeQuerySource, type DataCubeInfrastructureInfo, type RelationType } from '@finos/legend-data-cube';
18
18
  import { LogService } from '@finos/legend-shared';
19
19
  export declare class _DataCubeQuery {
@@ -30,8 +30,10 @@ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
30
30
  readonly graphState: GraphManagerState;
31
31
  readonly selectInitialQuery: RawLambda;
32
32
  readonly mappingPath: string | undefined;
33
+ readonly parameterValues: ParameterValue[] | undefined;
33
34
  readonly runtimePath: string;
34
- constructor(selectQuery: RawLambda, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
35
+ _parameters: object | undefined;
36
+ constructor(selectQuery: RawLambda, parameterValues: ParameterValue[] | undefined, mappingPath: string | undefined, runtimePath: string, graphManagerState: GraphManagerState);
35
37
  get sourceLabel(): string;
36
38
  getBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
37
39
  buildBaseQuery(): Promise<DataCubeGetBaseQueryResult>;
@@ -40,6 +42,7 @@ export declare class QueryBuilderDataCubeEngine extends DataCubeEngine {
40
42
  getInfrastructureInfo(): Promise<DataCubeInfrastructureInfo>;
41
43
  getQueryTypeahead(code: string, query: V1_ValueSpecification): Promise<CompletionItem[]>;
42
44
  parseQuery(code: string, returnSourceInformation?: boolean): Promise<V1_ValueSpecification>;
45
+ getQueryCode(query: V1_ValueSpecification, pretty?: boolean | undefined): Promise<string>;
43
46
  getQueryRelationType(query: V1_ValueSpecification): Promise<RelationType>;
44
47
  getRelationalType(query: RawLambda): Promise<RelationType>;
45
48
  getQueryCodeRelationReturnType(code: string, baseQuery: V1_ValueSpecification): Promise<RelationType>;
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngine.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,SAAS,EACT,SAAS,EAET,kBAAkB,EAKlB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACd,KAAK,qBAAqB,EAC3B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,0BAA0B,EAC1B,cAAc,EACd,KAAK,cAAc,EACnB,mBAAmB,EACnB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EAElB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAiB,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,qBAAa,cAAc;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,mBAAmB,CAAC;gBAG1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,mBAAmB;CAO9B;AAED,qBAAa,+BAAgC,SAAQ,mBAAmB;CAAG;AAC3E,qBAAa,0BAA2B,SAAQ,cAAc;IAC5D,QAAQ,CAAC,UAAU,aAAoB;IACvC,QAAQ,CAAC,UAAU,EAAE,iBAAiB,CAAC;IACvC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBAE3B,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,WAAW,EAAE,MAAM,EACnB,iBAAiB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BAAqB,GAC3B,OAAO,CAAC,cAAc,EAAE,CAAC;IAcb,UAAU,CACvB,IAAI,EAAE,MAAM,EACZ,uBAAuB,CAAC,EAAE,OAAO,GAChC,OAAO,CAAC,qBAAqB,CAAC;IAUxB,YAAY,CACnB,KAAK,EAAE,qBAAqB,EAC5B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAC3B,OAAO,CAAC,MAAM,CAAC;IAOT,oBAAoB,CAC3B,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,YAAY,CAAC;IAKlB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC;IASjD,8BAA8B,CAC3C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,qBAAqB,GAC/B,OAAO,CAAC,YAAY,CAAC;IAWT,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;QACrD,MAAM,EAAE,kBAAkB,CAAC;QAC3B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CA+BH"}
@@ -35,13 +35,16 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
35
35
  graphState;
36
36
  selectInitialQuery;
37
37
  mappingPath;
38
+ parameterValues;
38
39
  runtimePath;
39
- constructor(selectQuery, mappingPath, runtimePath, graphManagerState) {
40
+ _parameters;
41
+ constructor(selectQuery, parameterValues, mappingPath, runtimePath, graphManagerState) {
40
42
  super();
41
43
  this.graphState = graphManagerState;
42
44
  this.selectInitialQuery = selectQuery;
43
45
  this.mappingPath = mappingPath;
44
46
  this.runtimePath = runtimePath;
47
+ this.parameterValues = parameterValues;
45
48
  }
46
49
  get sourceLabel() {
47
50
  return `Query Builder Report`;
@@ -59,6 +62,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
59
62
  srcFuncExp.body[0]) {
60
63
  srcFuncExp = srcFuncExp.body[0];
61
64
  }
65
+ this._parameters = this.selectInitialQuery.parameters;
62
66
  const fromFuncExp = new V1_AppliedFunction();
63
67
  fromFuncExp.function = _functionName(SUPPORTED_FUNCTIONS.FROM);
64
68
  fromFuncExp.parameters = [srcFuncExp];
@@ -101,6 +105,8 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
101
105
  // we return undefined as we assume the grid license is set at the application level where query builder is built
102
106
  return Promise.resolve({
103
107
  gridClientLicense: undefined,
108
+ simpleSampleDataTableName: '',
109
+ complexSampleDataTableName: '',
104
110
  });
105
111
  }
106
112
  async getQueryTypeahead(code, query) {
@@ -114,6 +120,9 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
114
120
  async parseQuery(code, returnSourceInformation) {
115
121
  return V1_deserializeValueSpecification(await this.graphState.graphManager.pureCodeToValueSpecification(code, returnSourceInformation), []);
116
122
  }
123
+ getQueryCode(query, pretty) {
124
+ return this.graphState.graphManager.valueSpecificationToPureCode(V1_serializeValueSpecification(query, []), pretty);
125
+ }
117
126
  getQueryRelationType(query) {
118
127
  const lambda = this.buildRawLambdaFromValueSpec(query);
119
128
  return this.getRelationalType(lambda);
@@ -129,8 +138,11 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
129
138
  }
130
139
  async executeQuery(query) {
131
140
  const lambda = this.buildRawLambdaFromValueSpec(query);
141
+ lambda.parameters = this._parameters;
132
142
  const [executionWithMetadata, queryString] = await Promise.all([
133
- this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph),
143
+ this.graphState.graphManager.runQuery(lambda, undefined, undefined, this.graph, {
144
+ parameterValues: this.parameterValues ?? [],
145
+ }),
134
146
  this.graphState.graphManager.lambdaToPureCode(lambda),
135
147
  ]);
136
148
  const expectedTDS = guaranteeType(executionWithMetadata.executionResult, TDSExecutionResult, 'Query returned expected to be of tabular data set');
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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version":3,"file":"QueryBuilderDataCubeEngine.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngine.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,6BAA6B,EAC7B,kBAAkB,EAClB,mCAAmC,EACnC,gCAAgC,EAChC,YAAY,EACZ,8BAA8B,GAK/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,aAAa,EACb,0BAA0B,EAC1B,cAAc,EAEd,mBAAmB,EAGnB,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,OAAO,cAAc;IACzB,IAAI,CAAS;IACb,KAAK,CAAS;IACd,YAAY,CAAS;IACrB,MAAM,CAAsB;IAE5B,YACE,IAAY,EACZ,KAAa,EACb,YAAoB,EACpB,MAA2B;QAE3B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,MAAM,OAAO,+BAAgC,SAAQ,mBAAmB;CAAG;AAC3E,MAAM,OAAO,0BAA2B,SAAQ,cAAc;IACnD,UAAU,GAAG,IAAI,UAAU,EAAE,CAAC;IAC9B,UAAU,CAAoB;IAC9B,kBAAkB,CAAY;IAC9B,WAAW,CAAqB;IAChC,eAAe,CAA+B;IAC9C,WAAW,CAAS;IAC7B,WAAW,CAAqB;IAEhC,YACE,WAAsB,EACtB,eAA6C,EAC7C,WAA+B,EAC/B,WAAmB,EACnB,iBAAoC;QAEpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC;QACpC,IAAI,CAAC,k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ACnC,MAAM,EACN,SAAS,EACT,SAAS,EACT,IAAI,CAAC,KAAK,EACV;gBACE,eAAe,EAAE,IAAI,CAAC,eAAe,IAAI,EAAE;aAC5C,CACF;YACD,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,gBAAgB,CAAC,MAAM,CAAC;SACtD,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,aAAa,CAC/B,qBAAqB,CAAC,eAAe,EACrC,kBAAkB,EAClB,mDAAmD,CACpD,CAAC;QACF,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC;QACxC,IAAI,SAAS,GAAG,kBAAkB,CAAC;QACnC,IAAI,GAAG,YAAY,6BAA6B,EAAE,CAAC;YACjD,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC;QACtB,CAAC;QACD,OAAO;YACL,MAAM,EAAE,WAAW;YACnB,aAAa,EAAE,WAAW;YAC1B,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;CACF"}
@@ -14,6 +14,6 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type DataCubeEngine } from '@finos/legend-data-cube';
17
- import type { QueryBuilderState } from '../QueryBuilderState.js';
17
+ import { type QueryBuilderState } from '../QueryBuilderState.js';
18
18
  export declare const createDataCubeEngineFromQueryBuilder: (queryBuilderState: QueryBuilderState) => DataCubeEngine | undefined;
19
19
  //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngineHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAIjE,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,KACnC,cAAc,GAAG,SAiBnB,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAKjC,eAAO,MAAM,oCAAoC,sBAC5B,iBAAiB,KACnC,cAAc,GAAG,SA4BnB,CAAC"}
@@ -14,8 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import {} from '@finos/legend-data-cube';
17
+ import { QUERY_BUILDER_LAMBDA_WRITER_MODE, } from '../QueryBuilderState.js';
17
18
  import { RuntimePointer } from '@finos/legend-graph';
18
19
  import { QueryBuilderDataCubeEngine } from './QueryBuilderDataCubeEngine.js';
20
+ import { buildExecutionParameterValues } from '../shared/LambdaParameterState.js';
19
21
  export const createDataCubeEngineFromQueryBuilder = (queryBuilderState) => {
20
22
  const runtime = queryBuilderState.executionContextState.runtimeValue instanceof
21
23
  RuntimePointer
@@ -25,7 +27,12 @@ export const createDataCubeEngineFromQueryBuilder = (queryBuilderState) => {
25
27
  if (!runtime) {
26
28
  return undefined;
27
29
  }
28
- const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
30
+ const currentLambdaWriterMode = queryBuilderState.lambdaWriteMode;
31
+ // ensure we write in new tds mode
32
+ queryBuilderState.setLambdaWriteMode(QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE);
33
+ const parameterValues = buildExecutionParameterValues(queryBuilderState.parametersState.parameterStates, queryBuilderState.graphManagerState);
34
+ const queryBuilderEngine = new QueryBuilderDataCubeEngine(queryBuilderState.buildQuery(), parameterValues, queryBuilderState.executionContextState.mapping?.path, runtime, queryBuilderState.graphManagerState);
35
+ queryBuilderState.setLambdaWriteMode(currentLambdaWriterMode);
29
36
  return queryBuilderEngine;
30
37
  };
31
38
  //# sourceMappingURL=QueryBuilderDataCubeEngineHelper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderDataCubeEngineHelper.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAAoC,EACR,EAAE;IAC9B,MAAM,OAAO,GACX,iBAAiB,CAAC,qBAAqB,CAAC,YAAY;QACpD,cAAc;QACZ,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,kBAAkB;aACpE,KAAK,CAAC,IAAI;QACf,CAAC,CAAC,SAAS,CAAC;IAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,kBAAkB,GAAG,IAAI,0BAA0B,CACvD,iBAAiB,CAAC,UAAU,EAAE,EAC9B,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAAE,IAAI,EACrD,OAAO,EACP,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
1
+ {"version":3,"file":"QueryBuilderDataCubeEngineHelper.js","sourceRoot":"","sources":["../../../src/stores/data-cube/QueryBuilderDataCubeEngineHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAuB,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,gCAAgC,GAEjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAClD,iBAAoC,EACR,EAAE;IAC9B,MAAM,OAAO,GACX,iBAAiB,CAAC,qBAAqB,CAAC,YAAY;QACpD,cAAc;QACZ,CAAC,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,YAAY,CAAC,kBAAkB;aACpE,KAAK,CAAC,IAAI;QACf,CAAC,CAAC,SAAS,CAAC;IAChB,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,eAAe,CAAC;IAClE,kCAAkC;IAClC,iBAAiB,CAAC,kBAAkB,CAClC,gCAAgC,CAAC,qBAAqB,CACvD,CAAC;IACF,MAAM,eAAe,GAAG,6BAA6B,CACnD,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACjD,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,MAAM,kBAAkB,GAAG,IAAI,0BAA0B,CACvD,iBAAiB,CAAC,UAAU,EAAE,EAC9B,eAAe,EACf,iBAAiB,CAAC,qBAAqB,CAAC,OAAO,EAAE,IAAI,EACrD,OAAO,EACP,iBAAiB,CAAC,iBAAiB,CACpC,CAAC;IACF,iBAAiB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,CAAC;IAC9D,OAAO,kBAAkB,CAAC;AAC5B,CAAC,CAAC"}
@@ -17,7 +17,8 @@ import { type ObserverContext, type Type, type ValueSpecification, type PureMode
17
17
  import { type Hashable } from '@finos/legend-shared';
18
18
  export declare enum PARAMETER_SUBMIT_ACTION {
19
19
  RUN = "RUN",
20
- EXPORT = "EXPORT"
20
+ EXPORT = "EXPORT",
21
+ DATA_CUBE = "DATA_CUBE"
21
22
  }
22
23
  export declare const buildParametersLetLambdaFunc: (graph: PureModel, lambdaParametersStates: LambdaParameterState[]) => LambdaFunction;
23
24
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterState.d.ts","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,IAAI,EACT,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAKd,kBAAkB,EAGlB,cAAc,EAId,YAAY,EAKZ,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,QAAQ,EAMd,MAAM,sBAAsB,CAAC;AAQ9B,oBAAY,uBAAuB;IACjC,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAOD,eAAO,MAAM,4BAA4B,UAChC,SAAS,0BACQ,oBAAoB,EAAE,KAC7C,cA6BF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6CAA6C,mBACxC,oBAAoB,KACnC,OAIA,CAAC;AAEJ,eAAO,MAAM,oCAAoC,oBAC9B,oBAAoB,EAAE,KACtC,oBAAoB,EACgD,CAAC;AAExE,eAAO,MAAM,6BAA6B,gBAC3B,oBAAoB,EAAE,cACvB,iBAAiB,KAC5B,cAAc,EAUX,CAAC;AAEP,eAAO,MAAM,8BAA8B,cAC9B,SAAS,mBACH,oBAAoB,EAAE,qBACpB,iBAAiB,KACnC,SA0BF,CAAC;AAEF,eAAO,MAAM,qCAAqC,mBAChC,cAAc,mBACb,oBAAoB,EAAE,qBACpB,iBAAiB,KACnC,cAwBF,CAAC;AAEF,qBAAa,oBAAqB,YAAW,QAAQ;IACnD,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;I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GAAG,EAAE,oBAAoB,EAAE,GAAG,IAAI;CAGjD"}
@@ -22,6 +22,7 @@ export var PARAMETER_SUBMIT_ACTION;
22
22
  (function (PARAMETER_SUBMIT_ACTION) {
23
23
  PARAMETER_SUBMIT_ACTION["RUN"] = "RUN";
24
24
  PARAMETER_SUBMIT_ACTION["EXPORT"] = "EXPORT";
25
+ PARAMETER_SUBMIT_ACTION["DATA_CUBE"] = "DATA_CUBE";
25
26
  })(PARAMETER_SUBMIT_ACTION || (PARAMETER_SUBMIT_ACTION = {}));
26
27
  var LAMABA_PARAMETER_HASH_STRUCTURE;
27
28
  (function (LAMABA_PARAMETER_HASH_STRUCTURE) {
@@ -1 +1 @@
1
- {"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,cAAc,EACd,0BAA0B,EAC1B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,WAAW,EAEX,SAAS,EACT,iBAAiB,EACjB,IAAI,EACJ,aAAa,EACb,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,mCAAmC,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EACL,iCAAiC,EACjC,kCAAkC,GACnC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,sCAAW,CAAA;IACX,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C,OAA4B,EAAE,KAAa;QAC9C,IAAI,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAED,KAAK;QACH,IAAI,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAChC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,OAAgB,qBAAqB;IACzC,eAAe,GAA2B,EAAE,CAAC;IAC7C,0BAA0B,GAAG,IAAI,kCAAkC,EAAE,CAAC;IAEtE;QACE,cAAc,CAAC,IAAI,EAAE;YACnB,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;IACL,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,+BAA+B,CAAC,uBAAuB;YACvD,SAAS,CAAC,IAAI,CAAC,eAAe,CAAC;SAChC,CAAC,CAAC;IACL,CAAC;IAED,YAAY,CAAC,GAAyB;QACpC,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IAC5C,CAAC;IAED,eAAe,CAAC,GAAyB;QACvC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,aAAa,CAAC,GAA2B;QACvC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
1
+ {"version":3,"file":"LambdaParameterState.js","sourceRoot":"","sources":["../../../src/stores/shared/LambdaParameterState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAOL,WAAW,EACX,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAClB,wBAAwB,EACxB,mCAAmC,EACnC,cAAc,EACd,YAAY,EACZ,cAAc,EACd,0BAA0B,EAC1B,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB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C,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;IACzC,CAAC;IAED,aAAa,CAAC,GAA2B;QACvC,IAAI,CAAC,eAAe,GAAG,GAAG,CAAC;IAC7B,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-query-builder",
3
- "version": "4.15.1",
3
+ "version": "4.15.2",
4
4
  "description": "Legend query builder core",
5
5
  "keywords": [
6
6
  "legend",
@@ -42,12 +42,12 @@
42
42
  "test:watch": "jest --watch"
43
43
  },
44
44
  "dependencies": {
45
- "@finos/legend-application": "16.0.2",
46
- "@finos/legend-art": "7.1.61",
45
+ "@finos/legend-application": "16.0.3",
46
+ "@finos/legend-art": "7.1.62",
47
47
  "@finos/legend-code-editor": "2.0.3",
48
- "@finos/legend-data-cube": "0.0.7",
48
+ "@finos/legend-data-cube": "0.0.8",
49
49
  "@finos/legend-graph": "31.10.37",
50
- "@finos/legend-lego": "2.0.4",
50
+ "@finos/legend-lego": "2.0.5",
51
51
  "@finos/legend-server-depot": "6.0.62",
52
52
  "@finos/legend-shared": "10.0.57",
53
53
  "@finos/legend-storage": "3.0.107",
@@ -68,7 +68,7 @@
68
68
  "sql-formatter": "15.4.3"
69
69
  },
70
70
  "devDependencies": {
71
- "@finos/legend-dev-utils": "2.1.24",
71
+ "@finos/legend-dev-utils": "2.1.25",
72
72
  "@jest/globals": "29.7.0",
73
73
  "cross-env": "7.0.3",
74
74
  "eslint": "9.12.0",
@@ -27,8 +27,7 @@ import {
27
27
  WindowMaximizeIcon,
28
28
  } from '@finos/legend-art';
29
29
  import { useState } from 'react';
30
- import { RuntimePointer } from '@finos/legend-graph';
31
- import { QueryBuilderDataCubeEngine } from '../../stores/data-cube/QueryBuilderDataCubeEngine.js';
30
+ import { createDataCubeEngineFromQueryBuilder } from '../../stores/data-cube/QueryBuilderDataCubeEngineHelper.js';
32
31
 
33
32
  const QueryBuilderDataCube = observer(
34
33
  (props: { queryBuilderState: QueryBuilderState }) => {
@@ -36,22 +35,11 @@ const QueryBuilderDataCube = observer(
36
35
  const applicationStore = new QueryBuilderDataCubeApplicationEngine(
37
36
  queryBuilderState.applicationStore,
38
37
  );
39
- const runtime =
40
- queryBuilderState.executionContextState.runtimeValue instanceof
41
- RuntimePointer
42
- ? queryBuilderState.executionContextState.runtimeValue
43
- .packageableRuntime.value.path
44
- : undefined;
45
- if (!runtime) {
46
- // TODO: add better message
38
+ const queryBuilderEngine =
39
+ createDataCubeEngineFromQueryBuilder(queryBuilderState);
40
+ if (!queryBuilderEngine) {
47
41
  return null;
48
42
  }
49
- const queryBuilderEngine = new QueryBuilderDataCubeEngine(
50
- queryBuilderState.buildQuery(),
51
- queryBuilderState.executionContextState.mapping?.path,
52
- runtime,
53
- queryBuilderState.graphManagerState,
54
- );
55
43
 
56
44
  return (
57
45
  <DataCubeProvider
@@ -408,6 +408,28 @@ export const QueryBuilderResultPanel = observer(
408
408
  }
409
409
  resultState.pressedRunQuery.complete();
410
410
  };
411
+
412
+ const openDataCube = (): void => {
413
+ if (
414
+ queryParametersState.parameterStates.length &&
415
+ queryParametersState.parameterStates.find(
416
+ (param) =>
417
+ !queryBuilderState.milestoningState.isMilestoningParameter(
418
+ param.parameter,
419
+ ),
420
+ )
421
+ ) {
422
+ queryParametersState.parameterValuesEditorState.open(
423
+ (): Promise<void> => {
424
+ queryBuilderState.setIsCubeEnabled(true);
425
+ return Promise.resolve();
426
+ },
427
+ PARAMETER_SUBMIT_ACTION.DATA_CUBE,
428
+ );
429
+ } else {
430
+ queryBuilderState.setIsCubeEnabled(true);
431
+ }
432
+ };
411
433
  const cancelQuery = applicationStore.guardUnhandledError(() =>
412
434
  flowResult(resultState.cancelQuery()),
413
435
  );
@@ -841,9 +863,7 @@ export const QueryBuilderResultPanel = observer(
841
863
  </MenuContentItem>
842
864
  {queryBuilderState.config?.TEMPORARY__enableExportToCube && (
843
865
  <MenuContentItem
844
- onClick={(): void =>
845
- queryBuilderState.setIsCubeEnabled(true)
846
- }
866
+ onClick={openDataCube}
847
867
  disabled={
848
868
  !queryBuilderState.fetchStructureState.implementation
849
869
  .canBeExportedToCube ||
@@ -19,10 +19,7 @@ import {
19
19
  shouldDisplayVirtualAssistantDocumentationEntry,
20
20
  type GenericLegendApplicationStore,
21
21
  } from '@finos/legend-application';
22
- import {
23
- DataCubeApplicationEngine,
24
- type ActionAlert,
25
- } from '@finos/legend-data-cube';
22
+ import { DataCubeApplicationEngine } from '@finos/legend-data-cube';
26
23
  import { LogEvent, type DocumentationEntry } from '@finos/legend-shared';
27
24
 
28
25
  export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEngine {
@@ -58,14 +55,6 @@ export class QueryBuilderDataCubeApplicationEngine extends DataCubeApplicationEn
58
55
  this.application.layoutService.setWindowTitle(title);
59
56
  }
60
57
 
61
- alertAction(alertInfo: ActionAlert | undefined) {
62
- this.currentActionAlert = alertInfo;
63
- }
64
-
65
- alertUnhandledError(error: Error) {
66
- this.application.alertUnhandledError(error);
67
- }
68
-
69
58
  logDebug(message: string, ...data: unknown[]) {
70
59
  this.application.logService.debug(
71
60
  LogEvent.create(APPLICATION_EVENT.DEBUG),
@@ -28,6 +28,7 @@ import {
28
28
  type GraphManagerState,
29
29
  type PureModel,
30
30
  type V1_ValueSpecification,
31
+ type ParameterValue,
31
32
  } from '@finos/legend-graph';
32
33
  import {
33
34
  _elementPtr,
@@ -67,9 +68,13 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
67
68
  readonly graphState: GraphManagerState;
68
69
  readonly selectInitialQuery: RawLambda;
69
70
  readonly mappingPath: string | undefined;
71
+ readonly parameterValues: ParameterValue[] | undefined;
70
72
  readonly runtimePath: string;
73
+ _parameters: object | undefined;
74
+
71
75
  constructor(
72
76
  selectQuery: RawLambda,
77
+ parameterValues: ParameterValue[] | undefined,
73
78
  mappingPath: string | undefined,
74
79
  runtimePath: string,
75
80
  graphManagerState: GraphManagerState,
@@ -79,6 +84,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
79
84
  this.selectInitialQuery = selectQuery;
80
85
  this.mappingPath = mappingPath;
81
86
  this.runtimePath = runtimePath;
87
+ this.parameterValues = parameterValues;
82
88
  }
83
89
 
84
90
  get sourceLabel(): string {
@@ -105,6 +111,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
105
111
  ) {
106
112
  srcFuncExp = srcFuncExp.body[0];
107
113
  }
114
+ this._parameters = this.selectInitialQuery.parameters;
108
115
  const fromFuncExp = new V1_AppliedFunction();
109
116
  fromFuncExp.function = _functionName(SUPPORTED_FUNCTIONS.FROM);
110
117
  fromFuncExp.parameters = [srcFuncExp];
@@ -159,6 +166,8 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
159
166
  // we return undefined as we assume the grid license is set at the application level where query builder is built
160
167
  return Promise.resolve({
161
168
  gridClientLicense: undefined,
169
+ simpleSampleDataTableName: '',
170
+ complexSampleDataTableName: '',
162
171
  });
163
172
  }
164
173
  override async getQueryTypeahead(
@@ -191,6 +200,16 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
191
200
  );
192
201
  }
193
202
 
203
+ override getQueryCode(
204
+ query: V1_ValueSpecification,
205
+ pretty?: boolean | undefined,
206
+ ): Promise<string> {
207
+ return this.graphState.graphManager.valueSpecificationToPureCode(
208
+ V1_serializeValueSpecification(query, []),
209
+ pretty,
210
+ );
211
+ }
212
+
194
213
  override getQueryRelationType(
195
214
  query: V1_ValueSpecification,
196
215
  ): Promise<RelationType> {
@@ -227,12 +246,16 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
227
246
  executedSQL: string;
228
247
  }> {
229
248
  const lambda = this.buildRawLambdaFromValueSpec(query);
249
+ lambda.parameters = this._parameters;
230
250
  const [executionWithMetadata, queryString] = await Promise.all([
231
251
  this.graphState.graphManager.runQuery(
232
252
  lambda,
233
253
  undefined,
234
254
  undefined,
235
255
  this.graph,
256
+ {
257
+ parameterValues: this.parameterValues ?? [],
258
+ },
236
259
  ),
237
260
  this.graphState.graphManager.lambdaToPureCode(lambda),
238
261
  ]);
@@ -15,9 +15,13 @@
15
15
  */
16
16
 
17
17
  import { type DataCubeEngine } from '@finos/legend-data-cube';
18
- import type { QueryBuilderState } from '../QueryBuilderState.js';
18
+ import {
19
+ QUERY_BUILDER_LAMBDA_WRITER_MODE,
20
+ type QueryBuilderState,
21
+ } from '../QueryBuilderState.js';
19
22
  import { RuntimePointer } from '@finos/legend-graph';
20
23
  import { QueryBuilderDataCubeEngine } from './QueryBuilderDataCubeEngine.js';
24
+ import { buildExecutionParameterValues } from '../shared/LambdaParameterState.js';
21
25
 
22
26
  export const createDataCubeEngineFromQueryBuilder = (
23
27
  queryBuilderState: QueryBuilderState,
@@ -31,11 +35,22 @@ export const createDataCubeEngineFromQueryBuilder = (
31
35
  if (!runtime) {
32
36
  return undefined;
33
37
  }
38
+ const currentLambdaWriterMode = queryBuilderState.lambdaWriteMode;
39
+ // ensure we write in new tds mode
40
+ queryBuilderState.setLambdaWriteMode(
41
+ QUERY_BUILDER_LAMBDA_WRITER_MODE.TYPED_FETCH_STRUCTURE,
42
+ );
43
+ const parameterValues = buildExecutionParameterValues(
44
+ queryBuilderState.parametersState.parameterStates,
45
+ queryBuilderState.graphManagerState,
46
+ );
34
47
  const queryBuilderEngine = new QueryBuilderDataCubeEngine(
35
48
  queryBuilderState.buildQuery(),
49
+ parameterValues,
36
50
  queryBuilderState.executionContextState.mapping?.path,
37
51
  runtime,
38
52
  queryBuilderState.graphManagerState,
39
53
  );
54
+ queryBuilderState.setLambdaWriteMode(currentLambdaWriterMode);
40
55
  return queryBuilderEngine;
41
56
  };
@@ -60,6 +60,7 @@ import {
60
60
  export enum PARAMETER_SUBMIT_ACTION {
61
61
  RUN = 'RUN',
62
62
  EXPORT = 'EXPORT',
63
+ DATA_CUBE = 'DATA_CUBE',
63
64
  }
64
65
 
65
66
  enum LAMABA_PARAMETER_HASH_STRUCTURE {