@finos/legend-extension-dsl-data-space 10.4.27 → 10.4.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js +5 -3
- package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -1
- package/package.json +1 -1
- package/src/stores/query-builder/DataSpaceQueryBuilderState.ts +6 -6
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,OAAO,EACZ,KAAK,OAAO,EAEZ,KAAK,SAAS,EAQf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,iBAAiB,EAKvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,K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G,EAAE,OAAO,GAAG,IAAI;IAI9C,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIjC,yBAAyB,IAC9B,qCAAqC,GACrC,SAAS;IAwBJ,YAAY,IAAI,SAAS;IAYjC,SAAS,IAAI,WAAW,CAAC,IAAI,CAAC;CAYhC"}
|
@@ -17,7 +17,7 @@ import { APPLICATION_EVENT, } from '@finos/legend-application';
|
|
17
17
|
import { QueryBuilderState, } from '@finos/legend-query-builder';
|
18
18
|
import { getMappingCompatibleClasses, Package, QueryDataSpaceExecutionContext, elementBelongsToPackage, GraphDataWithOrigin, LegendSDLC, InMemoryGraphData, } from '@finos/legend-graph';
|
19
19
|
import { DepotScope, resolveVersion, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
20
|
-
import { ActionState, assertErrorThrown, filterByType, LogEvent, } from '@finos/legend-shared';
|
20
|
+
import { ActionState, assertErrorThrown, filterByType, LogEvent, uniq, } from '@finos/legend-shared';
|
21
21
|
import { action, flow, makeObservable, observable } from 'mobx';
|
22
22
|
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
|
23
23
|
import { DataSpace, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
@@ -43,8 +43,10 @@ export const resolveUsableDataSpaceClasses = (dataSpace, mapping, graphManagerSt
|
|
43
43
|
// This check is to make sure that we have `info` field present in `MappedEntity` which
|
44
44
|
// contains information about the mapped class path
|
45
45
|
mappingModelCoverageAnalysisResult?.mappedEntities.some((m) => m.info !== undefined)) {
|
46
|
-
const
|
47
|
-
|
46
|
+
const uniqueCompatibleClasses = uniq(mappingModelCoverageAnalysisResult.mappedEntities
|
47
|
+
// is root entity filters out mapped classes
|
48
|
+
.filter((e) => e.info?.isRootEntity)
|
49
|
+
.map((e) => e.info?.classPath));
|
48
50
|
compatibleClasses = graphManagerState.graph.classes.filter((c) => uniqueCompatibleClasses.includes(c.path));
|
49
51
|
}
|
50
52
|
if (dataSpace.elements?.length) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,GAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAKL,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAQL,2BAA2B,EAC3B,OAAO,EACP,8BAA8B,EAC9B,uBAAuB,EACvB,mBAAmB,EACnB,UAAU,EACV,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,QAAQ,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,GAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAKL,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAQL,2BAA2B,EAC3B,OAAO,EACP,8BAA8B,EAC9B,uBAAuB,EACvB,mBAAmB,EACnB,UAAU,EACV,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,IAAI,GACL,MAAM,sBAAsB,CA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YAC5B,yBAAyB,GAAG,uBAAuB,CAAC;QACtD,CAAC;QACD,OAAO;YACL,eAAe;YACf,yBAAyB;SAC1B,CAAC;IACJ,CAAC;IAEQ,YAAY;QACnB,IAAI,IAAI,CAAC,aAAa,YAAY,yBAAyB,EAAE,CAAC;YAC5D,MAAM,MAAM,GAAG,IAAI,UAAU,CAC3B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,OAAO,EAClC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,UAAU,EACrC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,CACrD,CAAC;YACF,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED,CAAC,SAAS;QACR,IAAI,CAAC,wBAAwB;YAC3B,IAAI,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;gBACjE,CAAC,CAAE,CAAC,MAAM,oDAAoD,CAC1D,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,SAAS,CAAC,WAAW,EAC1B,IAAI,CAAC,iBAAiB,CACvB,CAAyC;gBAC5C,CAAC,CAAC,IAAI,CAAC,uBAAuB,EAAE,WAAW,CAAC,MAAM,CAC9C,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,SAAS,CAC9B,CAAC;IACV,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -55,6 +55,7 @@ import {
|
|
55
55
|
assertErrorThrown,
|
56
56
|
filterByType,
|
57
57
|
LogEvent,
|
58
|
+
uniq,
|
58
59
|
} from '@finos/legend-shared';
|
59
60
|
import { action, flow, makeObservable, observable } from 'mobx';
|
60
61
|
import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/query-builder/DataSpaceQueryBuilder.js';
|
@@ -112,12 +113,11 @@ export const resolveUsableDataSpaceClasses = (
|
|
112
113
|
(m) => m.info !== undefined,
|
113
114
|
)
|
114
115
|
) {
|
115
|
-
const
|
116
|
-
mappingModelCoverageAnalysisResult.mappedEntities
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
(val, index) => compatibleClassPaths.indexOf(val) === index,
|
116
|
+
const uniqueCompatibleClasses = uniq(
|
117
|
+
mappingModelCoverageAnalysisResult.mappedEntities
|
118
|
+
// is root entity filters out mapped classes
|
119
|
+
.filter((e) => e.info?.isRootEntity)
|
120
|
+
.map((e) => e.info?.classPath),
|
121
121
|
);
|
122
122
|
compatibleClasses = graphManagerState.graph.classes.filter((c) =>
|
123
123
|
uniqueCompatibleClasses.includes(c.path),
|