@finos/legend-extension-dsl-data-space 9.0.2 → 9.0.3
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/components/DataSpaceViewer.d.ts +1 -0
- package/lib/components/DataSpaceViewer.d.ts.map +1 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts +1 -0
- package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryCreator.d.ts +1 -0
- package/lib/components/query/DataSpaceQueryCreator.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts +1 -0
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysisHelper.d.ts +2 -2
- package/lib/graphManager/action/analytics/DataSpaceAnalysisHelper.d.ts.map +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysisHelper.js +1 -1
- package/lib/graphManager/action/analytics/DataSpaceAnalysisHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.d.ts +2 -2
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js +1 -1
- package/lib/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts +2 -2
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +14 -8
- package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +2 -2
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -9
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/package.json +10 -10
- package/src/graphManager/action/analytics/DataSpaceAnalysisHelper.ts +6 -5
- package/src/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts +7 -3
- package/src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +16 -10
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +10 -24
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
16
17
|
import { type DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
|
|
17
18
|
export declare const DataSpaceViewer: ((props: {
|
|
18
19
|
dataSpaceViewerState: DataSpaceViewerState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"DataSpaceViewer.d.ts","sourceRoot":"","sources":["../../src/components/DataSpaceViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAqCH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,mCAAmC,CAAC;AAya3C,eAAO,MAAM,eAAe,WAClB;IAAE,oBAAoB,EAAE,oBAAoB,CAAA;CAAE;;CAuLvD,CAAC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
16
17
|
import type { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
|
|
17
18
|
export declare const DataSpaceAdvancedSearchModal: ((props: {
|
|
18
19
|
searchState: DataSpaceAdvancedSearchState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAuBH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAQvG,eAAO,MAAM,4BAA4B,WAC/B;IACN,WAAW,EAAE,4BAA4B,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;;CAsMF,CAAC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
16
17
|
export declare const DataSpaceQueryCreator: (() => JSX.Element) & {
|
|
17
18
|
displayName: string;
|
|
18
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"DataSpaceQueryCreator.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryCreator.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AA4DH,eAAO,MAAM,qBAAqB;;CAyBhC,CAAC"}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
/// <reference types="react" resolution-mode="require"/>
|
|
16
17
|
import { type DataSpaceQuerySetupState } from '../../stores/query/DataSpaceQuerySetupStore.js';
|
|
17
18
|
export declare const DataSpaceQuerySetup: (() => JSX.Element) & {
|
|
18
19
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG
|
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAoBH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,gDAAgD,CAAC;AAuBxD,eAAO,MAAM,mBAAmB;;CAI9B,CAAC;AA+GH,eAAO,MAAM,0CAA0C,sBAClC,wBAAwB,KAC1C,MAAM,SAER,CAAC"}
|
|
@@ -13,8 +13,8 @@
|
|
|
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, ProjectData } from '@finos/legend-server-depot';
|
|
17
17
|
import type { PlainObject } from '@finos/legend-shared';
|
|
18
18
|
import type { DataSpaceAnalysisResult } from './DataSpaceAnalysis.js';
|
|
19
|
-
export declare const retrieveAnalyticsResultCache: (
|
|
19
|
+
export declare const retrieveAnalyticsResultCache: (project: ProjectData, versionId: string, dataSpacePath: string, depotServerClient: DepotServerClient) => Promise<PlainObject<DataSpaceAnalysisResult>>;
|
|
20
20
|
//# sourceMappingURL=DataSpaceAnalysisHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAnalysisHelper.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DataSpaceAnalysisHelper.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACZ,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAKtE,eAAO,MAAM,4BAA4B,YAC9B,WAAW,aACT,MAAM,iBACF,MAAM,qBACF,iBAAiB,KACnC,QAAQ,YAAY,uBAAuB,CAAC,CAW5C,CAAC"}
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
import { getExpectedArtifactGenerationExtensionOutputPath } from '@finos/legend-graph';
|
|
17
17
|
const DATASPACE_ANALYTICS_FILE_NAME = 'AnalyticsResult.json';
|
|
18
18
|
const V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY = 'dataSpace-analytics';
|
|
19
|
-
export const retrieveAnalyticsResultCache = async (
|
|
19
|
+
export const retrieveAnalyticsResultCache = async (project, versionId, dataSpacePath, depotServerClient) => JSON.parse(await depotServerClient.getGenerationContentByPath(project, versionId, getExpectedArtifactGenerationExtensionOutputPath(dataSpacePath, V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY, DATASPACE_ANALYTICS_FILE_NAME)));
|
|
20
20
|
//# sourceMappingURL=DataSpaceAnalysisHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAnalysisHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataSpaceAnalysisHelper.js","sourceRoot":"","sources":["../../../../src/graphManager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,gDAAgD,EAAE,MAAM,qBAAqB,CAAC;AAQvF,MAAM,6BAA6B,GAAG,sBAAsB,CAAC;AAC7D,MAAM,6CAA6C,GAAG,qBAAqB,CAAC;AAE5E,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,EAC/C,OAAoB,EACpB,SAAiB,EACjB,aAAqB,EACrB,iBAAoC,EACW,EAAE,CACjD,IAAI,CAAC,KAAK,CACR,MAAM,iBAAiB,CAAC,0BAA0B,CAChD,OAAO,EACP,SAAS,EACT,gDAAgD,CAC9C,aAAa,EACb,6CAA6C,EAC7C,6BAA6B,CAC9B,CACF,CACF,CAAC"}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { type AbstractPureGraphManager, AbstractPureGraphManagerExtension } from '@finos/legend-graph';
|
|
17
17
|
import type { Entity } from '@finos/legend-storage';
|
|
18
|
-
import { type PlainObject } from '@finos/legend-shared';
|
|
18
|
+
import { type ActionState, type PlainObject } from '@finos/legend-shared';
|
|
19
19
|
import type { DataSpaceAnalysisResult } from '../../action/analytics/DataSpaceAnalysis.js';
|
|
20
20
|
export declare abstract class DSL_DataSpace_PureGraphManagerExtension extends AbstractPureGraphManagerExtension {
|
|
21
|
-
abstract analyzeDataSpace(dataSpacePath: string,
|
|
21
|
+
abstract analyzeDataSpace(dataSpacePath: string, entitiesRetriever: () => Promise<Entity[]>, cacheRetriever?: () => Promise<PlainObject<DataSpaceAnalysisResult>>, actionState?: ActionState): Promise<DataSpaceAnalysisResult>;
|
|
22
22
|
}
|
|
23
23
|
export declare const DSL_DataSpace_getGraphManagerExtension: (graphManager: AbstractPureGraphManager) => DSL_DataSpace_PureGraphManagerExtension;
|
|
24
24
|
//# sourceMappingURL=DSL_DataSpace_PureGraphManagerExtension.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAC7B,iCAAiC,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,wBAAwB,EAC7B,iCAAiC,EAClC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAE3F,8BAAsB,uCAAwC,SAAQ,iCAAiC;IACrG,QAAQ,CAAC,gBAAgB,CACvB,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,EAC1C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,EACpE,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,uBAAuB,CAAC;CACpC;AAED,eAAO,MAAM,sCAAsC,iBACnC,wBAAwB,KACrC,uCAO2C,CAAC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { AbstractPureGraphManagerExtension, } from '@finos/legend-graph';
|
|
17
|
-
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
17
|
+
import { guaranteeNonNullable, } from '@finos/legend-shared';
|
|
18
18
|
export class DSL_DataSpace_PureGraphManagerExtension extends AbstractPureGraphManagerExtension {
|
|
19
19
|
}
|
|
20
20
|
export const DSL_DataSpace_getGraphManagerExtension = (graphManager) => guaranteeNonNullable(graphManager.extensions.find((extension) => extension instanceof DSL_DataSpace_PureGraphManagerExtension), `Can't find DSL Data Space Pure graph manager extension`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,
|
|
1
|
+
{"version":3,"file":"DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,iCAAiC,GAClC,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,OAAgB,uCAAwC,SAAQ,iCAAiC;CAOtG;AAED,MAAM,CAAC,MAAM,sCAAsC,GAAG,CACpD,YAAsC,EACG,EAAE,CAC3C,oBAAoB,CAClB,YAAY,CAAC,UAAU,CAAC,IAAI,CAC1B,CAAC,SAAS,EAAE,EAAE,CACZ,SAAS,YAAY,uCAAuC,CAC/D,EACD,wDAAwD,CACd,CAAC"}
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { V1_PureGraphManager, type AbstractPureGraphManager } from '@finos/legend-graph';
|
|
17
17
|
import type { Entity } from '@finos/legend-storage';
|
|
18
|
-
import { type PlainObject } from '@finos/legend-shared';
|
|
18
|
+
import { ActionState, type PlainObject } from '@finos/legend-shared';
|
|
19
19
|
import { DataSpaceAnalysisResult } from '../../../action/analytics/DataSpaceAnalysis.js';
|
|
20
20
|
import { DSL_DataSpace_PureGraphManagerExtension } from '../DSL_DataSpace_PureGraphManagerExtension.js';
|
|
21
21
|
export declare class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_PureGraphManagerExtension {
|
|
22
22
|
graphManager: V1_PureGraphManager;
|
|
23
23
|
constructor(graphManager: AbstractPureGraphManager);
|
|
24
24
|
getSupportedProtocolVersion(): string;
|
|
25
|
-
analyzeDataSpace(dataSpacePath: string,
|
|
25
|
+
analyzeDataSpace(dataSpacePath: string, entitiesRetriever: () => Promise<Entity[]>, cacheRetriever?: () => Promise<PlainObject<DataSpaceAnalysisResult>>, actionState?: ActionState): Promise<DataSpaceAnalysisResult>;
|
|
26
26
|
private buildDataSpaceAnalytics;
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map
|
package/lib/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,mBAAmB,EAEnB,KAAK,wBAAwB,EAU9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.d.ts","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,mBAAmB,EAEnB,KAAK,wBAAwB,EAU9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EACL,WAAW,EAQX,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,uBAAuB,EAIxB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AAKxG,qBAAa,0CAA2C,SAAQ,uCAAuC;IAC7F,YAAY,EAAE,mBAAmB,CAAC;gBAE9B,YAAY,EAAE,wBAAwB;IAKlD,2BAA2B,IAAI,MAAM;IAI/B,gBAAgB,CACpB,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,EAC1C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,EACpE,WAAW,CAAC,EAAE,WAAW,GACxB,OAAO,CAAC,uBAAuB,CAAC;YAgDrB,uBAAuB;CAuKtC"}
|
|
@@ -30,10 +30,11 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
30
30
|
getSupportedProtocolVersion() {
|
|
31
31
|
return PureClientVersion.V1_0_0;
|
|
32
32
|
}
|
|
33
|
-
async analyzeDataSpace(dataSpacePath,
|
|
33
|
+
async analyzeDataSpace(dataSpacePath, entitiesRetriever, cacheRetriever, actionState) {
|
|
34
34
|
let cachResult;
|
|
35
35
|
if (cacheRetriever) {
|
|
36
36
|
try {
|
|
37
|
+
actionState?.setMessage('Fetching data space analysis result from cache...');
|
|
37
38
|
cachResult = await cacheRetriever();
|
|
38
39
|
}
|
|
39
40
|
catch (error) {
|
|
@@ -42,18 +43,23 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
const engineClient = this.graphManager.engine.getEngineServerClient();
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
let analysisResult;
|
|
47
|
+
if (cachResult) {
|
|
48
|
+
analysisResult = cachResult;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
actionState?.setMessage('Fetching project entities and dependencies...');
|
|
52
|
+
const entities = await entitiesRetriever();
|
|
53
|
+
actionState?.setMessage('Analyzing data space...');
|
|
54
|
+
analysisResult = await engineClient.postWithTracing(engineClient.getTraceData(ANALYZE_DATA_SPACE_TRACE), `${engineClient._pure()}/analytics/dataSpace/render`, {
|
|
47
55
|
clientVersion: V1_PureGraphManager.TARGET_PROTOCOL_VERSION,
|
|
48
56
|
dataSpace: dataSpacePath,
|
|
49
57
|
model: {
|
|
50
58
|
_type: V1_PureModelContextType.DATA,
|
|
51
|
-
elements:
|
|
52
|
-
.flat()
|
|
53
|
-
.concat(entities)
|
|
54
|
-
.map((entity) => entity.content),
|
|
59
|
+
elements: entities.map((entity) => entity.content),
|
|
55
60
|
},
|
|
56
|
-
}, {}, undefined, undefined, { enableCompression: true })
|
|
61
|
+
}, {}, undefined, undefined, { enableCompression: true });
|
|
62
|
+
}
|
|
57
63
|
return this.buildDataSpaceAnalytics(V1_DataSpaceAnalysisResult.serialization.fromJson(analysisResult));
|
|
58
64
|
}
|
|
59
65
|
async buildDataSpaceAnalytics(analysisResult) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EAEjB,SAAS,EACT,WAAW,EACX,UAAU,EACV,gCAAgC,EAChC,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,IAAI,GAEL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iGAAiG,CAAC;AACxI,OAAO,EAAE,wBAAwB,EAAE,MAAM,6GAA6G,CAAC;AACvJ,OAAO,EACL,uBAAuB,EACvB,uCAAuC,EACvC,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+CAA+C,CAAC;AACxG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AAExF,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAEtD,MAAM,OAAO,0CAA2C,SAAQ,uCAAuC;IAGrG,YAAY,YAAsC;QAChD,KAAK,CAAC,YAAY,CAAC,CAAC;QACpB,IAAI,CAAC,YAAY,GAAG,aAAa,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IACvE,CAAC;IAED,2BAA2B;QACzB,OAAO,iBAAiB,CAAC,MAAM,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,aAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"V1_DSL_DataSpace_PureGraphManagerExtension.js","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EACL,SAAS,EACT,mBAAmB,EACnB,iBAAiB,EAEjB,SAAS,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AAO,CAAC,kBAAkB,CAAC,GAAG,CACvE,CAAC,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CACvC,CAAC;YACF,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAC/B,qBAAqB,CAAC,IAAI,EAC1B,qBAAqB,CACtB,CAAC;QACJ,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,uBAAuB,GAAG,oBAAoB,CACnD,MAAM,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC,uBAAuB,CAAC,CAC1E,CAAC;QAEF,yBAAyB;QACzB,MAAM,CAAC,gBAAgB,GAAG,cAAc,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACrE,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,CACxB,CAAC;QAEF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@finos/legend-server-depot": "workspace:*",
|
|
54
54
|
"@finos/legend-shared": "workspace:*",
|
|
55
55
|
"@finos/legend-storage": "workspace:*",
|
|
56
|
-
"@types/react": "18.0.
|
|
56
|
+
"@types/react": "18.0.24",
|
|
57
57
|
"mobx": "6.6.2",
|
|
58
58
|
"mobx-react-lite": "3.4.0",
|
|
59
59
|
"react": "18.2.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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C7C,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxD,aAAa,UAAS;gBAGpB,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE;QACP,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,IAAI,CAAC;QACV,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,CAAC;KACpB,EACD,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,EAC5C,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS;IA0BrC,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,SAAS,GAAG,IAAI;IAIzD,uBAAuB,CAAC,GAAG,EAAE,oBAAoB,GAAG,SAAS,GAAG,IAAI;IAIpE,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAInC,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC;IA2BrD,aAAa,CAAC,SAAS,EAAE,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;IA2D1D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAkBzD"}
|
|
@@ -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 { DepotScope, ProjectData, } from '@finos/legend-server-depot';
|
|
16
|
+
import { DepotScope, ProjectData, retrieveProjectEntitiesWithDependencies, } from '@finos/legend-server-depot';
|
|
17
17
|
import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
|
|
18
18
|
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
19
19
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graphManager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
|
@@ -93,15 +93,8 @@ export class DataSpaceAdvancedSearchState {
|
|
|
93
93
|
// fetch project
|
|
94
94
|
this.loadDataSpaceState.setMessage(`Fetching project...`);
|
|
95
95
|
const project = ProjectData.serialization.fromJson((yield flowResult(this.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
|
|
96
|
-
// fetch entities
|
|
97
|
-
this.loadDataSpaceState.setMessage(`Fetching entities...`);
|
|
98
|
-
const entities = (yield this.depotServerClient.getEntities(project, dataSpace.versionId));
|
|
99
|
-
// fetch dependencies
|
|
100
|
-
this.loadDataSpaceState.setMessage(`Fetching dependencies...`);
|
|
101
|
-
const dependencyEntitiesIndex = (yield flowResult(this.depotServerClient.getIndexedDependencyEntities(project, dataSpace.versionId)));
|
|
102
96
|
// analyze data space
|
|
103
|
-
this.
|
|
104
|
-
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, entities, dependencyEntitiesIndex, () => retrieveAnalyticsResultCache(dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, dataSpace.path, this.depotServerClient)));
|
|
97
|
+
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpace(dataSpace.path, () => retrieveProjectEntitiesWithDependencies(project, dataSpace.versionId, this.depotServerClient), () => retrieveAnalyticsResultCache(project, dataSpace.versionId, dataSpace.path, this.depotServerClient), this.loadDataSpaceState));
|
|
105
98
|
this.dataSpaceViewerState = new DataSpaceViewerState(this.applicationStore, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
|
|
106
99
|
viewProject: this.viewProject,
|
|
107
100
|
viewSDLCProject: this.viewSDLCProject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAGL,UAAU,EACV,WAAW,EACX,uCAAuC,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,sCAAsC,EAAE,MAAM,6EAA6E,CAAC;AACrI,OAAO,EAAE,kCAAkC,EAAE,MAAM,+EAA+E,CAAC;AACnI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAsB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EACL,8BAA8B,EAC9B,8CAA8C,GAE/C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gEAAgE,CAAC;AAG9G,MAAM,OAAO,4BAA4B;IAC9B,gBAAgB,CAAgC;IAChD,iBAAiB,CAAoB;IACrC,iBAAiB,CAAoB;IACrC,WAAW,CAKV;IACD,eAAe,CAIL;IAEnB,UAAU,GAAoB,EAAE,CAAC;IACxB,mBAAmB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IAC3C,kBAAkB,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;IACnD,gBAAgB,CAA6B;IAC7C,oBAAoB,CAAoC;IACxD,aAAa,GAAG,KAAK,CAAC;IAEtB,YACE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,EACnC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,cAAc;gBACtC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,cAAc;gBAChE,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EACjD,MAAM,EAAE,IAAI,CACb,CACF,CAAC;SACH;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"test:watch": "jest --watch"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@finos/legend-application": "10.0.
|
|
47
|
-
"@finos/legend-application-query": "9.0.
|
|
48
|
-
"@finos/legend-application-studio": "20.0.
|
|
49
|
-
"@finos/legend-art": "5.0.
|
|
50
|
-
"@finos/legend-extension-dsl-diagram": "7.0.
|
|
46
|
+
"@finos/legend-application": "10.0.3",
|
|
47
|
+
"@finos/legend-application-query": "9.0.3",
|
|
48
|
+
"@finos/legend-application-studio": "20.0.1",
|
|
49
|
+
"@finos/legend-art": "5.0.1",
|
|
50
|
+
"@finos/legend-extension-dsl-diagram": "7.0.7",
|
|
51
51
|
"@finos/legend-graph": "19.2.0",
|
|
52
|
-
"@finos/legend-query-builder": "0.3.
|
|
53
|
-
"@finos/legend-server-depot": "4.1.
|
|
52
|
+
"@finos/legend-query-builder": "0.3.1",
|
|
53
|
+
"@finos/legend-server-depot": "4.1.4",
|
|
54
54
|
"@finos/legend-shared": "6.2.0",
|
|
55
55
|
"@finos/legend-storage": "3.0.15",
|
|
56
|
-
"@types/react": "18.0.
|
|
56
|
+
"@types/react": "18.0.24",
|
|
57
57
|
"mobx": "6.6.2",
|
|
58
58
|
"mobx-react-lite": "3.4.0",
|
|
59
59
|
"react": "18.2.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"serializr": "3.0.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@finos/legend-dev-utils": "2.0.
|
|
64
|
+
"@finos/legend-dev-utils": "2.0.23",
|
|
65
65
|
"@jest/globals": "29.2.2",
|
|
66
66
|
"cross-env": "7.0.3",
|
|
67
67
|
"eslint": "8.26.0",
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { getExpectedArtifactGenerationExtensionOutputPath } from '@finos/legend-graph';
|
|
18
|
-
import type {
|
|
18
|
+
import type {
|
|
19
|
+
DepotServerClient,
|
|
20
|
+
ProjectData,
|
|
21
|
+
} from '@finos/legend-server-depot';
|
|
19
22
|
import type { PlainObject } from '@finos/legend-shared';
|
|
20
23
|
import type { DataSpaceAnalysisResult } from './DataSpaceAnalysis.js';
|
|
21
24
|
|
|
@@ -23,16 +26,14 @@ const DATASPACE_ANALYTICS_FILE_NAME = 'AnalyticsResult.json';
|
|
|
23
26
|
const V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY = 'dataSpace-analytics';
|
|
24
27
|
|
|
25
28
|
export const retrieveAnalyticsResultCache = async (
|
|
26
|
-
|
|
27
|
-
artifactId: string,
|
|
29
|
+
project: ProjectData,
|
|
28
30
|
versionId: string,
|
|
29
31
|
dataSpacePath: string,
|
|
30
32
|
depotServerClient: DepotServerClient,
|
|
31
33
|
): Promise<PlainObject<DataSpaceAnalysisResult>> =>
|
|
32
34
|
JSON.parse(
|
|
33
35
|
await depotServerClient.getGenerationContentByPath(
|
|
34
|
-
|
|
35
|
-
artifactId,
|
|
36
|
+
project,
|
|
36
37
|
versionId,
|
|
37
38
|
getExpectedArtifactGenerationExtensionOutputPath(
|
|
38
39
|
dataSpacePath,
|
|
@@ -19,15 +19,19 @@ import {
|
|
|
19
19
|
AbstractPureGraphManagerExtension,
|
|
20
20
|
} from '@finos/legend-graph';
|
|
21
21
|
import type { Entity } from '@finos/legend-storage';
|
|
22
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
guaranteeNonNullable,
|
|
24
|
+
type ActionState,
|
|
25
|
+
type PlainObject,
|
|
26
|
+
} from '@finos/legend-shared';
|
|
23
27
|
import type { DataSpaceAnalysisResult } from '../../action/analytics/DataSpaceAnalysis.js';
|
|
24
28
|
|
|
25
29
|
export abstract class DSL_DataSpace_PureGraphManagerExtension extends AbstractPureGraphManagerExtension {
|
|
26
30
|
abstract analyzeDataSpace(
|
|
27
31
|
dataSpacePath: string,
|
|
28
|
-
|
|
29
|
-
dependencyEntitiesIndex: Map<string, Entity[]>,
|
|
32
|
+
entitiesRetriever: () => Promise<Entity[]>,
|
|
30
33
|
cacheRetriever?: () => Promise<PlainObject<DataSpaceAnalysisResult>>,
|
|
34
|
+
actionState?: ActionState,
|
|
31
35
|
): Promise<DataSpaceAnalysisResult>;
|
|
32
36
|
}
|
|
33
37
|
|
|
@@ -69,13 +69,16 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
69
69
|
|
|
70
70
|
async analyzeDataSpace(
|
|
71
71
|
dataSpacePath: string,
|
|
72
|
-
|
|
73
|
-
dependencyEntitiesIndex: Map<string, Entity[]>,
|
|
72
|
+
entitiesRetriever: () => Promise<Entity[]>,
|
|
74
73
|
cacheRetriever?: () => Promise<PlainObject<DataSpaceAnalysisResult>>,
|
|
74
|
+
actionState?: ActionState,
|
|
75
75
|
): Promise<DataSpaceAnalysisResult> {
|
|
76
76
|
let cachResult: PlainObject<V1_DataSpaceAnalysisResult> | undefined;
|
|
77
77
|
if (cacheRetriever) {
|
|
78
78
|
try {
|
|
79
|
+
actionState?.setMessage(
|
|
80
|
+
'Fetching data space analysis result from cache...',
|
|
81
|
+
);
|
|
79
82
|
cachResult = await cacheRetriever();
|
|
80
83
|
} catch (error) {
|
|
81
84
|
assertErrorThrown(error);
|
|
@@ -86,9 +89,14 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
const engineClient = this.graphManager.engine.getEngineServerClient();
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
let analysisResult: PlainObject<V1_DataSpaceAnalysisResult>;
|
|
93
|
+
if (cachResult) {
|
|
94
|
+
analysisResult = cachResult;
|
|
95
|
+
} else {
|
|
96
|
+
actionState?.setMessage('Fetching project entities and dependencies...');
|
|
97
|
+
const entities = await entitiesRetriever();
|
|
98
|
+
actionState?.setMessage('Analyzing data space...');
|
|
99
|
+
analysisResult = await engineClient.postWithTracing<
|
|
92
100
|
PlainObject<V1_DataSpaceAnalysisResult>
|
|
93
101
|
>(
|
|
94
102
|
engineClient.getTraceData(ANALYZE_DATA_SPACE_TRACE),
|
|
@@ -98,17 +106,15 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
98
106
|
dataSpace: dataSpacePath,
|
|
99
107
|
model: {
|
|
100
108
|
_type: V1_PureModelContextType.DATA,
|
|
101
|
-
elements:
|
|
102
|
-
.flat()
|
|
103
|
-
.concat(entities)
|
|
104
|
-
.map((entity) => entity.content),
|
|
109
|
+
elements: entities.map((entity) => entity.content),
|
|
105
110
|
},
|
|
106
111
|
},
|
|
107
112
|
{},
|
|
108
113
|
undefined,
|
|
109
114
|
undefined,
|
|
110
115
|
{ enableCompression: true },
|
|
111
|
-
)
|
|
116
|
+
);
|
|
117
|
+
}
|
|
112
118
|
return this.buildDataSpaceAnalytics(
|
|
113
119
|
V1_DataSpaceAnalysisResult.serialization.fromJson(analysisResult),
|
|
114
120
|
);
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import type { ClassView } from '@finos/legend-extension-dsl-diagram';
|
|
18
18
|
import type { Class, GraphManagerState } from '@finos/legend-graph';
|
|
19
|
-
import type { Entity } from '@finos/legend-storage';
|
|
20
19
|
import {
|
|
21
20
|
type StoredEntity,
|
|
21
|
+
type DepotServerClient,
|
|
22
22
|
DepotScope,
|
|
23
23
|
ProjectData,
|
|
24
|
-
|
|
24
|
+
retrieveProjectEntitiesWithDependencies,
|
|
25
25
|
} from '@finos/legend-server-depot';
|
|
26
26
|
import {
|
|
27
27
|
type GeneratorFn,
|
|
@@ -164,39 +164,25 @@ export class DataSpaceAdvancedSearchState {
|
|
|
164
164
|
),
|
|
165
165
|
)) as PlainObject<ProjectData>,
|
|
166
166
|
);
|
|
167
|
-
|
|
168
|
-
// fetch entities
|
|
169
|
-
this.loadDataSpaceState.setMessage(`Fetching entities...`);
|
|
170
|
-
const entities = (yield this.depotServerClient.getEntities(
|
|
171
|
-
project,
|
|
172
|
-
dataSpace.versionId,
|
|
173
|
-
)) as Entity[];
|
|
174
|
-
|
|
175
|
-
// fetch dependencies
|
|
176
|
-
this.loadDataSpaceState.setMessage(`Fetching dependencies...`);
|
|
177
|
-
const dependencyEntitiesIndex = (yield flowResult(
|
|
178
|
-
this.depotServerClient.getIndexedDependencyEntities(
|
|
179
|
-
project,
|
|
180
|
-
dataSpace.versionId,
|
|
181
|
-
),
|
|
182
|
-
)) as Map<string, Entity[]>;
|
|
183
|
-
|
|
184
167
|
// analyze data space
|
|
185
|
-
this.loadDataSpaceState.setMessage(`Analyzing data space...`);
|
|
186
168
|
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(
|
|
187
169
|
this.graphManagerState.graphManager,
|
|
188
170
|
).analyzeDataSpace(
|
|
189
171
|
dataSpace.path,
|
|
190
|
-
|
|
191
|
-
|
|
172
|
+
() =>
|
|
173
|
+
retrieveProjectEntitiesWithDependencies(
|
|
174
|
+
project,
|
|
175
|
+
dataSpace.versionId,
|
|
176
|
+
this.depotServerClient,
|
|
177
|
+
),
|
|
192
178
|
() =>
|
|
193
179
|
retrieveAnalyticsResultCache(
|
|
194
|
-
|
|
195
|
-
dataSpace.artifactId,
|
|
180
|
+
project,
|
|
196
181
|
dataSpace.versionId,
|
|
197
182
|
dataSpace.path,
|
|
198
183
|
this.depotServerClient,
|
|
199
184
|
),
|
|
185
|
+
this.loadDataSpaceState,
|
|
200
186
|
)) as DataSpaceAnalysisResult;
|
|
201
187
|
this.dataSpaceViewerState = new DataSpaceViewerState(
|
|
202
188
|
this.applicationStore,
|