@finos/legend-extension-dsl-data-space 10.0.4 → 10.0.5
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/graph-manager/action/analytics/DataSpaceAnalysisHelper.d.ts +2 -2
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysisHelper.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +2 -2
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/package.json +6 -6
- package/src/graph-manager/action/analytics/DataSpaceAnalysisHelper.ts +2 -2
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +3 -3
|
@@ -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,
|
|
16
|
+
import type { DepotServerClient, StoreProjectData } 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: (project:
|
|
19
|
+
export declare const retrieveAnalyticsResultCache: (project: StoreProjectData, 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/graph-manager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"DataSpaceAnalysisHelper.d.ts","sourceRoot":"","sources":["../../../../src/graph-manager/action/analytics/DataSpaceAnalysisHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,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,gBAAgB,aACd,MAAM,iBACF,MAAM,qBACF,iBAAiB,KACnC,QAAQ,YAAY,uBAAuB,CAAC,CAW5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAnalysisHelper.js","sourceRoot":"","sources":["../../../../src/graph-manager/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,
|
|
1
|
+
{"version":3,"file":"DataSpaceAnalysisHelper.js","sourceRoot":"","sources":["../../../../src/graph-manager/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,OAAyB,EACzB,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"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { GraphDataWithOrigin, LegendSDLC, } from '@finos/legend-graph';
|
|
17
|
-
import { DepotScope,
|
|
17
|
+
import { DepotScope, StoreProjectData, retrieveProjectEntitiesWithDependencies, } from '@finos/legend-server-depot';
|
|
18
18
|
import { ActionState, assertErrorThrown, } from '@finos/legend-shared';
|
|
19
19
|
import { action, flow, flowResult, makeObservable, observable } from 'mobx';
|
|
20
20
|
import { DSL_DataSpace_getGraphManagerExtension } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureGraphManagerExtension.js';
|
|
@@ -93,7 +93,7 @@ export class DataSpaceAdvancedSearchState {
|
|
|
93
93
|
try {
|
|
94
94
|
// fetch project
|
|
95
95
|
this.loadDataSpaceState.setMessage(`Fetching project...`);
|
|
96
|
-
const project =
|
|
96
|
+
const project = StoreProjectData.serialization.fromJson((yield flowResult(this.depotServerClient.getProject(dataSpace.groupId, dataSpace.artifactId))));
|
|
97
97
|
// analyze data space
|
|
98
98
|
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));
|
|
99
99
|
this.dataSpaceViewerState = new DataSpaceViewerState(this.applicationStore, this.graphManagerState, dataSpace.groupId, dataSpace.artifactId, dataSpace.versionId, analysisResult, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,mBAAmB,EAGnB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,mBAAmB,EAGnB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,gBAAgB,EAChB,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,8EAA8E,CAAC;AACtI,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAChH,OAAO,EAAsB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EACL,8BAA8B,EAC9B,8CAA8C,GAE/C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAG/G,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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AU,CAAC,SAAS,CAAC,CAAC;SAC/C;IACH,CAAC;IAED,CAAC,oBAAoB,CAAC,MAAc;QAClC,IAAI,IAAI,CAAC,oBAAoB,EAAE;YAC7B,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,YAAY,CAC5D,kCAAkC,CAChC,IAAI,CAAC,oBAAoB,CAAC,OAAO,EACjC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,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": "10.0.
|
|
3
|
+
"version": "10.0.5",
|
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@finos/legend-application": "15.0.2",
|
|
48
|
-
"@finos/legend-application-query": "12.0.
|
|
49
|
-
"@finos/legend-application-studio": "24.0.
|
|
48
|
+
"@finos/legend-application-query": "12.0.5",
|
|
49
|
+
"@finos/legend-application-studio": "24.0.5",
|
|
50
50
|
"@finos/legend-art": "7.0.3",
|
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.5",
|
|
52
52
|
"@finos/legend-graph": "28.0.3",
|
|
53
53
|
"@finos/legend-lego": "0.1.8",
|
|
54
|
-
"@finos/legend-query-builder": "3.0.
|
|
55
|
-
"@finos/legend-server-depot": "
|
|
54
|
+
"@finos/legend-query-builder": "3.0.5",
|
|
55
|
+
"@finos/legend-server-depot": "6.0.0",
|
|
56
56
|
"@finos/legend-shared": "10.0.0",
|
|
57
57
|
"@finos/legend-storage": "3.0.50",
|
|
58
58
|
"@types/react": "18.0.37",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { getExpectedArtifactGenerationExtensionOutputPath } from '@finos/legend-graph';
|
|
18
18
|
import type {
|
|
19
19
|
DepotServerClient,
|
|
20
|
-
|
|
20
|
+
StoreProjectData,
|
|
21
21
|
} from '@finos/legend-server-depot';
|
|
22
22
|
import type { PlainObject } from '@finos/legend-shared';
|
|
23
23
|
import type { DataSpaceAnalysisResult } from './DataSpaceAnalysis.js';
|
|
@@ -26,7 +26,7 @@ const DATASPACE_ANALYTICS_FILE_NAME = 'AnalyticsResult.json';
|
|
|
26
26
|
const V1_DATASPACE_ANALYTICS_ARTIFACT_EXTENSION_KEY = 'dataSpace-analytics';
|
|
27
27
|
|
|
28
28
|
export const retrieveAnalyticsResultCache = async (
|
|
29
|
-
project:
|
|
29
|
+
project: StoreProjectData,
|
|
30
30
|
versionId: string,
|
|
31
31
|
dataSpacePath: string,
|
|
32
32
|
depotServerClient: DepotServerClient,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
type StoredEntity,
|
|
26
26
|
type DepotServerClient,
|
|
27
27
|
DepotScope,
|
|
28
|
-
|
|
28
|
+
StoreProjectData,
|
|
29
29
|
retrieveProjectEntitiesWithDependencies,
|
|
30
30
|
} from '@finos/legend-server-depot';
|
|
31
31
|
import {
|
|
@@ -161,13 +161,13 @@ export class DataSpaceAdvancedSearchState {
|
|
|
161
161
|
try {
|
|
162
162
|
// fetch project
|
|
163
163
|
this.loadDataSpaceState.setMessage(`Fetching project...`);
|
|
164
|
-
const project =
|
|
164
|
+
const project = StoreProjectData.serialization.fromJson(
|
|
165
165
|
(yield flowResult(
|
|
166
166
|
this.depotServerClient.getProject(
|
|
167
167
|
dataSpace.groupId,
|
|
168
168
|
dataSpace.artifactId,
|
|
169
169
|
),
|
|
170
|
-
)) as PlainObject<
|
|
170
|
+
)) as PlainObject<StoreProjectData>,
|
|
171
171
|
);
|
|
172
172
|
// analyze data space
|
|
173
173
|
const analysisResult = (yield DSL_DataSpace_getGraphManagerExtension(
|