@finos/legend-application-query 13.6.8 → 13.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/LegendQueryApplicationConfig.d.ts +1 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +2 -0
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts +3 -2
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +157 -4
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +9 -2
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts +2 -2
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js +38 -10
- package/lib/components/__test-utils__/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +4 -3
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js +0 -1
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +13 -2
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +135 -30
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts +2 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +8 -12
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +1 -0
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js +1 -0
- package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts +3 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +41 -24
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -1
- package/package.json +8 -8
- package/src/application/LegendQueryApplicationConfig.ts +3 -0
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +281 -7
- package/src/components/QueryEditor.tsx +25 -1
- package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +62 -24
- package/src/stores/LegendQueryApplicationPlugin.tsx +6 -5
- package/src/stores/QueryEditorStore.ts +254 -53
- package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +17 -28
- package/src/stores/data-space/DataSpaceQuerySetupState.ts +1 -0
- package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +73 -51
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAIL,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,
|
1
|
+
{"version":3,"file":"QueryEditorComponentTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/QueryEditorComponentTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAw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AC,UAAU,CAAC,EAAE,CAAC,CAAC,YAEjE,KAAC,4BAA4B,cAC3B,KAAC,MAAM,cACL,KAAC,KAAK,IACJ,IAAI,EAAE,0BAA0B,CAAC,mBAAmB,EACpD,OAAO,EAAE,KAAC,mBAAmB,KAAG,GAChC,GACK,GACoB,GACE,GACV,CAC5B,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,qBAAqB,CAAC,aAAa,CAAC,CAC9D,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,iBAAiB,EAAE,oBAAoB,CACrC,iBAAiB,CAAC,iBAAiB,EACnC,kDAAkD,CACnD;KACF,CAAC;AACJ,CAAC,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -14,11 +14,12 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
17
|
-
import type {
|
18
|
-
import type
|
17
|
+
import type { QueryBuilder_LegendApplicationPlugin_Extension, QueryBuilderState } from '@finos/legend-query-builder';
|
18
|
+
import type React from 'react';
|
19
19
|
import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
20
|
-
import {
|
20
|
+
import type { ExistingQueryEditorStore, QueryEditorStore } from './QueryEditorStore.js';
|
21
21
|
import type { QuerySetupLandingPageStore } from './QuerySetupStore.js';
|
22
|
+
import type { Query } from '@finos/legend-graph';
|
22
23
|
export declare enum QuerySetupActionTag {
|
23
24
|
PRODUCTIONIZATION = "Productionization"
|
24
25
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"LegendQue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,8BAA8B,GAAG;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,CACR,WAAW,EAAE,gBAAgB,EAC7B,iBAAiB,EAAE,iBAAiB,KACjC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,WAAW,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACjD,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,qBAAa,4BACX,SAAQ,uBACR,YAAW,8CAA8C;IAEzD;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IAErE,OAAO,CAAC,aAAa,EAAE,wBAAwB,GAAG,IAAI;IAItD;;OAEG;IACH,sCAAsC,CAAC,IAAI,6BAA6B,EAAE;CAC3E"}
|
@@ -14,7 +14,6 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
17
|
-
import {} from './QueryEditorStore.js';
|
18
17
|
export var QuerySetupActionTag;
|
19
18
|
(function (QuerySetupActionTag) {
|
20
19
|
QuerySetupActionTag["PRODUCTIONIZATION"] = "Productionization";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;
|
1
|
+
{"version":3,"file":"LegendQueryApplicationPlugin.js","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAcpE,MAAM,CAAN,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,8DAAuC,CAAA;AACzC,CAAC,EAFW,mBAAmB,KAAnB,mBAAmB,QAE9B;AAkDD,MAAM,OAAO,4BACX,SAAQ,uBAAuB;IAG/B;;;OAGG;IACc,kBAAkB,CAAkC;IAErE,OAAO,CAAC,aAAuC;QAC7C,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CAMF"}
|
@@ -14,12 +14,13 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type GeneratorFn, ActionState, StopWatch } from '@finos/legend-shared';
|
17
|
-
import { type LightQuery, type RawLambda, type QueryGridConfig, type ValueSpecification, type GraphInitializationReport, GraphManagerState, Query, QuerySearchSpecification } from '@finos/legend-graph';
|
17
|
+
import { type LightQuery, type RawLambda, type QueryGridConfig, type ValueSpecification, type GraphInitializationReport, type QueryInfo, GraphManagerState, Query, QuerySearchSpecification } from '@finos/legend-graph';
|
18
18
|
import { type ProjectGAVCoordinates } from '@finos/legend-storage';
|
19
19
|
import { type DepotServerClient } from '@finos/legend-server-depot';
|
20
20
|
import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
21
21
|
import type { LegendQueryApplicationStore } from './LegendQueryBaseStore.js';
|
22
22
|
import { type QueryBuilderState, type QueryBuilderDiffViewState, QueryLoaderState, QueryBuilderActionConfig } from '@finos/legend-query-builder';
|
23
|
+
import { type DataSpaceAnalysisResult } from '@finos/legend-extension-dsl-data-space/graph';
|
23
24
|
export interface QueryPersistConfiguration {
|
24
25
|
defaultName?: string | undefined;
|
25
26
|
allowUpdate?: boolean | undefined;
|
@@ -51,6 +52,7 @@ export declare abstract class QueryEditorStore {
|
|
51
52
|
showRegisterServiceModal: boolean;
|
52
53
|
showAppInfo: boolean;
|
53
54
|
showDataspaceInfo: boolean;
|
55
|
+
enableMinialGraphForDataSpaceLoadingPerformance: boolean;
|
54
56
|
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient);
|
55
57
|
get isViewProjectActionDisabled(): boolean;
|
56
58
|
get canPersistToSavedQuery(): boolean;
|
@@ -58,6 +60,7 @@ export declare abstract class QueryEditorStore {
|
|
58
60
|
setShowAppInfo(val: boolean): void;
|
59
61
|
setShowDataspaceInfo(val: boolean): void;
|
60
62
|
setShowRegisterServiceModal(val: boolean): void;
|
63
|
+
setEnableMinialGraphForDataSpaceLoadingPerformance(val: boolean): void;
|
61
64
|
get isPerformingBlockingAction(): boolean;
|
62
65
|
decorateSearchSpecification(val: QuerySearchSpecification): QuerySearchSpecification;
|
63
66
|
abstract getProjectInfo(): ProjectGAVCoordinates | undefined;
|
@@ -77,7 +80,12 @@ export declare abstract class QueryEditorStore {
|
|
77
80
|
onInitializeFailure(): void;
|
78
81
|
searchExistingQueryName(searchText: string): GeneratorFn<void>;
|
79
82
|
logBuildGraphMetrics(graphBuilderReportData: GraphInitializationReport): void;
|
83
|
+
buildFullGraph(): GeneratorFn<void>;
|
80
84
|
buildGraph(): GeneratorFn<void>;
|
85
|
+
buildGraphAndDataspaceAnalyticsResult(groupId: string, artifactId: string, versionId: string, executionContext: string | undefined, dataSpacePath: string, templateQueryId?: string | undefined): Promise<{
|
86
|
+
dataSpaceAnalysisResult: DataSpaceAnalysisResult | undefined;
|
87
|
+
isLightGraphEnabled: boolean;
|
88
|
+
}>;
|
81
89
|
}
|
82
90
|
export declare class QueryBuilderActionConfig_QueryApplication extends QueryBuilderActionConfig {
|
83
91
|
editorStore: QueryEditorStore;
|
@@ -134,6 +142,7 @@ export declare class ExistingQueryEditorStore extends QueryEditorStore {
|
|
134
142
|
private queryId;
|
135
143
|
private _lightQuery?;
|
136
144
|
query: Query | undefined;
|
145
|
+
queryInfo: QueryInfo | undefined;
|
137
146
|
urlQueryParamValues: Record<string, string> | undefined;
|
138
147
|
updateState: ExistingQueryUpdateState;
|
139
148
|
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, queryId: string, urlQueryParamValues: Record<string, string> | undefined);
|
@@ -142,9 +151,11 @@ export declare class ExistingQueryEditorStore extends QueryEditorStore {
|
|
142
151
|
logBuildGraphMetrics(graphBuilderReportData: GraphInitializationReport): void;
|
143
152
|
setLightQuery(val: LightQuery): void;
|
144
153
|
setQuery(val: Query): void;
|
154
|
+
setQueryInfo(val: QueryInfo): void;
|
145
155
|
getProjectInfo(): ProjectGAVCoordinates;
|
156
|
+
buildGraph(): GeneratorFn<void>;
|
146
157
|
setUpEditorState(): Promise<void>;
|
147
|
-
initQueryBuildStateFromQuery(
|
158
|
+
initQueryBuildStateFromQuery(queryInfo: QueryInfo): Promise<QueryBuilderState>;
|
148
159
|
initializeQueryBuilderState(stopWatch: StopWatch): Promise<QueryBuilderState>;
|
149
160
|
getPersistConfiguration(lambda: RawLambda, options?: {
|
150
161
|
update?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryEditorStore.d.ts","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EACL,KAAK,WAAW,EAOhB,WAAW,EACX,SAAS,EAOV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAE9B,iBAAiB,EACjB,KAAK,EASL,wBAAwB,
|
1
|
+
{"version":3,"file":"QueryEditorStore.d.ts","sourceRoot":"","sources":["../../src/stores/QueryEditorStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EACL,KAAK,WAAW,EAOhB,WAAW,EACX,SAAS,EAOV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,SAAS,EAGd,KAAK,eAAe,EACpB,KAAK,kB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AE,wBAAwB,CAAC;gBAGpC,gBAAgB,EAAE,2BAA2B,EAC7C,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,MAAM,EACf,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;IAqBzD,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,IAAa,0BAA0B,IAAI,OAAO,CAKjD;IAEQ,oBAAoB,CAC3B,sBAAsB,EAAE,yBAAyB,GAChD,IAAI;IAiBP,aAAa,CAAC,GAAG,EAAE,UAAU,GAAG,IAAI;IAIpC,QAAQ,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI;IAI1B,YAAY,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAIlC,cAAc,IAAI,qBAAqB;IAQ7B,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;IAmB1B,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAc1C,4BAA4B,CAChC,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,iBAAiB,CAAC;IAwLvB,2BAA2B,CAC/B,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,iBAAiB,CAAC;IAiG7B,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;IAmBnB,2BAA2B,CAClC,GAAG,EAAE,wBAAwB,GAC5B,wBAAwB;CAsB5B"}
|
@@ -15,18 +15,18 @@
|
|
15
15
|
*/
|
16
16
|
import { action, computed, flow, flowResult, makeObservable, observable, override, } from 'mobx';
|
17
17
|
import { LogEvent, assertErrorThrown, uuid, assertType, guaranteeNonNullable, ActionState, StopWatch, guaranteeType, quantifyList, assertNonNullable, returnUndefOnError, UnsupportedOperationError, filterByType, } from '@finos/legend-shared';
|
18
|
-
import { GraphManagerState, Query, PureExecution, PackageableElementExplicitReference, RuntimePointer, GRAPH_MANAGER_EVENT, extractElementNameFromPath, Mapping, createGraphBuilderReport, LegendSDLC, QuerySearchSpecification, toLightQuery, QueryParameterValue, reportGraphAnalytics, cloneQueryStereotype, cloneQueryTaggedValue,
|
18
|
+
import { GraphManagerState, Query, PureExecution, PackageableElementExplicitReference, RuntimePointer, GRAPH_MANAGER_EVENT, extractElementNameFromPath, Mapping, createGraphBuilderReport, LegendSDLC, QuerySearchSpecification, toLightQuery, QueryParameterValue, reportGraphAnalytics, cloneQueryStereotype, cloneQueryTaggedValue, QueryProjectCoordinates, buildLambdaVariableExpressions, VariableExpression, PrimitiveType, CORE_PURE_PATH, isValidFullPath, QUERY_PROFILE_PATH, QueryDataSpaceExecutionContextInfo, QueryExplicitExecutionContextInfo, } from '@finos/legend-graph';
|
19
19
|
import { generateExistingQueryEditorRoute, generateMappingQueryCreatorRoute, generateServiceQueryCreatorRoute, } from '../__lib__/LegendQueryNavigation.js';
|
20
20
|
import { LEGEND_QUERY_APP_EVENT } from '../__lib__/LegendQueryEvent.js';
|
21
21
|
import { parseGACoordinates, } from '@finos/legend-storage';
|
22
|
-
import { resolveVersion, StoreProjectData, LATEST_VERSION_ALIAS, VersionedProjectData, } from '@finos/legend-server-depot';
|
22
|
+
import { resolveVersion, StoreProjectData, LATEST_VERSION_ALIAS, VersionedProjectData, retrieveProjectEntitiesWithDependencies, retrieveProjectEntitiesWithClassifier, } from '@finos/legend-server-depot';
|
23
23
|
import { ActionAlertActionType, ActionAlertType, DEFAULT_TAB_SIZE, DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH, } from '@finos/legend-application';
|
24
24
|
import { LegendQueryEventHelper } from '../__lib__/LegendQueryEventHelper.js';
|
25
25
|
import { ClassQueryBuilderState, MappingQueryBuilderState, ServiceQueryBuilderState, QueryLoaderState, QueryBuilderDataBrowserWorkflow, QueryBuilderActionConfig, QUERY_LOADER_DEFAULT_QUERY_SEARCH_LIMIT, } from '@finos/legend-query-builder';
|
26
26
|
import { LegendQueryUserDataHelper } from '../__lib__/LegendQueryUserDataHelper.js';
|
27
27
|
import { LegendQueryTelemetryHelper } from '../__lib__/LegendQueryTelemetryHelper.js';
|
28
28
|
import { DataSpaceQueryBuilderState, } from '@finos/legend-extension-dsl-data-space/application';
|
29
|
-
import { DSL_DataSpace_getGraphManagerExtension, getOwnDataSpace, retrieveAnalyticsResultCache, } from '@finos/legend-extension-dsl-data-space/graph';
|
29
|
+
import { DSL_DataSpace_getGraphManagerExtension, getOwnDataSpace, QUERY_PROFILE_TAG_DATA_SPACE, retrieveAnalyticsResultCache, } from '@finos/legend-extension-dsl-data-space/graph';
|
30
30
|
import { generateDataSpaceQueryCreatorRoute } from '../__lib__/DSL_DataSpace_LegendQueryNavigation.js';
|
31
31
|
import { hasDataSpaceInfoBeenVisited } from '../__lib__/LegendQueryUserDataSpaceHelper.js';
|
32
32
|
import { createDataSpaceDepoRepo } from './data-space/DataSpaceQueryBuilderHelper.js';
|
@@ -123,6 +123,7 @@ export class QueryEditorStore {
|
|
123
123
|
showRegisterServiceModal = false;
|
124
124
|
showAppInfo = false;
|
125
125
|
showDataspaceInfo = false;
|
126
|
+
enableMinialGraphForDataSpaceLoadingPerformance = true;
|
126
127
|
constructor(applicationStore, depotServerClient) {
|
127
128
|
makeObservable(this, {
|
128
129
|
queryCreatorState: observable,
|
@@ -132,13 +133,16 @@ export class QueryEditorStore {
|
|
132
133
|
showAppInfo: observable,
|
133
134
|
showDataspaceInfo: observable,
|
134
135
|
queryBuilderState: observable,
|
136
|
+
enableMinialGraphForDataSpaceLoadingPerformance: observable,
|
135
137
|
isPerformingBlockingAction: computed,
|
136
138
|
setExistingQueryName: action,
|
137
139
|
setShowRegisterServiceModal: action,
|
138
140
|
setShowAppInfo: action,
|
139
141
|
setShowDataspaceInfo: action,
|
142
|
+
setEnableMinialGraphForDataSpaceLoadingPerformance: action,
|
140
143
|
initialize: flow,
|
141
144
|
buildGraph: flow,
|
145
|
+
buildFullGraph: flow,
|
142
146
|
searchExistingQueryName: flow,
|
143
147
|
});
|
144
148
|
this.applicationStore = applicationStore;
|
@@ -198,6 +202,9 @@ export class QueryEditorStore {
|
|
198
202
|
setShowRegisterServiceModal(val) {
|
199
203
|
this.showRegisterServiceModal = val;
|
200
204
|
}
|
205
|
+
setEnableMinialGraphForDataSpaceLoadingPerformance(val) {
|
206
|
+
this.enableMinialGraphForDataSpaceLoadingPerformance = val;
|
207
|
+
}
|
201
208
|
get isPerformingBlockingAction() {
|
202
209
|
return this.queryCreatorState.createQueryState.isInProgress;
|
203
210
|
}
|
@@ -247,7 +254,8 @@ export class QueryEditorStore {
|
|
247
254
|
}
|
248
255
|
}
|
249
256
|
*initialize() {
|
250
|
-
if (!this.initState.isInInitialState
|
257
|
+
if (!this.initState.isInInitialState &&
|
258
|
+
this.enableMinialGraphForDataSpaceLoadingPerformance) {
|
251
259
|
return;
|
252
260
|
}
|
253
261
|
try {
|
@@ -306,7 +314,7 @@ export class QueryEditorStore {
|
|
306
314
|
logBuildGraphMetrics(graphBuilderReportData) {
|
307
315
|
LegendQueryTelemetryHelper.logEvent_GraphInitializationSucceeded(this.applicationStore.telemetryService, graphBuilderReportData);
|
308
316
|
}
|
309
|
-
*
|
317
|
+
*buildFullGraph() {
|
310
318
|
const stopWatch = new StopWatch();
|
311
319
|
const projectInfo = this.getProjectInfo();
|
312
320
|
if (projectInfo) {
|
@@ -346,11 +354,82 @@ export class QueryEditorStore {
|
|
346
354
|
dependencies: dependency_buildReport,
|
347
355
|
dependenciesCount: this.graphManagerState.graph.dependencyManager.numberOfDependencies,
|
348
356
|
graph: graph_buildReport,
|
357
|
+
isLightGraphEnabled: false,
|
349
358
|
};
|
350
359
|
this.logBuildGraphMetrics(graphBuilderReportData);
|
351
360
|
this.applicationStore.logService.info(LogEvent.create(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS), graphBuilderReportData);
|
352
361
|
}
|
353
362
|
}
|
363
|
+
*buildGraph() {
|
364
|
+
yield flowResult(this.buildFullGraph());
|
365
|
+
}
|
366
|
+
async buildGraphAndDataspaceAnalyticsResult(groupId, artifactId, versionId, executionContext, dataSpacePath, templateQueryId) {
|
367
|
+
let dataSpaceAnalysisResult;
|
368
|
+
let buildFullGraph = false;
|
369
|
+
let isLightGraphEnabled = true;
|
370
|
+
const supportBuildMinimalGraph = this.applicationStore.config.options.TEMPORARY__enableMinimalGraph;
|
371
|
+
if (this.enableMinialGraphForDataSpaceLoadingPerformance &&
|
372
|
+
supportBuildMinimalGraph) {
|
373
|
+
try {
|
374
|
+
this.initState.setMessage('Fetching dataspace analysis result...');
|
375
|
+
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(groupId, artifactId));
|
376
|
+
const graph_buildReport = createGraphBuilderReport();
|
377
|
+
const stopWatch = new StopWatch();
|
378
|
+
// initialize system
|
379
|
+
stopWatch.record();
|
380
|
+
await this.graphManagerState.initializeSystem();
|
381
|
+
stopWatch.record(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH_SYSTEM__SUCCESS);
|
382
|
+
const dependency_buildReport = createGraphBuilderReport();
|
383
|
+
dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).analyzeDataSpaceCoverage(dataSpacePath, () => retrieveProjectEntitiesWithDependencies(project, versionId, this.depotServerClient), () => retrieveProjectEntitiesWithClassifier(project, versionId, CORE_PURE_PATH.FUNCTION, this.depotServerClient), () => retrieveAnalyticsResultCache(project, versionId, dataSpacePath, this.depotServerClient), undefined, graph_buildReport, this.graphManagerState.graph, executionContext, undefined, this.getProjectInfo(), templateQueryId);
|
384
|
+
const mappingPath = executionContext
|
385
|
+
? dataSpaceAnalysisResult.executionContextsIndex.get(executionContext)
|
386
|
+
?.mapping.path
|
387
|
+
: undefined;
|
388
|
+
if (mappingPath) {
|
389
|
+
const pmcd = dataSpaceAnalysisResult.mappingToMappingCoverageResult?.get(mappingPath)?.entities;
|
390
|
+
if (pmcd) {
|
391
|
+
// report
|
392
|
+
stopWatch.record(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS);
|
393
|
+
const graphBuilderReportData = {
|
394
|
+
timings: this.applicationStore.timeService.finalizeTimingsRecord(stopWatch),
|
395
|
+
dependencies: dependency_buildReport,
|
396
|
+
dependenciesCount: this.graphManagerState.graph.dependencyManager
|
397
|
+
.numberOfDependencies,
|
398
|
+
graph: graph_buildReport,
|
399
|
+
isLightGraphEnabled: true,
|
400
|
+
};
|
401
|
+
this.logBuildGraphMetrics(graphBuilderReportData);
|
402
|
+
this.applicationStore.logService.info(LogEvent.create(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS), graphBuilderReportData);
|
403
|
+
}
|
404
|
+
else {
|
405
|
+
buildFullGraph = true;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
}
|
409
|
+
catch (error) {
|
410
|
+
buildFullGraph = true;
|
411
|
+
this.applicationStore.logService.error(LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE), error);
|
412
|
+
}
|
413
|
+
}
|
414
|
+
if (!this.enableMinialGraphForDataSpaceLoadingPerformance ||
|
415
|
+
buildFullGraph ||
|
416
|
+
!supportBuildMinimalGraph) {
|
417
|
+
this.graphManagerState.graph = this.graphManagerState.createNewGraph();
|
418
|
+
await flowResult(this.buildFullGraph());
|
419
|
+
try {
|
420
|
+
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(groupId, artifactId));
|
421
|
+
dataSpaceAnalysisResult = await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, versionId, dataSpacePath, this.depotServerClient));
|
422
|
+
}
|
423
|
+
catch {
|
424
|
+
// do nothing
|
425
|
+
}
|
426
|
+
isLightGraphEnabled = false;
|
427
|
+
}
|
428
|
+
return {
|
429
|
+
dataSpaceAnalysisResult,
|
430
|
+
isLightGraphEnabled,
|
431
|
+
};
|
432
|
+
}
|
354
433
|
}
|
355
434
|
export class QueryBuilderActionConfig_QueryApplication extends QueryBuilderActionConfig {
|
356
435
|
editorStore;
|
@@ -678,17 +757,20 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
678
757
|
queryId;
|
679
758
|
_lightQuery;
|
680
759
|
query;
|
760
|
+
queryInfo;
|
681
761
|
urlQueryParamValues;
|
682
762
|
updateState;
|
683
763
|
constructor(applicationStore, depotServerClient, queryId, urlQueryParamValues) {
|
684
764
|
super(applicationStore, depotServerClient);
|
685
765
|
makeObservable(this, {
|
686
766
|
query: observable,
|
767
|
+
queryInfo: observable,
|
687
768
|
updateState: observable,
|
688
769
|
_lightQuery: observable,
|
689
770
|
lightQuery: computed,
|
690
771
|
setLightQuery: action,
|
691
772
|
setQuery: action,
|
773
|
+
setQueryInfo: action,
|
692
774
|
isPerformingBlockingAction: override,
|
693
775
|
});
|
694
776
|
this.queryId = queryId;
|
@@ -721,6 +803,9 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
721
803
|
setQuery(val) {
|
722
804
|
this.query = val;
|
723
805
|
}
|
806
|
+
setQueryInfo(val) {
|
807
|
+
this.queryInfo = val;
|
808
|
+
}
|
724
809
|
getProjectInfo() {
|
725
810
|
return {
|
726
811
|
groupId: this.lightQuery.groupId,
|
@@ -728,32 +813,44 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
728
813
|
versionId: this.lightQuery.versionId,
|
729
814
|
};
|
730
815
|
}
|
816
|
+
*buildGraph() {
|
817
|
+
const queryInfo = this.queryInfo;
|
818
|
+
const dataSpaceTaggedValue = queryInfo?.taggedValues?.find((taggedValue) => taggedValue.profile === QUERY_PROFILE_PATH &&
|
819
|
+
taggedValue.tag === QUERY_PROFILE_TAG_DATA_SPACE &&
|
820
|
+
isValidFullPath(taggedValue.value));
|
821
|
+
if (!(dataSpaceTaggedValue ||
|
822
|
+
queryInfo?.executionContext instanceof
|
823
|
+
QueryDataSpaceExecutionContextInfo)) {
|
824
|
+
yield flowResult(this.buildFullGraph());
|
825
|
+
}
|
826
|
+
}
|
731
827
|
async setUpEditorState() {
|
828
|
+
const queryInfo = await this.graphManagerState.graphManager.getQueryInfo(this.queryId);
|
732
829
|
this.setLightQuery(await this.graphManagerState.graphManager.getLightQuery(this.queryId));
|
830
|
+
this.setQueryInfo(queryInfo);
|
831
|
+
LegendQueryUserDataHelper.addRecentlyViewedQuery(this.applicationStore.userDataService, queryInfo.id);
|
733
832
|
}
|
734
|
-
async initQueryBuildStateFromQuery(
|
735
|
-
const exec =
|
736
|
-
if (exec instanceof
|
833
|
+
async initQueryBuildStateFromQuery(queryInfo) {
|
834
|
+
const exec = queryInfo.executionContext;
|
835
|
+
if (exec instanceof QueryDataSpaceExecutionContextInfo) {
|
836
|
+
const { dataSpaceAnalysisResult, isLightGraphEnabled } = await this.buildGraphAndDataspaceAnalyticsResult(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId, exec.executionKey, exec.dataSpacePath);
|
737
837
|
const dataSpace = getOwnDataSpace(exec.dataSpacePath, this.graphManagerState.graph);
|
738
|
-
const
|
838
|
+
const mapping = queryInfo.mapping
|
839
|
+
? this.graphManagerState.graph.getMapping(queryInfo.mapping)
|
840
|
+
: undefined;
|
841
|
+
const runtime = queryInfo.runtime
|
842
|
+
? this.graphManagerState.graph.getRuntime(queryInfo.runtime)
|
843
|
+
: undefined;
|
844
|
+
const matchingExecutionContext = resolveExecutionContext(dataSpace, exec.executionKey, mapping, runtime);
|
739
845
|
if (matchingExecutionContext) {
|
740
|
-
let dataSpaceAnalysisResult;
|
741
|
-
try {
|
742
|
-
const project = StoreProjectData.serialization.fromJson(await this.depotServerClient.getProject(query.groupId, query.artifactId));
|
743
|
-
dataSpaceAnalysisResult =
|
744
|
-
await DSL_DataSpace_getGraphManagerExtension(this.graphManagerState.graphManager).retrieveDataSpaceAnalysisFromCache(() => retrieveAnalyticsResultCache(project, query.versionId, dataSpace.path, this.depotServerClient));
|
745
|
-
}
|
746
|
-
catch {
|
747
|
-
// do nothing
|
748
|
-
}
|
749
846
|
const sourceInfo = {
|
750
|
-
groupId:
|
751
|
-
artifactId:
|
752
|
-
versionId:
|
847
|
+
groupId: queryInfo.groupId,
|
848
|
+
artifactId: queryInfo.artifactId,
|
849
|
+
versionId: queryInfo.versionId,
|
753
850
|
dataSpace: dataSpace.path,
|
754
851
|
};
|
755
852
|
const visitedDataSpaces = LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(this.applicationStore.userDataService);
|
756
|
-
const dataSpaceQueryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, new QueryBuilderActionConfig_QueryApplication(this), dataSpace, matchingExecutionContext, createDataSpaceDepoRepo(this,
|
853
|
+
const dataSpaceQueryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, new QueryBuilderActionConfig_QueryApplication(this), dataSpace, matchingExecutionContext, isLightGraphEnabled, createDataSpaceDepoRepo(this, queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId, (dataSpaceInfo) => hasDataSpaceInfoBeenVisited(dataSpaceInfo, visitedDataSpaces)), async (dataSpaceInfo) => {
|
757
854
|
if (dataSpaceInfo.defaultExecutionContext) {
|
758
855
|
const proceed = () => this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
759
856
|
dataSpaceInfo.path, guaranteeNonNullable(dataSpaceInfo.defaultExecutionContext), undefined, undefined));
|
@@ -768,7 +865,7 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
768
865
|
this.applicationStore.notificationService.notifyError(error);
|
769
866
|
}
|
770
867
|
};
|
771
|
-
if (!
|
868
|
+
if (!queryInfo.isCurrentUserQuery ||
|
772
869
|
!this.queryBuilderState?.changeDetectionState.hasChanged) {
|
773
870
|
proceed();
|
774
871
|
}
|
@@ -811,7 +908,7 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
811
908
|
throw new UnsupportedOperationError(`Unsupported execution context ${exec.executionKey}`);
|
812
909
|
}
|
813
910
|
}
|
814
|
-
else if (exec instanceof
|
911
|
+
else if (exec instanceof QueryExplicitExecutionContextInfo) {
|
815
912
|
const projectInfo = this.getProjectInfo();
|
816
913
|
const sourceInfo = {
|
817
914
|
groupId: projectInfo.groupId,
|
@@ -820,20 +917,28 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
820
917
|
};
|
821
918
|
const classQueryBuilderState = new ClassQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
822
919
|
classQueryBuilderState.workflowState.updateActionConfig(new QueryBuilderActionConfig_QueryApplication(this));
|
823
|
-
classQueryBuilderState.executionContextState.setMapping(exec.mapping
|
824
|
-
|
920
|
+
classQueryBuilderState.executionContextState.setMapping(exec.mapping
|
921
|
+
? this.graphManagerState.graph.getMapping(exec.mapping)
|
922
|
+
: undefined);
|
923
|
+
classQueryBuilderState.executionContextState.setRuntimeValue(exec.runtime
|
924
|
+
? new RuntimePointer(PackageableElementExplicitReference.create(this.graphManagerState.graph.getRuntime(exec.runtime)))
|
925
|
+
: undefined);
|
825
926
|
return classQueryBuilderState;
|
826
927
|
}
|
827
928
|
throw new UnsupportedOperationError(`Unsupported query execution context`);
|
828
929
|
}
|
829
930
|
async initializeQueryBuilderState(stopWatch) {
|
830
|
-
const query = await this.graphManagerState.graphManager.getQuery(this.queryId, this.graphManagerState.graph);
|
831
|
-
this.setQuery(query);
|
832
|
-
LegendQueryUserDataHelper.addRecentlyViewedQuery(this.applicationStore.userDataService, query.id);
|
833
931
|
// if no extension found, fall back to basic `class -> mapping -> runtime` mode
|
834
|
-
|
932
|
+
let queryInfo = this.queryInfo;
|
933
|
+
if (!queryInfo) {
|
934
|
+
queryInfo = await this.graphManagerState.graphManager.getQueryInfo(this.queryId);
|
935
|
+
}
|
936
|
+
const queryBuilderState = await this.initQueryBuildStateFromQuery(queryInfo);
|
835
937
|
const initailizeQueryStateStopWatch = new StopWatch();
|
836
938
|
const initailizeQueryStateReport = reportGraphAnalytics(this.graphManagerState.graph);
|
939
|
+
const query = await this.graphManagerState.graphManager.getQuery(this.queryId, this.graphManagerState.graph);
|
940
|
+
this.setQuery(query);
|
941
|
+
LegendQueryUserDataHelper.addRecentlyViewedQuery(this.applicationStore.userDataService, query.id);
|
837
942
|
const existingQueryLambda = await this.graphManagerState.graphManager.pureCodeToLambda(query.content);
|
838
943
|
// leverage initialization of query builder state to ensure we handle unsupported queries
|
839
944
|
let defaultParameters = undefined;
|