@finos/legend-application-query 10.0.2 → 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 +5 -5
- 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 +6 -19
- package/lib/stores/LegendQueryBaseStore.js.map +1 -1
- package/lib/stores/LegendQueryTelemetry.d.ts +1 -1
- package/lib/stores/LegendQueryTelemetry.d.ts.map +1 -1
- package/lib/stores/LoadProjectServiceQuerySetupStore.js +4 -4
- package/lib/stores/LoadProjectServiceQuerySetupStore.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +23 -26
- 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 +13 -13
- 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 +8 -21
- package/src/stores/LegendQueryTelemetry.ts +1 -1
- package/src/stores/LoadProjectServiceQuerySetupStore.ts +4 -4
- package/src/stores/QueryEditorStore.ts +26 -32
- package/src/stores/QueryProductionizerSetupStore.ts +5 -5
- package/src/stores/QuerySetupStore.ts +4 -4
- package/src/stores/UpdateExistingServiceQuerySetupStore.ts +4 -4
@@ -82,7 +82,7 @@ export class EditExistingQuerySetupStore extends BaseQuerySetupStore {
|
|
82
82
|
this.currentQueryInfo = queryInfo;
|
83
83
|
} catch (error) {
|
84
84
|
assertErrorThrown(error);
|
85
|
-
this.applicationStore.notifyError(error);
|
85
|
+
this.applicationStore.notificationService.notifyError(error);
|
86
86
|
} finally {
|
87
87
|
this.loadQueryState.reset();
|
88
88
|
}
|
@@ -109,7 +109,7 @@ export class EditExistingQuerySetupStore extends BaseQuerySetupStore {
|
|
109
109
|
this.loadQueriesState.pass();
|
110
110
|
} catch (error) {
|
111
111
|
assertErrorThrown(error);
|
112
|
-
this.applicationStore.notifyError(error);
|
112
|
+
this.applicationStore.notificationService.notifyError(error);
|
113
113
|
this.loadQueriesState.fail();
|
114
114
|
}
|
115
115
|
}
|
@@ -63,49 +63,36 @@ export class LegendQueryBaseStore {
|
|
63
63
|
|
64
64
|
*initialize(): GeneratorFn<void> {
|
65
65
|
if (!this.initState.isInInitialState) {
|
66
|
-
this.applicationStore.notifyIllegalState(
|
66
|
+
this.applicationStore.notificationService.notifyIllegalState(
|
67
|
+
'Base store is re-initialized',
|
68
|
+
);
|
67
69
|
return;
|
68
70
|
}
|
69
71
|
this.initState.inProgress();
|
70
72
|
|
71
73
|
try {
|
72
|
-
this.applicationStore.setCurrentUser(
|
74
|
+
this.applicationStore.identityService.setCurrentUser(
|
73
75
|
(yield new NetworkClient().get(
|
74
76
|
`${this.applicationStore.config.engineServerUrl}/server/v1/currentUser`,
|
75
77
|
)) as string,
|
76
78
|
);
|
77
79
|
} catch (error) {
|
78
80
|
assertErrorThrown(error);
|
79
|
-
this.applicationStore.
|
81
|
+
this.applicationStore.logService.error(
|
80
82
|
LogEvent.create(
|
81
83
|
APPLICATION_EVENT.APPLICATION_IDENTITY_AUTO_FETCH__FAILURE,
|
82
84
|
),
|
83
85
|
error,
|
84
86
|
);
|
85
|
-
this.applicationStore.notifyWarning(error.message);
|
87
|
+
this.applicationStore.notificationService.notifyWarning(error.message);
|
86
88
|
}
|
87
89
|
|
88
90
|
// setup telemetry service
|
89
|
-
this.applicationStore.telemetryService.
|
90
|
-
this.applicationStore.currentUser,
|
91
|
-
);
|
91
|
+
this.applicationStore.telemetryService.setup();
|
92
92
|
|
93
93
|
ApplicationTelemetry.logEvent_ApplicationInitializationSucceeded(
|
94
94
|
this.applicationStore.telemetryService,
|
95
|
-
|
96
|
-
application: {
|
97
|
-
name: this.applicationStore.config.appName,
|
98
|
-
version: this.applicationStore.config.appVersion,
|
99
|
-
env: this.applicationStore.config.env,
|
100
|
-
},
|
101
|
-
browser: {
|
102
|
-
userAgent: navigator.userAgent,
|
103
|
-
},
|
104
|
-
screen: {
|
105
|
-
height: window.screen.height,
|
106
|
-
width: window.screen.width,
|
107
|
-
},
|
108
|
-
},
|
95
|
+
this.applicationStore,
|
109
96
|
);
|
110
97
|
|
111
98
|
this.initState.complete();
|
@@ -14,7 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import type { TelemetryService } from '@finos/legend-
|
17
|
+
import type { TelemetryService } from '@finos/legend-application';
|
18
18
|
import { LEGEND_QUERY_APP_EVENT } from './LegendQueryAppEvent.js';
|
19
19
|
|
20
20
|
type Query_TelemetryData = {
|
@@ -55,7 +55,7 @@ export class LoadProjectServiceQuerySetupStore extends BaseQuerySetupStore {
|
|
55
55
|
this.loadProjectsState.pass();
|
56
56
|
} catch (error) {
|
57
57
|
assertErrorThrown(error);
|
58
|
-
this.applicationStore.notifyError(error);
|
58
|
+
this.applicationStore.notificationService.notifyError(error);
|
59
59
|
this.loadProjectsState.fail();
|
60
60
|
}
|
61
61
|
}
|
@@ -67,19 +67,19 @@ export class LoadProjectServiceQuerySetupStore extends BaseQuerySetupStore {
|
|
67
67
|
(entry) => entry.sdlcProjectIDPrefix === projectIDPrefix,
|
68
68
|
);
|
69
69
|
if (matchingSDLCEntry) {
|
70
|
-
this.applicationStore.setBlockingAlert({
|
70
|
+
this.applicationStore.alertService.setBlockingAlert({
|
71
71
|
message: `Loading service project...`,
|
72
72
|
prompt: 'Please do not close the application',
|
73
73
|
showLoading: true,
|
74
74
|
});
|
75
|
-
this.applicationStore.navigator.goToAddress(
|
75
|
+
this.applicationStore.navigationService.navigator.goToAddress(
|
76
76
|
EXTERNAL_APPLICATION_NAVIGATION__generateStudioUpdateProjectServiceQueryUrl(
|
77
77
|
matchingSDLCEntry.url,
|
78
78
|
project.projectId,
|
79
79
|
),
|
80
80
|
);
|
81
81
|
} else {
|
82
|
-
this.applicationStore.notifyWarning(
|
82
|
+
this.applicationStore.notificationService.notifyWarning(
|
83
83
|
`Can't find the corresponding SDLC instance to load project '${project.projectId}'`,
|
84
84
|
);
|
85
85
|
}
|
@@ -44,7 +44,6 @@ import {
|
|
44
44
|
PackageableElementExplicitReference,
|
45
45
|
RuntimePointer,
|
46
46
|
GRAPH_MANAGER_EVENT,
|
47
|
-
GraphManagerTelemetry,
|
48
47
|
extractElementNameFromPath,
|
49
48
|
QuerySearchSpecification,
|
50
49
|
Mapping,
|
@@ -76,6 +75,7 @@ import {
|
|
76
75
|
TAB_SIZE,
|
77
76
|
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
78
77
|
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
78
|
+
ApplicationTelemetry,
|
79
79
|
} from '@finos/legend-application';
|
80
80
|
import type { LegendQueryPluginManager } from '../application/LegendQueryPluginManager.js';
|
81
81
|
import { LegendQueryEventService } from './LegendQueryEventService.js';
|
@@ -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
|
}
|
@@ -534,26 +534,20 @@ export abstract class QueryEditorStore {
|
|
534
534
|
// report
|
535
535
|
stopWatch.record(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS);
|
536
536
|
const graphBuilderReportData = {
|
537
|
-
timings:
|
538
|
-
|
539
|
-
stopWatch.getRecord(
|
540
|
-
GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH_SYSTEM__SUCCESS,
|
541
|
-
),
|
542
|
-
[GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS]: stopWatch.getRecord(
|
543
|
-
GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS,
|
544
|
-
),
|
545
|
-
},
|
537
|
+
timings:
|
538
|
+
this.applicationStore.timeService.finalizeTimingsRecord(stopWatch),
|
546
539
|
dependencies: dependency_buildReport,
|
547
540
|
dependenciesCount:
|
548
541
|
this.graphManagerState.graph.dependencyManager.numberOfDependencies,
|
549
542
|
graph: graph_buildReport,
|
550
543
|
};
|
551
|
-
|
552
|
-
|
544
|
+
ApplicationTelemetry.logEvent_GraphInitializationSucceeded(
|
545
|
+
this.applicationStore.telemetryService,
|
553
546
|
graphBuilderReportData,
|
554
547
|
);
|
555
|
-
|
556
|
-
|
548
|
+
|
549
|
+
this.applicationStore.logService.info(
|
550
|
+
LogEvent.create(GRAPH_MANAGER_EVENT.INITIALIZE_GRAPH__SUCCESS),
|
557
551
|
graphBuilderReportData,
|
558
552
|
);
|
559
553
|
}
|
@@ -597,7 +591,7 @@ export class MappingQueryCreatorStore extends QueryEditorStore {
|
|
597
591
|
this.applicationStore,
|
598
592
|
this.graphManagerState,
|
599
593
|
(val: Mapping) => {
|
600
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
594
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
601
595
|
generateMappingQueryCreatorRoute(
|
602
596
|
this.groupId,
|
603
597
|
this.artifactId,
|
@@ -609,7 +603,7 @@ export class MappingQueryCreatorStore extends QueryEditorStore {
|
|
609
603
|
);
|
610
604
|
},
|
611
605
|
(val: Runtime) => {
|
612
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
606
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
613
607
|
generateMappingQueryCreatorRoute(
|
614
608
|
this.groupId,
|
615
609
|
this.artifactId,
|
@@ -694,7 +688,7 @@ export class ServiceQueryCreatorStore extends QueryEditorStore {
|
|
694
688
|
this.graphManagerState.usableServices,
|
695
689
|
this.executionKey,
|
696
690
|
(val: Service): void => {
|
697
|
-
this.applicationStore.navigator.goToLocation(
|
691
|
+
this.applicationStore.navigationService.navigator.goToLocation(
|
698
692
|
generateServiceQueryCreatorRoute(
|
699
693
|
this.groupId,
|
700
694
|
this.artifactId,
|
@@ -704,7 +698,7 @@ export class ServiceQueryCreatorStore extends QueryEditorStore {
|
|
704
698
|
);
|
705
699
|
},
|
706
700
|
(val: ServiceExecutionContext): void => {
|
707
|
-
this.applicationStore.navigator.updateCurrentLocation(
|
701
|
+
this.applicationStore.navigationService.navigator.updateCurrentLocation(
|
708
702
|
generateServiceQueryCreatorRoute(
|
709
703
|
this.groupId,
|
710
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
|
}
|