@finos/legend-application-query 10.0.3 → 10.0.4
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/application/LegendQuery.d.ts.map +1 -1
- package/lib/application/LegendQuery.js +1 -1
- package/lib/application/LegendQuery.js.map +1 -1
- package/lib/components/CloneQueryServiceSetup.d.ts.map +1 -1
- package/lib/components/CloneQueryServiceSetup.js +2 -2
- package/lib/components/CloneQueryServiceSetup.js.map +1 -1
- package/lib/components/Core_LegendQueryApplicationPlugin.js +7 -7
- package/lib/components/Core_LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/components/CreateMappingQuerySetup.d.ts.map +1 -1
- package/lib/components/CreateMappingQuerySetup.js +2 -2
- package/lib/components/CreateMappingQuerySetup.js.map +1 -1
- package/lib/components/EditExistingQuerySetup.d.ts.map +1 -1
- package/lib/components/EditExistingQuerySetup.js +2 -2
- package/lib/components/EditExistingQuerySetup.js.map +1 -1
- package/lib/components/LoadProjectServiceQuerySetup.d.ts.map +1 -1
- package/lib/components/LoadProjectServiceQuerySetup.js +1 -1
- package/lib/components/LoadProjectServiceQuerySetup.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +9 -9
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryEditorComponentTestUtils.js +2 -1
- package/lib/components/QueryEditorComponentTestUtils.js.map +1 -1
- package/lib/components/QueryProductionizerSetup.d.ts.map +1 -1
- package/lib/components/QueryProductionizerSetup.js +1 -1
- package/lib/components/QueryProductionizerSetup.js.map +1 -1
- package/lib/components/QuerySetup.d.ts.map +1 -1
- package/lib/components/QuerySetup.js +2 -2
- package/lib/components/QuerySetup.js.map +1 -1
- package/lib/components/UpdateExistingServiceQuerySetup.d.ts.map +1 -1
- package/lib/components/UpdateExistingServiceQuerySetup.js +1 -1
- package/lib/components/UpdateExistingServiceQuerySetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/CloneServiceQuerySetupStore.js +3 -3
- package/lib/stores/CloneServiceQuerySetupStore.js.map +1 -1
- package/lib/stores/CreateMappingQuerySetupStore.js +3 -3
- package/lib/stores/CreateMappingQuerySetupStore.js.map +1 -1
- package/lib/stores/EditExistingQuerySetupStore.js +2 -2
- package/lib/stores/EditExistingQuerySetupStore.js.map +1 -1
- package/lib/stores/LegendQueryBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendQueryBaseStore.js +5 -5
- package/lib/stores/LegendQueryBaseStore.js.map +1 -1
- package/lib/stores/LoadProjectServiceQuerySetupStore.js +4 -4
- package/lib/stores/LoadProjectServiceQuerySetupStore.js.map +1 -1
- package/lib/stores/QueryEditorStore.js +19 -19
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/lib/stores/QueryProductionizerSetupStore.js +5 -5
- package/lib/stores/QueryProductionizerSetupStore.js.map +1 -1
- package/lib/stores/QuerySetupStore.js +4 -4
- package/lib/stores/QuerySetupStore.js.map +1 -1
- package/lib/stores/UpdateExistingServiceQuerySetupStore.js +4 -4
- package/lib/stores/UpdateExistingServiceQuerySetupStore.js.map +1 -1
- package/package.json +11 -11
- package/src/application/LegendQuery.tsx +1 -1
- package/src/components/CloneQueryServiceSetup.tsx +4 -2
- package/src/components/Core_LegendQueryApplicationPlugin.tsx +7 -7
- package/src/components/CreateMappingQuerySetup.tsx +4 -2
- package/src/components/EditExistingQuerySetup.tsx +4 -2
- package/src/components/LoadProjectServiceQuerySetup.tsx +3 -1
- package/src/components/QueryEditor.tsx +15 -11
- package/src/components/QueryEditorComponentTestUtils.tsx +3 -2
- package/src/components/QueryProductionizerSetup.tsx +3 -1
- package/src/components/QuerySetup.tsx +4 -2
- package/src/components/UpdateExistingServiceQuerySetup.tsx +3 -1
- package/src/stores/CloneServiceQuerySetupStore.ts +3 -3
- package/src/stores/CreateMappingQuerySetupStore.ts +3 -3
- package/src/stores/EditExistingQuerySetupStore.ts +2 -2
- package/src/stores/LegendQueryBaseStore.ts +7 -5
- package/src/stores/LoadProjectServiceQuerySetupStore.ts +4 -4
- package/src/stores/QueryEditorStore.ts +19 -19
- package/src/stores/QueryProductionizerSetupStore.ts +5 -5
- package/src/stores/QuerySetupStore.ts +4 -4
- package/src/stores/UpdateExistingServiceQuerySetupStore.ts +4 -4
@@ -98,7 +98,7 @@ export const createViewProjectHandler =
|
|
98
98
|
versionId: string,
|
99
99
|
entityPath: string | undefined,
|
100
100
|
): void =>
|
101
|
-
applicationStore.navigator.visitAddress(
|
101
|
+
applicationStore.navigationService.navigator.visitAddress(
|
102
102
|
EXTERNAL_APPLICATION_NAVIGATION__generateStudioProjectViewUrl(
|
103
103
|
applicationStore.config.studioUrl,
|
104
104
|
groupId,
|
@@ -128,7 +128,7 @@ export const createViewSDLCProjectHandler =
|
|
128
128
|
(entry) => entry.sdlcProjectIDPrefix === projectIDPrefix,
|
129
129
|
);
|
130
130
|
if (matchingSDLCEntry) {
|
131
|
-
applicationStore.navigator.visitAddress(
|
131
|
+
applicationStore.navigationService.navigator.visitAddress(
|
132
132
|
EXTERNAL_APPLICATION_NAVIGATION__generateStudioSDLCProjectViewUrl(
|
133
133
|
matchingSDLCEntry.url,
|
134
134
|
project.projectId,
|
@@ -136,7 +136,7 @@ export const createViewSDLCProjectHandler =
|
|
136
136
|
),
|
137
137
|
);
|
138
138
|
} else {
|
139
|
-
applicationStore.notifyWarning(
|
139
|
+
applicationStore.notificationService.notifyWarning(
|
140
140
|
`Can't find the corresponding SDLC instance to view the SDLC project`,
|
141
141
|
);
|
142
142
|
}
|
@@ -215,11 +215,11 @@ export class QueryExportState {
|
|
215
215
|
);
|
216
216
|
} catch (error) {
|
217
217
|
assertErrorThrown(error);
|
218
|
-
this.editorStore.applicationStore.
|
218
|
+
this.editorStore.applicationStore.logService.error(
|
219
219
|
LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
|
220
220
|
error,
|
221
221
|
);
|
222
|
-
this.editorStore.applicationStore.notifyError(error);
|
222
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
223
223
|
this.persistQueryState.reset();
|
224
224
|
return;
|
225
225
|
}
|
@@ -232,7 +232,7 @@ export class QueryExportState {
|
|
232
232
|
query,
|
233
233
|
this.editorStore.graphManagerState.graph,
|
234
234
|
);
|
235
|
-
this.editorStore.applicationStore.notifySuccess(
|
235
|
+
this.editorStore.applicationStore.notificationService.notifySuccess(
|
236
236
|
`Successfully created query!`,
|
237
237
|
);
|
238
238
|
|
@@ -253,7 +253,7 @@ export class QueryExportState {
|
|
253
253
|
},
|
254
254
|
);
|
255
255
|
|
256
|
-
this.editorStore.applicationStore.navigator.goToLocation(
|
256
|
+
this.editorStore.applicationStore.navigationService.navigator.goToLocation(
|
257
257
|
generateExistingQueryEditorRoute(newQuery.id),
|
258
258
|
);
|
259
259
|
} else {
|
@@ -262,7 +262,7 @@ export class QueryExportState {
|
|
262
262
|
query,
|
263
263
|
this.editorStore.graphManagerState.graph,
|
264
264
|
);
|
265
|
-
this.editorStore.applicationStore.notifySuccess(
|
265
|
+
this.editorStore.applicationStore.notificationService.notifySuccess(
|
266
266
|
`Successfully updated query!`,
|
267
267
|
);
|
268
268
|
|
@@ -283,11 +283,11 @@ export class QueryExportState {
|
|
283
283
|
}
|
284
284
|
} catch (error) {
|
285
285
|
assertErrorThrown(error);
|
286
|
-
this.editorStore.applicationStore.
|
286
|
+
this.editorStore.applicationStore.logService.error(
|
287
287
|
LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
|
288
288
|
error,
|
289
289
|
);
|
290
|
-
this.editorStore.applicationStore.notifyError(error);
|
290
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
291
291
|
} finally {
|
292
292
|
this.persistQueryState.reset();
|
293
293
|
this.editorStore.setExportState(undefined);
|
@@ -347,7 +347,7 @@ export class QueryLoaderState {
|
|
347
347
|
} catch (error) {
|
348
348
|
this.loadQueriesState.fail();
|
349
349
|
assertErrorThrown(error);
|
350
|
-
this.editorStore.applicationStore.notifyError(error);
|
350
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
351
351
|
}
|
352
352
|
}
|
353
353
|
|
@@ -384,7 +384,7 @@ export abstract class QueryEditorStore {
|
|
384
384
|
this.pluginManager = applicationStore.pluginManager;
|
385
385
|
this.graphManagerState = new GraphManagerState(
|
386
386
|
applicationStore.pluginManager,
|
387
|
-
applicationStore.
|
387
|
+
applicationStore.logService,
|
388
388
|
);
|
389
389
|
this.queryLoaderState = new QueryLoaderState(this);
|
390
390
|
}
|
@@ -450,11 +450,11 @@ export abstract class QueryEditorStore {
|
|
450
450
|
this.initState.pass();
|
451
451
|
} catch (error) {
|
452
452
|
assertErrorThrown(error);
|
453
|
-
this.applicationStore.
|
453
|
+
this.applicationStore.logService.error(
|
454
454
|
LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
|
455
455
|
error,
|
456
456
|
);
|
457
|
-
this.applicationStore.notifyError(error);
|
457
|
+
this.applicationStore.notificationService.notifyError(error);
|
458
458
|
this.initState.fail();
|
459
459
|
}
|
460
460
|
}
|
@@ -546,7 +546,7 @@ export abstract class QueryEditorStore {
|
|
546
546
|
graphBuilderReportData,
|
547
547
|
);
|
548
548
|
|
549
|
-
this.applicationStore.
|
549
|
+
this.applicationStore.logService.info(
|
550
550
|
LogEvent.create(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS),
|
551
551
|
graphBuilderReportData,
|
552
552
|
);
|
@@ -591,7 +591,7 @@ export class MappingQueryCreatorStore extends QueryEditorStore {
|
|
591
591
|
this.applicationStore,
|
592
592
|
this.graphManagerState,
|
593
593
|
(val: Mapping) => {
|
594
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
594
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
595
595
|
generateMappingQueryCreatorRoute(
|
596
596
|
this.groupId,
|
597
597
|
this.artifactId,
|
@@ -603,7 +603,7 @@ export class MappingQueryCreatorStore extends QueryEditorStore {
|
|
603
603
|
);
|
604
604
|
},
|
605
605
|
(val: Runtime) => {
|
606
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
606
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
607
607
|
generateMappingQueryCreatorRoute(
|
608
608
|
this.groupId,
|
609
609
|
this.artifactId,
|
@@ -688,7 +688,7 @@ export class ServiceQueryCreatorStore extends QueryEditorStore {
|
|
688
688
|
this.graphManagerState.usableServices,
|
689
689
|
this.executionKey,
|
690
690
|
(val: Service): void => {
|
691
|
-
this.applicationStore.navigator.goToLocation(
|
691
|
+
this.applicationStore.navigationService.navigator.goToLocation(
|
692
692
|
generateServiceQueryCreatorRoute(
|
693
693
|
this.groupId,
|
694
694
|
this.artifactId,
|
@@ -698,7 +698,7 @@ export class ServiceQueryCreatorStore extends QueryEditorStore {
|
|
698
698
|
);
|
699
699
|
},
|
700
700
|
(val: ServiceExecutionContext): void => {
|
701
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
701
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
702
702
|
generateServiceQueryCreatorRoute(
|
703
703
|
this.groupId,
|
704
704
|
this.artifactId,
|
@@ -79,19 +79,19 @@ export class QueryProductionizerSetupStore extends BaseQuerySetupStore {
|
|
79
79
|
(entry) => entry.sdlcProjectIDPrefix === projectIDPrefix,
|
80
80
|
);
|
81
81
|
if (matchingSDLCEntry) {
|
82
|
-
this.applicationStore.setBlockingAlert({
|
82
|
+
this.applicationStore.alertService.setBlockingAlert({
|
83
83
|
message: `Loading query...`,
|
84
84
|
prompt: 'Please do not close the application',
|
85
85
|
showLoading: true,
|
86
86
|
});
|
87
|
-
this.applicationStore.navigator.goToAddress(
|
87
|
+
this.applicationStore.navigationService.navigator.goToAddress(
|
88
88
|
EXTERNAL_APPLICATION_NAVIGATION__generateStudioProductionizeQueryUrl(
|
89
89
|
matchingSDLCEntry.url,
|
90
90
|
this.currentQuery.id,
|
91
91
|
),
|
92
92
|
);
|
93
93
|
} else {
|
94
|
-
this.applicationStore.notifyWarning(
|
94
|
+
this.applicationStore.notificationService.notifyWarning(
|
95
95
|
`Can't find the corresponding SDLC instance to productionize the query`,
|
96
96
|
);
|
97
97
|
}
|
@@ -116,7 +116,7 @@ export class QueryProductionizerSetupStore extends BaseQuerySetupStore {
|
|
116
116
|
this.currentQueryInfo = queryInfo;
|
117
117
|
} catch (error) {
|
118
118
|
assertErrorThrown(error);
|
119
|
-
this.applicationStore.notifyError(error);
|
119
|
+
this.applicationStore.notificationService.notifyError(error);
|
120
120
|
} finally {
|
121
121
|
this.loadQueryState.reset();
|
122
122
|
}
|
@@ -141,7 +141,7 @@ export class QueryProductionizerSetupStore extends BaseQuerySetupStore {
|
|
141
141
|
this.loadQueriesState.pass();
|
142
142
|
} catch (error) {
|
143
143
|
assertErrorThrown(error);
|
144
|
-
this.applicationStore.notifyError(error);
|
144
|
+
this.applicationStore.notificationService.notifyError(error);
|
145
145
|
this.loadQueriesState.fail();
|
146
146
|
}
|
147
147
|
}
|
@@ -51,7 +51,7 @@ export abstract class BaseQuerySetupStore {
|
|
51
51
|
this.applicationStore = applicationStore;
|
52
52
|
this.graphManagerState = new BasicGraphManagerState(
|
53
53
|
applicationStore.pluginManager,
|
54
|
-
applicationStore.
|
54
|
+
applicationStore.logService,
|
55
55
|
);
|
56
56
|
this.depotServerClient = depotServerClient;
|
57
57
|
this.pluginManager = applicationStore.pluginManager;
|
@@ -82,11 +82,11 @@ export abstract class BaseQuerySetupStore {
|
|
82
82
|
this.initState.pass();
|
83
83
|
} catch (error) {
|
84
84
|
assertErrorThrown(error);
|
85
|
-
this.applicationStore.
|
85
|
+
this.applicationStore.logService.error(
|
86
86
|
LogEvent.create(LEGEND_QUERY_APP_EVENT.GENERIC_FAILURE),
|
87
87
|
error,
|
88
88
|
);
|
89
|
-
this.applicationStore.setBlockingAlert({
|
89
|
+
this.applicationStore.alertService.setBlockingAlert({
|
90
90
|
message: `Can't initialize query setup store`,
|
91
91
|
});
|
92
92
|
this.initState.fail();
|
@@ -163,7 +163,7 @@ export class QuerySetupLandingPageStore {
|
|
163
163
|
}
|
164
164
|
|
165
165
|
private updateCurentLocation(): void {
|
166
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
166
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
167
167
|
generateQuerySetupRoute(
|
168
168
|
this.showAllGroups,
|
169
169
|
this.showAdvancedActions,
|
@@ -71,12 +71,12 @@ export class UpdateExistingServiceQuerySetupStore extends BaseQuerySetupStore {
|
|
71
71
|
(entry) => entry.sdlcProjectIDPrefix === projectIDPrefix,
|
72
72
|
);
|
73
73
|
if (matchingSDLCEntry) {
|
74
|
-
this.applicationStore.setBlockingAlert({
|
74
|
+
this.applicationStore.alertService.setBlockingAlert({
|
75
75
|
message: `Loading service...`,
|
76
76
|
prompt: 'Please do not close the application',
|
77
77
|
showLoading: true,
|
78
78
|
});
|
79
|
-
this.applicationStore.navigator.goToAddress(
|
79
|
+
this.applicationStore.navigationService.navigator.goToAddress(
|
80
80
|
EXTERNAL_APPLICATION_NAVIGATION__generateStudioUpdateExistingServiceQueryUrl(
|
81
81
|
matchingSDLCEntry.url,
|
82
82
|
serviceInfo.groupId,
|
@@ -85,7 +85,7 @@ export class UpdateExistingServiceQuerySetupStore extends BaseQuerySetupStore {
|
|
85
85
|
),
|
86
86
|
);
|
87
87
|
} else {
|
88
|
-
this.applicationStore.notifyWarning(
|
88
|
+
this.applicationStore.notificationService.notifyWarning(
|
89
89
|
`Can't find the corresponding SDLC instance to update the service`,
|
90
90
|
);
|
91
91
|
}
|
@@ -111,7 +111,7 @@ export class UpdateExistingServiceQuerySetupStore extends BaseQuerySetupStore {
|
|
111
111
|
this.loadServicesState.pass();
|
112
112
|
} catch (error) {
|
113
113
|
assertErrorThrown(error);
|
114
|
-
this.applicationStore.notifyError(error);
|
114
|
+
this.applicationStore.notificationService.notifyError(error);
|
115
115
|
this.loadServicesState.fail();
|
116
116
|
}
|
117
117
|
}
|