@finos/legend-application-query 13.6.2 → 13.6.3

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.6.2
1
+ /** @license @finos/legend-application-query v13.6.3
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.6.2",
3
+ "version": "13.6.3",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -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 type { DepotServerClient } from '@finos/legend-server-depot';
16
+ import { type DepotServerClient } from '@finos/legend-server-depot';
17
17
  import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
18
18
  import { GraphManagerState } from '@finos/legend-graph';
19
19
  import { type GeneratorFn } from '@finos/legend-shared';
@@ -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;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"}
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.d.ts","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EACL,iBAAiB,EAIlB,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;CA0DjC"}
@@ -13,7 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { GraphManagerState, } from '@finos/legend-graph';
16
+ import { resolveVersion, } from '@finos/legend-server-depot';
17
+ import { GraphManagerState, LegendSDLC, } from '@finos/legend-graph';
17
18
  import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
18
19
  import { assertErrorThrown } from '@finos/legend-shared';
19
20
  import { QueryBuilderDataCubeEngine } from '@finos/legend-query-builder';
@@ -52,6 +53,7 @@ export class ExistingQueryDataCubeEditorStore {
52
53
  const content = queryInfo.content;
53
54
  const execConext = (yield this.graphManagerState.graphManager.resolveQueryInfoExecutionContext(queryInfo, () => this.depotServerClient.getVersionEntities(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId)));
54
55
  const lambda = (yield this.graphManagerState.graphManager.pureCodeToLambda(content));
56
+ this.graphManagerState.graph.setOrigin(new LegendSDLC(queryInfo.groupId, queryInfo.artifactId, resolveVersion(queryInfo.versionId)));
55
57
  // TODO: we should be able to call engine and convert lambda to relation if not one.
56
58
  const engine = new QueryBuilderDataCubeEngine(lambda, undefined, execConext.mapping, execConext.runtime, this.graphManagerState);
57
59
  this.engine = engine;
@@ -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;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,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,MAAM,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,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"}
1
+ {"version":3,"file":"ExistingQueryDataCubeViewer.js","sourceRoot":"","sources":["../../../src/stores/data-cube/ExistingQueryDataCubeViewer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,cAAc,GAEf,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,iBAAiB,EAGjB,UAAU,GACX,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,E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IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,gBAAgB,CACzD,OAAO,CACR,CAAyB,CAAC;YAC7B,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,SAAS,CACpC,IAAI,UAAU,CACZ,SAAS,CAAC,OAAO,EACjB,SAAS,CAAC,UAAU,EACpB,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CACpC,CACF,CAAC;YACF,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.2",
3
+ "version": "13.6.3",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -14,12 +14,16 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import type { DepotServerClient } from '@finos/legend-server-depot';
17
+ import {
18
+ resolveVersion,
19
+ type DepotServerClient,
20
+ } from '@finos/legend-server-depot';
18
21
  import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
19
22
  import {
20
23
  GraphManagerState,
21
24
  type RawLambda,
22
25
  type QueryInfo,
26
+ LegendSDLC,
23
27
  } from '@finos/legend-graph';
24
28
  import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
25
29
  import { assertErrorThrown, type GeneratorFn } from '@finos/legend-shared';
@@ -86,6 +90,13 @@ export class ExistingQueryDataCubeEditorStore {
86
90
  (yield this.graphManagerState.graphManager.pureCodeToLambda(
87
91
  content,
88
92
  )) as unknown as RawLambda;
93
+ this.graphManagerState.graph.setOrigin(
94
+ new LegendSDLC(
95
+ queryInfo.groupId,
96
+ queryInfo.artifactId,
97
+ resolveVersion(queryInfo.versionId),
98
+ ),
99
+ );
89
100
  // TODO: we should be able to call engine and convert lambda to relation if not one.
90
101
  const engine = new QueryBuilderDataCubeEngine(
91
102
  lambda,