@finos/legend-application-query 13.7.1 → 13.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/application/LegendQueryApplicationConfig.d.ts +0 -1
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +0 -2
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts +2 -3
- package/lib/components/Core_LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +4 -157
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +2 -9
- 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 +10 -38
- 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 +3 -4
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js +1 -0
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts +2 -13
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +30 -135
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts +1 -2
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js +12 -8
- package/lib/stores/data-space/DataSpaceQueryCreatorStore.js.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts +0 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js +0 -1
- package/lib/stores/data-space/DataSpaceQuerySetupState.js.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts +1 -3
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.d.ts.map +1 -1
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js +24 -41
- package/lib/stores/data-space/DataSpaceTemplateQueryCreatorStore.js.map +1 -1
- package/package.json +9 -9
- package/src/application/LegendQueryApplicationConfig.ts +0 -3
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +7 -281
- package/src/components/QueryEditor.tsx +1 -25
- package/src/components/__test-utils__/QueryEditorComponentTestUtils.tsx +24 -62
- package/src/stores/LegendQueryApplicationPlugin.tsx +5 -6
- package/src/stores/QueryEditorStore.ts +53 -254
- package/src/stores/data-space/DataSpaceQueryCreatorStore.ts +28 -17
- package/src/stores/data-space/DataSpaceQuerySetupState.ts +0 -1
- package/src/stores/data-space/DataSpaceTemplateQueryCreatorStore.ts +51 -73
@@ -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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,CAAC;IAC9C,CAAC;IAED,iBAAiB,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC;IAC5C,iBAAiB,CAAC,YAAY,CAAC,UAAU,GAAG,UAAU,EAAE,CAAC;IAEzD,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,iBAAiB,CAAC,gBAAgB,YACjE,KAAC,gCAAgC,IAC/B,cAAc,EAAE,CAAC,gCAAgC,CAAC,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,12 +14,11 @@
|
|
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 { Query } from '@finos/legend-graph';
|
18
|
+
import type { QueryBuilderState, QueryBuilder_LegendApplicationPlugin_Extension } from '@finos/legend-query-builder';
|
19
19
|
import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
20
|
-
import type
|
20
|
+
import { type ExistingQueryEditorStore, type QueryEditorStore } from './QueryEditorStore.js';
|
21
21
|
import type { QuerySetupLandingPageStore } from './QuerySetupStore.js';
|
22
|
-
import type { Query } from '@finos/legend-graph';
|
23
22
|
export declare enum QuerySetupActionTag {
|
24
23
|
PRODUCTIONIZATION = "Productionization"
|
25
24
|
}
|
@@ -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":"LegendQueryApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/stores/LegendQueryApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EACV,iBAAiB,EACjB,8CAA8C,EAC/C,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAEvE,oBAAY,mBAAmB;IAC7B,iBAAiB,sBAAsB;CACxC;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAMb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,CAAC,UAAU,EAAE,0BAA0B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAC5C,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,wBAAwB,KAClC,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC,CAAC;AAE5C,MAAM,MAAM,sBAAsB,GAAG,CACnC,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,wBAAwB,KAClC,MAAM,GAAG,SAAS,CAAC;AAExB,MAAM,MAAM,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,6 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { LegendApplicationPlugin } from '@finos/legend-application';
|
17
|
+
import {} from './QueryEditorStore.js';
|
17
18
|
export var QuerySetupActionTag;
|
18
19
|
(function (QuerySetupActionTag) {
|
19
20
|
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;AAOpE,OAAO,EAGN,MAAM,uBAAuB,CAAC;AAG/B,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,13 +14,12 @@
|
|
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,
|
17
|
+
import { type LightQuery, type RawLambda, type QueryGridConfig, type ValueSpecification, type GraphInitializationReport, 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';
|
24
23
|
export interface QueryPersistConfiguration {
|
25
24
|
defaultName?: string | undefined;
|
26
25
|
allowUpdate?: boolean | undefined;
|
@@ -52,7 +51,6 @@ export declare abstract class QueryEditorStore {
|
|
52
51
|
showRegisterServiceModal: boolean;
|
53
52
|
showAppInfo: boolean;
|
54
53
|
showDataspaceInfo: boolean;
|
55
|
-
enableMinialGraphForDataSpaceLoadingPerformance: boolean;
|
56
54
|
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient);
|
57
55
|
get isViewProjectActionDisabled(): boolean;
|
58
56
|
get canPersistToSavedQuery(): boolean;
|
@@ -60,7 +58,6 @@ export declare abstract class QueryEditorStore {
|
|
60
58
|
setShowAppInfo(val: boolean): void;
|
61
59
|
setShowDataspaceInfo(val: boolean): void;
|
62
60
|
setShowRegisterServiceModal(val: boolean): void;
|
63
|
-
setEnableMinialGraphForDataSpaceLoadingPerformance(val: boolean): void;
|
64
61
|
get isPerformingBlockingAction(): boolean;
|
65
62
|
decorateSearchSpecification(val: QuerySearchSpecification): QuerySearchSpecification;
|
66
63
|
abstract getProjectInfo(): ProjectGAVCoordinates | undefined;
|
@@ -80,12 +77,7 @@ export declare abstract class QueryEditorStore {
|
|
80
77
|
onInitializeFailure(): void;
|
81
78
|
searchExistingQueryName(searchText: string): GeneratorFn<void>;
|
82
79
|
logBuildGraphMetrics(graphBuilderReportData: GraphInitializationReport): void;
|
83
|
-
buildFullGraph(): GeneratorFn<void>;
|
84
80
|
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
|
-
}>;
|
89
81
|
}
|
90
82
|
export declare class QueryBuilderActionConfig_QueryApplication extends QueryBuilderActionConfig {
|
91
83
|
editorStore: QueryEditorStore;
|
@@ -142,7 +134,6 @@ export declare class ExistingQueryEditorStore extends QueryEditorStore {
|
|
142
134
|
private queryId;
|
143
135
|
private _lightQuery?;
|
144
136
|
query: Query | undefined;
|
145
|
-
queryInfo: QueryInfo | undefined;
|
146
137
|
urlQueryParamValues: Record<string, string> | undefined;
|
147
138
|
updateState: ExistingQueryUpdateState;
|
148
139
|
constructor(applicationStore: LegendQueryApplicationStore, depotServerClient: DepotServerClient, queryId: string, urlQueryParamValues: Record<string, string> | undefined);
|
@@ -151,11 +142,9 @@ export declare class ExistingQueryEditorStore extends QueryEditorStore {
|
|
151
142
|
logBuildGraphMetrics(graphBuilderReportData: GraphInitializationReport): void;
|
152
143
|
setLightQuery(val: LightQuery): void;
|
153
144
|
setQuery(val: Query): void;
|
154
|
-
setQueryInfo(val: QueryInfo): void;
|
155
145
|
getProjectInfo(): ProjectGAVCoordinates;
|
156
|
-
buildGraph(): GeneratorFn<void>;
|
157
146
|
setUpEditorState(): Promise<void>;
|
158
|
-
initQueryBuildStateFromQuery(
|
147
|
+
initQueryBuildStateFromQuery(query: Query): Promise<QueryBuilderState>;
|
159
148
|
initializeQueryBuilderState(stopWatch: StopWatch): Promise<QueryBuilderState>;
|
160
149
|
getPersistConfiguration(lambda: RawLambda, options?: {
|
161
150
|
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,
|
1
|
+
{"version":3,"file":"QueryEditorStore.d.ts","sourceRoot":"","sources":["../../src/stores/QueryEditorStore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,EAAE,UAAU,GAAG,IAAI;IAIpC,QAAQ,CAAC,GAAG,EAAE,KAAK,GAAG,IAAI;IAI1B,cAAc,IAAI,qBAAqB;IAQxB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAM1C,4BAA4B,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAyLtE,2BAA2B,CAC/B,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,iBAAiB,CAAC;IA4F7B,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, QueryProjectCoordinates, buildLambdaVariableExpressions, VariableExpression, PrimitiveType,
|
18
|
+
import { GraphManagerState, Query, PureExecution, PackageableElementExplicitReference, RuntimePointer, GRAPH_MANAGER_EVENT, extractElementNameFromPath, Mapping, createGraphBuilderReport, LegendSDLC, QuerySearchSpecification, toLightQuery, QueryParameterValue, reportGraphAnalytics, cloneQueryStereotype, cloneQueryTaggedValue, QueryDataSpaceExecutionContext, QueryExplicitExecutionContext, QueryProjectCoordinates, buildLambdaVariableExpressions, VariableExpression, PrimitiveType, } 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,
|
22
|
+
import { resolveVersion, StoreProjectData, LATEST_VERSION_ALIAS, VersionedProjectData, } 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,
|
29
|
+
import { DSL_DataSpace_getGraphManagerExtension, getOwnDataSpace, 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,7 +123,6 @@ export class QueryEditorStore {
|
|
123
123
|
showRegisterServiceModal = false;
|
124
124
|
showAppInfo = false;
|
125
125
|
showDataspaceInfo = false;
|
126
|
-
enableMinialGraphForDataSpaceLoadingPerformance = true;
|
127
126
|
constructor(applicationStore, depotServerClient) {
|
128
127
|
makeObservable(this, {
|
129
128
|
queryCreatorState: observable,
|
@@ -133,16 +132,13 @@ export class QueryEditorStore {
|
|
133
132
|
showAppInfo: observable,
|
134
133
|
showDataspaceInfo: observable,
|
135
134
|
queryBuilderState: observable,
|
136
|
-
enableMinialGraphForDataSpaceLoadingPerformance: observable,
|
137
135
|
isPerformingBlockingAction: computed,
|
138
136
|
setExistingQueryName: action,
|
139
137
|
setShowRegisterServiceModal: action,
|
140
138
|
setShowAppInfo: action,
|
141
139
|
setShowDataspaceInfo: action,
|
142
|
-
setEnableMinialGraphForDataSpaceLoadingPerformance: action,
|
143
140
|
initialize: flow,
|
144
141
|
buildGraph: flow,
|
145
|
-
buildFullGraph: flow,
|
146
142
|
searchExistingQueryName: flow,
|
147
143
|
});
|
148
144
|
this.applicationStore = applicationStore;
|
@@ -202,9 +198,6 @@ export class QueryEditorStore {
|
|
202
198
|
setShowRegisterServiceModal(val) {
|
203
199
|
this.showRegisterServiceModal = val;
|
204
200
|
}
|
205
|
-
setEnableMinialGraphForDataSpaceLoadingPerformance(val) {
|
206
|
-
this.enableMinialGraphForDataSpaceLoadingPerformance = val;
|
207
|
-
}
|
208
201
|
get isPerformingBlockingAction() {
|
209
202
|
return this.queryCreatorState.createQueryState.isInProgress;
|
210
203
|
}
|
@@ -254,8 +247,7 @@ export class QueryEditorStore {
|
|
254
247
|
}
|
255
248
|
}
|
256
249
|
*initialize() {
|
257
|
-
if (!this.initState.isInInitialState
|
258
|
-
this.enableMinialGraphForDataSpaceLoadingPerformance) {
|
250
|
+
if (!this.initState.isInInitialState) {
|
259
251
|
return;
|
260
252
|
}
|
261
253
|
try {
|
@@ -314,7 +306,7 @@ export class QueryEditorStore {
|
|
314
306
|
logBuildGraphMetrics(graphBuilderReportData) {
|
315
307
|
LegendQueryTelemetryHelper.logEvent_GraphInitializationSucceeded(this.applicationStore.telemetryService, graphBuilderReportData);
|
316
308
|
}
|
317
|
-
*
|
309
|
+
*buildGraph() {
|
318
310
|
const stopWatch = new StopWatch();
|
319
311
|
const projectInfo = this.getProjectInfo();
|
320
312
|
if (projectInfo) {
|
@@ -354,82 +346,11 @@ export class QueryEditorStore {
|
|
354
346
|
dependencies: dependency_buildReport,
|
355
347
|
dependenciesCount: this.graphManagerState.graph.dependencyManager.numberOfDependencies,
|
356
348
|
graph: graph_buildReport,
|
357
|
-
isLightGraphEnabled: false,
|
358
349
|
};
|
359
350
|
this.logBuildGraphMetrics(graphBuilderReportData);
|
360
351
|
this.applicationStore.logService.info(LogEvent.create(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS), graphBuilderReportData);
|
361
352
|
}
|
362
353
|
}
|
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
|
-
}
|
433
354
|
}
|
434
355
|
export class QueryBuilderActionConfig_QueryApplication extends QueryBuilderActionConfig {
|
435
356
|
editorStore;
|
@@ -757,20 +678,17 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
757
678
|
queryId;
|
758
679
|
_lightQuery;
|
759
680
|
query;
|
760
|
-
queryInfo;
|
761
681
|
urlQueryParamValues;
|
762
682
|
updateState;
|
763
683
|
constructor(applicationStore, depotServerClient, queryId, urlQueryParamValues) {
|
764
684
|
super(applicationStore, depotServerClient);
|
765
685
|
makeObservable(this, {
|
766
686
|
query: observable,
|
767
|
-
queryInfo: observable,
|
768
687
|
updateState: observable,
|
769
688
|
_lightQuery: observable,
|
770
689
|
lightQuery: computed,
|
771
690
|
setLightQuery: action,
|
772
691
|
setQuery: action,
|
773
|
-
setQueryInfo: action,
|
774
692
|
isPerformingBlockingAction: override,
|
775
693
|
});
|
776
694
|
this.queryId = queryId;
|
@@ -803,9 +721,6 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
803
721
|
setQuery(val) {
|
804
722
|
this.query = val;
|
805
723
|
}
|
806
|
-
setQueryInfo(val) {
|
807
|
-
this.queryInfo = val;
|
808
|
-
}
|
809
724
|
getProjectInfo() {
|
810
725
|
return {
|
811
726
|
groupId: this.lightQuery.groupId,
|
@@ -813,44 +728,32 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
813
728
|
versionId: this.lightQuery.versionId,
|
814
729
|
};
|
815
730
|
}
|
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
|
-
}
|
827
731
|
async setUpEditorState() {
|
828
|
-
const queryInfo = await this.graphManagerState.graphManager.getQueryInfo(this.queryId);
|
829
732
|
this.setLightQuery(await this.graphManagerState.graphManager.getLightQuery(this.queryId));
|
830
|
-
this.setQueryInfo(queryInfo);
|
831
|
-
LegendQueryUserDataHelper.addRecentlyViewedQuery(this.applicationStore.userDataService, queryInfo.id);
|
832
733
|
}
|
833
|
-
async initQueryBuildStateFromQuery(
|
834
|
-
const exec =
|
835
|
-
if (exec instanceof
|
836
|
-
const { dataSpaceAnalysisResult, isLightGraphEnabled } = await this.buildGraphAndDataspaceAnalyticsResult(queryInfo.groupId, queryInfo.artifactId, queryInfo.versionId, exec.executionKey, exec.dataSpacePath);
|
734
|
+
async initQueryBuildStateFromQuery(query) {
|
735
|
+
const exec = query.executionContext;
|
736
|
+
if (exec instanceof QueryDataSpaceExecutionContext) {
|
837
737
|
const dataSpace = getOwnDataSpace(exec.dataSpacePath, this.graphManagerState.graph);
|
838
|
-
const
|
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);
|
738
|
+
const matchingExecutionContext = resolveExecutionContext(dataSpace, exec.executionKey, query.mapping?.value, query.runtime?.value);
|
845
739
|
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
|
+
}
|
846
749
|
const sourceInfo = {
|
847
|
-
groupId:
|
848
|
-
artifactId:
|
849
|
-
versionId:
|
750
|
+
groupId: query.groupId,
|
751
|
+
artifactId: query.artifactId,
|
752
|
+
versionId: query.versionId,
|
850
753
|
dataSpace: dataSpace.path,
|
851
754
|
};
|
852
755
|
const visitedDataSpaces = LegendQueryUserDataHelper.getRecentlyVisitedDataSpaces(this.applicationStore.userDataService);
|
853
|
-
const dataSpaceQueryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, new QueryBuilderActionConfig_QueryApplication(this), dataSpace, matchingExecutionContext,
|
756
|
+
const dataSpaceQueryBuilderState = new DataSpaceQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, new QueryBuilderActionConfig_QueryApplication(this), dataSpace, matchingExecutionContext, createDataSpaceDepoRepo(this, query.groupId, query.artifactId, query.versionId, (dataSpaceInfo) => hasDataSpaceInfoBeenVisited(dataSpaceInfo, visitedDataSpaces)), (dataSpaceInfo) => {
|
854
757
|
if (dataSpaceInfo.defaultExecutionContext) {
|
855
758
|
const proceed = () => this.applicationStore.navigationService.navigator.goToLocation(generateDataSpaceQueryCreatorRoute(guaranteeNonNullable(dataSpaceInfo.groupId), guaranteeNonNullable(dataSpaceInfo.artifactId), LATEST_VERSION_ALIAS, //always default to latest
|
856
759
|
dataSpaceInfo.path, guaranteeNonNullable(dataSpaceInfo.defaultExecutionContext), undefined, undefined));
|
@@ -865,7 +768,7 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
865
768
|
this.applicationStore.notificationService.notifyError(error);
|
866
769
|
}
|
867
770
|
};
|
868
|
-
if (!
|
771
|
+
if (!query.isCurrentUserQuery ||
|
869
772
|
!this.queryBuilderState?.changeDetectionState.hasChanged) {
|
870
773
|
proceed();
|
871
774
|
}
|
@@ -908,7 +811,7 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
908
811
|
throw new UnsupportedOperationError(`Unsupported execution context ${exec.executionKey}`);
|
909
812
|
}
|
910
813
|
}
|
911
|
-
else if (exec instanceof
|
814
|
+
else if (exec instanceof QueryExplicitExecutionContext) {
|
912
815
|
const projectInfo = this.getProjectInfo();
|
913
816
|
const sourceInfo = {
|
914
817
|
groupId: projectInfo.groupId,
|
@@ -917,28 +820,20 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
917
820
|
};
|
918
821
|
const classQueryBuilderState = new ClassQueryBuilderState(this.applicationStore, this.graphManagerState, QueryBuilderDataBrowserWorkflow.INSTANCE, this.applicationStore.config.options.queryBuilderConfig, sourceInfo);
|
919
822
|
classQueryBuilderState.workflowState.updateActionConfig(new QueryBuilderActionConfig_QueryApplication(this));
|
920
|
-
classQueryBuilderState.executionContextState.setMapping(exec.mapping
|
921
|
-
|
922
|
-
: undefined);
|
923
|
-
classQueryBuilderState.executionContextState.setRuntimeValue(exec.runtime
|
924
|
-
? new RuntimePointer(PackageableElementExplicitReference.create(this.graphManagerState.graph.getRuntime(exec.runtime)))
|
925
|
-
: undefined);
|
823
|
+
classQueryBuilderState.executionContextState.setMapping(exec.mapping.value);
|
824
|
+
classQueryBuilderState.executionContextState.setRuntimeValue(new RuntimePointer(PackageableElementExplicitReference.create(exec.runtime.value)));
|
926
825
|
return classQueryBuilderState;
|
927
826
|
}
|
928
827
|
throw new UnsupportedOperationError(`Unsupported query execution context`);
|
929
828
|
}
|
930
829
|
async initializeQueryBuilderState(stopWatch) {
|
931
|
-
// if no extension found, fall back to basic `class -> mapping -> runtime` mode
|
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);
|
937
|
-
const initailizeQueryStateStopWatch = new StopWatch();
|
938
|
-
const initailizeQueryStateReport = reportGraphAnalytics(this.graphManagerState.graph);
|
939
830
|
const query = await this.graphManagerState.graphManager.getQuery(this.queryId, this.graphManagerState.graph);
|
940
831
|
this.setQuery(query);
|
941
832
|
LegendQueryUserDataHelper.addRecentlyViewedQuery(this.applicationStore.userDataService, query.id);
|
833
|
+
// if no extension found, fall back to basic `class -> mapping -> runtime` mode
|
834
|
+
const queryBuilderState = await this.initQueryBuildStateFromQuery(query);
|
835
|
+
const initailizeQueryStateStopWatch = new StopWatch();
|
836
|
+
const initailizeQueryStateReport = reportGraphAnalytics(this.graphManagerState.graph);
|
942
837
|
const existingQueryLambda = await this.graphManagerState.graphManager.pureCodeToLambda(query.content);
|
943
838
|
// leverage initialization of query builder state to ensure we handle unsupported queries
|
944
839
|
let defaultParameters = undefined;
|