@finos/legend-application-query 13.6.1 → 13.6.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.d.ts.map +1 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js +7 -1
- package/lib/stores/data-cube/ExistingQueryDataCubeViewer.js.map +1 -1
- package/package.json +8 -8
- package/src/stores/data-cube/ExistingQueryDataCubeViewer.ts +7 -0
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAGzE,qBAAa,gCAAgC;IAC3C,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IACvD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,0BAA0B,GAAG,SAAS,CAAC;gBAG7C,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM;IAehB,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAmDjC"}
|
@@ -17,6 +17,7 @@ import { GraphManagerState, } from '@finos/legend-graph';
|
|
17
17
|
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
18
18
|
import { assertErrorThrown } from '@finos/legend-shared';
|
19
19
|
import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
|
20
|
+
import { flow, makeObservable, observable } from 'mobx';
|
20
21
|
export class ExistingQueryDataCubeEditorStore {
|
21
22
|
applicationStore;
|
22
23
|
depotServerClient;
|
@@ -24,6 +25,10 @@ export class ExistingQueryDataCubeEditorStore {
|
|
24
25
|
queryId;
|
25
26
|
engine;
|
26
27
|
constructor(applicationStore, depotServerClient, queryId) {
|
28
|
+
makeObservable(this, {
|
29
|
+
initialize: flow,
|
30
|
+
engine: observable,
|
31
|
+
});
|
27
32
|
this.applicationStore = applicationStore;
|
28
33
|
this.depotServerClient = depotServerClient;
|
29
34
|
this.graphManagerState = new GraphManagerState(applicationStore.pluginManager, applicationStore.logService);
|
@@ -47,7 +52,8 @@ export class ExistingQueryDataCubeEditorStore {
|
|
47
52
|
const content = queryInfo.content;
|
48
53
|
const execConext = (yield this.graphManagerState.graphManager.resolveQueryInfoExecutionContext(queryInfo, () => this.depotServerClient.getVersionEntities(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId)));
|
49
54
|
const lambda = (yield this.graphManagerState.graphManager.pureCodeToLambda(content));
|
50
|
-
|
55
|
+
// TODO: we should be able to call engine and convert lambda to relation if not one.
|
56
|
+
const engine = new QueryBuilderDataCubeEngine(lambda, undefined, execConext.mapping, execConext.runtime, this.graphManagerState);
|
51
57
|
this.engine = engine;
|
52
58
|
}
|
53
59
|
catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;
|
1
|
+
{"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAoB,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAExD,MAAM,OAAO,gCAAgC;IAClC,gBAAgB,CAA8B;IAC9C,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,OAAO,CAAS;IACzB,MAAM,CAAyC;IAE/C,YACE,gBAA6C,EAC7C,iBAAoC,EACpC,OAAe;QAEf,cAAc,CAAC,IAAI,EAAE;YACnB,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,UAAU;SACnB,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AAgB,CACzD,OAAO,CACR,CAAyB,CAAC;YAC7B,oFAAoF;YACpF,MAAM,MAAM,GAAG,IAAI,0BAA0B,CAC3C,MAAM,EACN,SAAS,EACT,UAAU,CAAC,OAAO,EAClB,UAAU,CAAC,OAAO,EAClB,IAAI,CAAC,iBAAiB,CACvB,CAAC;YACF,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACnD,wCAAwC,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,EAAE,CACzE,CAAC;QACJ,CAAC;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-application-query",
|
3
|
-
"version": "13.6.
|
3
|
+
"version": "13.6.2",
|
4
4
|
"description": "Legend Query application core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -43,14 +43,14 @@
|
|
43
43
|
"test:watch": "jest --watch"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@finos/legend-application": "16.0.
|
47
|
-
"@finos/legend-art": "7.1.
|
46
|
+
"@finos/legend-application": "16.0.3",
|
47
|
+
"@finos/legend-art": "7.1.62",
|
48
48
|
"@finos/legend-code-editor": "2.0.3",
|
49
|
-
"@finos/legend-data-cube": "0.0.
|
50
|
-
"@finos/legend-extension-dsl-data-space": "10.3.
|
49
|
+
"@finos/legend-data-cube": "0.0.8",
|
50
|
+
"@finos/legend-extension-dsl-data-space": "10.3.80",
|
51
51
|
"@finos/legend-graph": "31.10.37",
|
52
|
-
"@finos/legend-lego": "2.0.
|
53
|
-
"@finos/legend-query-builder": "4.15.
|
52
|
+
"@finos/legend-lego": "2.0.5",
|
53
|
+
"@finos/legend-query-builder": "4.15.2",
|
54
54
|
"@finos/legend-server-depot": "6.0.62",
|
55
55
|
"@finos/legend-shared": "10.0.57",
|
56
56
|
"@finos/legend-storage": "3.0.107",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"serializr": "3.0.2"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
|
-
"@finos/legend-dev-utils": "2.1.
|
68
|
+
"@finos/legend-dev-utils": "2.1.25",
|
69
69
|
"@jest/globals": "29.7.0",
|
70
70
|
"cross-env": "7.0.3",
|
71
71
|
"eslint": "9.12.0",
|
@@ -24,6 +24,7 @@ import {
|
|
24
24
|
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
25
25
|
import { assertErrorThrown, type GeneratorFn } from '@finos/legend-shared';
|
26
26
|
import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
|
27
|
+
import { flow, makeObservable, observable } from 'mobx';
|
27
28
|
|
28
29
|
export class ExistingQueryDataCubeEditorStore {
|
29
30
|
readonly applicationStore: LegendQueryApplicationStore;
|
@@ -37,6 +38,10 @@ export class ExistingQueryDataCubeEditorStore {
|
|
37
38
|
depotServerClient: DepotServerClient,
|
38
39
|
queryId: string,
|
39
40
|
) {
|
41
|
+
makeObservable(this, {
|
42
|
+
initialize: flow,
|
43
|
+
engine: observable,
|
44
|
+
});
|
40
45
|
this.applicationStore = applicationStore;
|
41
46
|
this.depotServerClient = depotServerClient;
|
42
47
|
this.graphManagerState = new GraphManagerState(
|
@@ -81,8 +86,10 @@ export class ExistingQueryDataCubeEditorStore {
|
|
81
86
|
(yield this.graphManagerState.graphManager.pureCodeToLambda(
|
82
87
|
content,
|
83
88
|
)) as unknown as RawLambda;
|
89
|
+
// TODO: we should be able to call engine and convert lambda to relation if not one.
|
84
90
|
const engine = new QueryBuilderDataCubeEngine(
|
85
91
|
lambda,
|
92
|
+
undefined,
|
86
93
|
execConext.mapping,
|
87
94
|
execConext.runtime,
|
88
95
|
this.graphManagerState,
|