@finos/legend-query-builder 3.2.5 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.d.ts +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +2 -2
- package/lib/components/QueryBuilderResultPanel.d.ts +1 -1
- package/lib/components/QueryBuilderSideBar.d.ts +2 -2
- package/lib/components/QueryBuilderTextEditor.d.ts +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +1 -1
- package/lib/components/QueryLoader.d.ts +2 -2
- package/lib/components/data-access/DataAccessOverview.d.ts +1 -1
- package/lib/components/execution-plan/ExecutionPlanViewer.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +3 -3
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +2 -2
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.d.ts +2 -2
- package/lib/components/watermark/QueryBuilderWatermark.d.ts +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +2 -2
- package/lib/stores/data-access/DataAccessState.d.ts.map +1 -1
- package/lib/stores/data-access/DataAccessState.js +3 -3
- package/lib/stores/data-access/DataAccessState.js.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts +3 -0
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.d.ts.map +1 -1
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js +18 -3
- package/lib/stores/entitlements/QueryBuilderCheckEntitlementsState.js.map +1 -1
- package/package.json +5 -5
- package/src/stores/data-access/DataAccessState.ts +7 -5
- package/src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts +38 -3
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataAccessState.d.ts","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAKzB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EAGX,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAW9B,qBAAa,iBAAiB;IAC5B,QAAQ,CAAC,IAAI,SAAU;IACvB,QAAQ,CAAC,aAAa,EAAG,oBAAoB,CAAC;IAE9C,iBAAiB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;gBAE7C,aAAa,EAAE,oBAAoB;IAS/C,oBAAoB,CAAC,GAAG,EAAE,wBAAwB,GAAG,SAAS,GAAG,IAAI;CAGtE;AAED,KAAK,oBAAoB,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE;QAAE,KAAK,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EAAE,oBAAoB,EAAE,GAAG,SAAS,CAAC;QACrD,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,SAAS,CAAC;QACrB,QAAQ,EAAE,MAAM,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;KAChD;IAqBH,IAAI,oBAAoB,IAAI,oBAAoB,CAuI/C;IAEA,0BAA0B,IAAI,WAAW,CAAC,IAAI,CAAC;IA4B/C,8BAA8B,IAAI,WAAW,CAAC,IAAI,CAAC;IA4C9C,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAS1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
@@ -80,7 +80,7 @@ export class DataAccessState {
|
|
80
80
|
};
|
81
81
|
const accessGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
82
82
|
DatasetEntitlementAccessGrantedReport).length;
|
83
|
-
const accessGrantedPercentage = Math.round(accessGrantedCount / total) * 100;
|
83
|
+
const accessGrantedPercentage = Math.round((accessGrantedCount / total) * 100);
|
84
84
|
info.data.push({
|
85
85
|
label: 'Access Granted',
|
86
86
|
count: accessGrantedCount,
|
@@ -107,7 +107,7 @@ export class DataAccessState {
|
|
107
107
|
});
|
108
108
|
const accessNotGrantedCount = this.datasets.filter((dataset) => dataset.entitlementReport instanceof
|
109
109
|
DatasetEntitlementAccessNotGrantedReport).length;
|
110
|
-
const accessNotGrantedPercentage = Math.round(accessNotGrantedCount / total) * 100;
|
110
|
+
const accessNotGrantedPercentage = Math.round((accessNotGrantedCount / total) * 100);
|
111
111
|
info.data.push({
|
112
112
|
label: 'Access Not Granted',
|
113
113
|
count: accessNotGrantedCount,
|
@@ -129,7 +129,7 @@ export class DataAccessState {
|
|
129
129
|
accessRequestedCount -
|
130
130
|
accessNotGrantedCount -
|
131
131
|
unsupportedCount;
|
132
|
-
const unknownPercentage = Math.round(unknownCount / total) * 100;
|
132
|
+
const unknownPercentage = Math.round((unknownCount / total) * 100);
|
133
133
|
info.data.push({
|
134
134
|
label: 'Unknown',
|
135
135
|
count: unknownCount,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataAccessState.js","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,qCAAqC,EAIrC,sCAAsC,EACtC,uCAAuC,EACvC,wCAAwC,EACxC,mCAAmC,GAGpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,IAAI,EAEJ,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,OAAO,iBAAiB;IACnB,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,aAAa,CAAwB;IAE9C,iBAAiB,CAAwC;IAEzD,YAAY,aAAmC;QAC7C,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;SAC7B,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,oBAAoB,CAAC,GAAyC;QAC5D,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC;IAC/B,CAAC;CACF;AAOD,MAAM,OAAO,eAAe;IACjB,gBAAgB,CAAgC;IAChD,iBAAiB,CAAyB;IAE1C,eAAe,CAAsC;IACrD,OAAO,CAAS;IAChB,OAAO,CAAS;IAChB,SAAS,CAAY;IACrB,QAAQ,CAAuC;IAE/C,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,sBAAsB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAEvD,QAAQ,GAAwB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AC,QAAQ,CAAC,MAAM,CAC7C,CAAC,OAAO,EAAE,EAAE,CACV,OAAO,CAAC,iBAAiB;YACzB,qCAAqC,CACxC,CAAC,MAAM,CAAC;QACT,MAAM,uBAAuB,
|
1
|
+
{"version":3,"file":"DataAccessState.js","sourceRoot":"","sources":["../../../src/stores/data-access/DataAccessState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,qCAAqC,EAIrC,sCAAsC,EACtC,uCAAuC,EACvC,wCAAwC,EACxC,mCAAmC,GAGpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,IAAI,EAEJ,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,OAAO,iBAAiB;IACnB,IAAI,GAAG,IAAI,EAAE,CAAC;IACd,aAAa,CAAwB;IAE9C,iBAAiB,CAAwC;IAEzD,YAAY,aAAmC;QAC7C,cAAc,CAAC,IAAI,EAAE;YACnB,iBAAiB,EAAE,UAAU;YAC7B,oBAAoB,EAAE,MAAM;SAC7B,CAAC,CAAC;QAEH,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;IAED,oBAAoB,CAAC,GAAyC;QAC5D,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC;IAC/B,CAAC;CACF;AAOD,MAAM,OAAO,eAAe;IACjB,gBAAgB,CAAgC;IAChD,iBAAiB,CAAyB;IAE1C,eAAe,CAAsC;IACrD,OAAO,CAAS;IAChB,OAAO,CAAS;IAChB,SAAS,CAAY;IACrB,QAAQ,CAAuC;IAE/C,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,sBAAsB,GAAG,WAAW,CAA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CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;SACzD;aAAM;YACL,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;SACzD;IACH,CAAC;IAED,KAAK,CAAC,OAAO;QACX,MAAM,UAAU,CAAC,IAAI,CAAC,0BAA0B,EAAE,CAAC,CAAC;QACpD,MAAM,UAAU,CAAC,IAAI,CAAC,8BAA8B,EAAE,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
@@ -16,12 +16,15 @@
|
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
17
17
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
18
18
|
import { DataAccessState } from '../data-access/DataAccessState.js';
|
19
|
+
import { type GraphManagerState, type RawLambda } from '@finos/legend-graph';
|
20
|
+
import { type LambdaParameterState } from '../shared/LambdaParameterState.js';
|
19
21
|
export declare class QueryBuilderCheckEntitlementsState implements Hashable {
|
20
22
|
readonly queryBuilderState: QueryBuilderState;
|
21
23
|
dataAccessState?: DataAccessState | undefined;
|
22
24
|
showCheckEntitlementsViewer: boolean;
|
23
25
|
constructor(queryBuilderState: QueryBuilderState);
|
24
26
|
setShowCheckEntitlementsViewer(val: boolean): void;
|
27
|
+
createExecutableQuery(rawLambda: RawLambda, parameterStates: LambdaParameterState[], graphManagerState: GraphManagerState): RawLambda;
|
25
28
|
get hashCode(): string;
|
26
29
|
}
|
27
30
|
//# sourceMappingURL=QueryBuilderCheckEntitlementsState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderCheckEntitlementsState.d.ts","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAGhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAIf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAE3C,qBAAa,kCAAmC,YAAW,QAAQ;IACjE,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAE9C,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,2BAA2B,UAAS;gBAExB,iBAAiB,EAAE,iBAAiB;IAWhD,8BAA8B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IA6BlD,qBAAqB,CACnB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,oBAAoB,EAAE,EACvC,iBAAiB,EAAE,iBAAiB,GACnC,SAAS;IAsBZ,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
@@ -17,8 +17,8 @@ import { hashArray } from '@finos/legend-shared';
|
|
17
17
|
import { makeObservable, observable, action, computed } from 'mobx';
|
18
18
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtils.js';
|
19
19
|
import { DataAccessState } from '../data-access/DataAccessState.js';
|
20
|
-
import { RuntimePointer, InMemoryGraphData } from '@finos/legend-graph';
|
21
|
-
import {
|
20
|
+
import { RuntimePointer, InMemoryGraphData, buildRawLambdaFromLambdaFunction, } from '@finos/legend-graph';
|
21
|
+
import { buildParametersLetLambdaFunc, } from '../shared/LambdaParameterState.js';
|
22
22
|
export class QueryBuilderCheckEntitlementsState {
|
23
23
|
queryBuilderState;
|
24
24
|
dataAccessState;
|
@@ -40,11 +40,26 @@ export class QueryBuilderCheckEntitlementsState {
|
|
40
40
|
this.dataAccessState = new DataAccessState(this.queryBuilderState.applicationStore, this.queryBuilderState.graphManagerState, {
|
41
41
|
mapping: this.queryBuilderState.mapping.path,
|
42
42
|
runtime: this.queryBuilderState.runtimeValue.packageableRuntime.value.path,
|
43
|
-
getQuery: async () =>
|
43
|
+
getQuery: async () => this.createExecutableQuery(this.queryBuilderState.buildQuery(), this.queryBuilderState.parametersState.parameterStates, this.queryBuilderState.graphManagerState),
|
44
44
|
graphData: new InMemoryGraphData(this.queryBuilderState.graphManagerState.graph),
|
45
45
|
});
|
46
46
|
}
|
47
47
|
}
|
48
|
+
createExecutableQuery(rawLambda, parameterStates, graphManagerState) {
|
49
|
+
if (parameterStates.length > 0) {
|
50
|
+
const execLambdaFunction = buildParametersLetLambdaFunc(graphManagerState.graph, parameterStates);
|
51
|
+
const execQuery = buildRawLambdaFromLambdaFunction(execLambdaFunction, graphManagerState);
|
52
|
+
//reset Parameters
|
53
|
+
if (Array.isArray(rawLambda.body) && Array.isArray(execQuery.body)) {
|
54
|
+
execQuery.body = [
|
55
|
+
...execQuery.body,
|
56
|
+
...rawLambda.body,
|
57
|
+
];
|
58
|
+
return execQuery;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
return rawLambda;
|
62
|
+
}
|
48
63
|
get hashCode() {
|
49
64
|
return hashArray([
|
50
65
|
QUERY_BUILDER_STATE_HASH_STRUCTURE.CHECK_ENTITLEMENTS_STATE,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,
|
1
|
+
{"version":3,"file":"QueryBuilderCheckEntitlementsState.js","sourceRoot":"","sources":["../../../src/stores/entitlements/QueryBuilderCheckEntitlementsState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACpE,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC;AAEtF,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAGL,cAAc,EACd,iBAAiB,EACjB,gCAAgC,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,OAAO,kCAAkC;IACpC,iBAAiB,CAAoB;IAE9C,eAAe,CAA+B;IAC9C,2BAA2B,GAAG,KAAK,CAAC;IAEpC,YAAY,iBAAoC;QAC9C,cAAc,CAAC,IAAI,EAAE;YACnB,2BAA2B,EAAE,UAAU;YACvC,eAAe,EAAE,UAAU;YAC3B,8BAA8B,EAAE,MAAM;YACtC,QAAQ,EAAE,QAAQ;SACnB,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED,8BAA8B,CAAC,GAAY;QACzC,IAAI,CAAC,2BAA2B,GAAG,GAAG,CAAC;QAEvC,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC;QACjC,IACE,IAAI,CAAC,iBAAiB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AAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,wBAAwB;YAC3D,IAAI,CAAC,2BAA2B;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-query-builder",
|
3
|
-
"version": "3.2.
|
3
|
+
"version": "3.2.7",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,15 +42,15 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.0.
|
46
|
-
"@finos/legend-art": "7.0.
|
45
|
+
"@finos/legend-application": "15.0.12",
|
46
|
+
"@finos/legend-art": "7.0.13",
|
47
47
|
"@finos/legend-graph": "28.1.7",
|
48
|
-
"@finos/legend-lego": "1.0.
|
48
|
+
"@finos/legend-lego": "1.0.5",
|
49
49
|
"@finos/legend-server-depot": "6.0.6",
|
50
50
|
"@finos/legend-shared": "10.0.5",
|
51
51
|
"@finos/legend-storage": "3.0.55",
|
52
52
|
"@testing-library/react": "14.0.0",
|
53
|
-
"@types/react": "18.2.
|
53
|
+
"@types/react": "18.2.6",
|
54
54
|
"@types/react-dom": "18.2.4",
|
55
55
|
"chart.js": "4.3.0",
|
56
56
|
"mathjs": "11.8.0",
|
@@ -142,8 +142,9 @@ export class DataAccessState {
|
|
142
142
|
dataset.entitlementReport instanceof
|
143
143
|
DatasetEntitlementAccessGrantedReport,
|
144
144
|
).length;
|
145
|
-
const accessGrantedPercentage =
|
146
|
-
|
145
|
+
const accessGrantedPercentage = Math.round(
|
146
|
+
(accessGrantedCount / total) * 100,
|
147
|
+
);
|
147
148
|
info.data.push({
|
148
149
|
label: 'Access Granted',
|
149
150
|
count: accessGrantedCount,
|
@@ -192,8 +193,9 @@ export class DataAccessState {
|
|
192
193
|
dataset.entitlementReport instanceof
|
193
194
|
DatasetEntitlementAccessNotGrantedReport,
|
194
195
|
).length;
|
195
|
-
const accessNotGrantedPercentage =
|
196
|
-
|
196
|
+
const accessNotGrantedPercentage = Math.round(
|
197
|
+
(accessNotGrantedCount / total) * 100,
|
198
|
+
);
|
197
199
|
info.data.push({
|
198
200
|
label: 'Access Not Granted',
|
199
201
|
count: accessNotGrantedCount,
|
@@ -225,7 +227,7 @@ export class DataAccessState {
|
|
225
227
|
accessRequestedCount -
|
226
228
|
accessNotGrantedCount -
|
227
229
|
unsupportedCount;
|
228
|
-
const unknownPercentage = Math.round(unknownCount / total) * 100;
|
230
|
+
const unknownPercentage = Math.round((unknownCount / total) * 100);
|
229
231
|
info.data.push({
|
230
232
|
label: 'Unknown',
|
231
233
|
count: unknownCount,
|
@@ -19,8 +19,17 @@ import { makeObservable, observable, action, computed } from 'mobx';
|
|
19
19
|
import { QUERY_BUILDER_STATE_HASH_STRUCTURE } from '../QueryBuilderStateHashUtils.js';
|
20
20
|
import type { QueryBuilderState } from '../QueryBuilderState.js';
|
21
21
|
import { DataAccessState } from '../data-access/DataAccessState.js';
|
22
|
-
import {
|
23
|
-
|
22
|
+
import {
|
23
|
+
type GraphManagerState,
|
24
|
+
type RawLambda,
|
25
|
+
RuntimePointer,
|
26
|
+
InMemoryGraphData,
|
27
|
+
buildRawLambdaFromLambdaFunction,
|
28
|
+
} from '@finos/legend-graph';
|
29
|
+
import {
|
30
|
+
type LambdaParameterState,
|
31
|
+
buildParametersLetLambdaFunc,
|
32
|
+
} from '../shared/LambdaParameterState.js';
|
24
33
|
|
25
34
|
export class QueryBuilderCheckEntitlementsState implements Hashable {
|
26
35
|
readonly queryBuilderState: QueryBuilderState;
|
@@ -55,7 +64,7 @@ export class QueryBuilderCheckEntitlementsState implements Hashable {
|
|
55
64
|
runtime:
|
56
65
|
this.queryBuilderState.runtimeValue.packageableRuntime.value.path,
|
57
66
|
getQuery: async () =>
|
58
|
-
|
67
|
+
this.createExecutableQuery(
|
59
68
|
this.queryBuilderState.buildQuery(),
|
60
69
|
this.queryBuilderState.parametersState.parameterStates,
|
61
70
|
this.queryBuilderState.graphManagerState,
|
@@ -68,6 +77,32 @@ export class QueryBuilderCheckEntitlementsState implements Hashable {
|
|
68
77
|
}
|
69
78
|
}
|
70
79
|
|
80
|
+
createExecutableQuery(
|
81
|
+
rawLambda: RawLambda,
|
82
|
+
parameterStates: LambdaParameterState[],
|
83
|
+
graphManagerState: GraphManagerState,
|
84
|
+
): RawLambda {
|
85
|
+
if (parameterStates.length > 0) {
|
86
|
+
const execLambdaFunction = buildParametersLetLambdaFunc(
|
87
|
+
graphManagerState.graph,
|
88
|
+
parameterStates,
|
89
|
+
);
|
90
|
+
const execQuery = buildRawLambdaFromLambdaFunction(
|
91
|
+
execLambdaFunction,
|
92
|
+
graphManagerState,
|
93
|
+
);
|
94
|
+
//reset Parameters
|
95
|
+
if (Array.isArray(rawLambda.body) && Array.isArray(execQuery.body)) {
|
96
|
+
execQuery.body = [
|
97
|
+
...(execQuery.body as object[]),
|
98
|
+
...(rawLambda.body as object[]),
|
99
|
+
];
|
100
|
+
return execQuery;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
return rawLambda;
|
104
|
+
}
|
105
|
+
|
71
106
|
get hashCode(): string {
|
72
107
|
return hashArray([
|
73
108
|
QUERY_BUILDER_STATE_HASH_STRUCTURE.CHECK_ENTITLEMENTS_STATE,
|