@finos/legend-application-studio 27.1.1 → 27.1.3
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/__lib__/LegendStudioApplicationNavigationContext.d.ts +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/__lib__/LegendStudioDocumentation.d.ts +3 -1
- package/lib/__lib__/LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioDocumentation.js +3 -0
- package/lib/__lib__/LegendStudioDocumentation.js.map +1 -1
- package/lib/__lib__/LegendStudioTesting.d.ts +1 -0
- package/lib/__lib__/LegendStudioTesting.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioTesting.js +1 -0
- package/lib/__lib__/LegendStudioTesting.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +1 -1
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/editor/editor-group/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/FunctionEditor.js +29 -25
- package/lib/components/editor/editor-group/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/{DatabaseBuilder.d.ts → DatabaseBuilderWizard.d.ts} +4 -11
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts.map +1 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +48 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.d.ts +32 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.d.ts.map +1 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.js +99 -0
- package/lib/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.js.map +1 -0
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +1 -1
- package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +47 -12
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js +61 -11
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +24 -25
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js +3 -3
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts +0 -7
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts.map +1 -1
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +20 -77
- package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +3 -3
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +7 -1
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkflowManager.js +6 -1
- package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +3 -3
- package/lib/stores/editor/ExplorerTreeState.d.ts +4 -4
- package/lib/stores/editor/ExplorerTreeState.d.ts.map +1 -1
- package/lib/stores/editor/ExplorerTreeState.js +4 -4
- package/lib/stores/editor/ExplorerTreeState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts +12 -12
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +46 -47
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +20 -29
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +60 -141
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.d.ts +33 -0
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.d.ts.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.js +71 -0
- package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.js.map +1 -0
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +6 -2
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +39 -3
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts +3 -48
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts.map +1 -1
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js +12 -350
- package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.d.ts +5 -0
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.d.ts.map +1 -1
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js +26 -0
- package/lib/stores/editor/sidebar-state/WorkflowManagerState.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +2 -2
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/package.json +10 -10
- package/src/__lib__/LegendStudioApplicationNavigationContext.ts +1 -1
- package/src/__lib__/LegendStudioDocumentation.ts +4 -0
- package/src/__lib__/LegendStudioTesting.ts +1 -0
- package/src/application/LegendStudioApplicationConfig.ts +1 -1
- package/src/components/editor/editor-group/FunctionEditor.tsx +137 -122
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.tsx +191 -0
- package/src/components/editor/editor-group/connection-editor/DatabaseSchemaExplorer.tsx +227 -0
- package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +1 -1
- package/src/components/editor/editor-group/mapping-editor/MappingEditor.tsx +5 -2
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +68 -17
- package/src/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.tsx +137 -12
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +0 -1
- package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +354 -362
- package/src/components/editor/editor-group/uml-editor/EnumerationEditor.tsx +4 -4
- package/src/components/editor/editor-group/uml-editor/ProfileEditor.tsx +7 -7
- package/src/components/editor/editor-group/uml-editor/StereotypeSelector.tsx +4 -4
- package/src/components/editor/editor-group/uml-editor/TaggedValueEditor.tsx +4 -4
- package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +47 -211
- package/src/components/editor/side-bar/Explorer.tsx +3 -3
- package/src/components/editor/side-bar/ProjectOverview.tsx +14 -3
- package/src/components/editor/side-bar/WorkflowManager.tsx +10 -0
- package/src/stores/editor/ExplorerTreeState.ts +6 -9
- package/src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts +45 -51
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +88 -212
- package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderWizardState.ts +102 -0
- package/src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +59 -2
- package/src/stores/editor/panel-group/SQLPlaygroundPanelState.ts +13 -533
- package/src/stores/editor/sidebar-state/WorkflowManagerState.ts +47 -0
- package/src/stores/editor/utils/TestableUtils.ts +2 -2
- package/tsconfig.json +3 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +0 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +0 -133
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +0 -1
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +0 -397
@@ -31,7 +31,6 @@ import {
|
|
31
31
|
guaranteeType,
|
32
32
|
assertType,
|
33
33
|
StopWatch,
|
34
|
-
stringifyLosslessJSON,
|
35
34
|
filterByType,
|
36
35
|
} from '@finos/legend-shared';
|
37
36
|
import { ElementEditorState } from './ElementEditorState.js';
|
@@ -65,7 +64,6 @@ import {
|
|
65
64
|
getExecutionQueryFromRawLambda,
|
66
65
|
} from '@finos/legend-query-builder';
|
67
66
|
import { FunctionActivatorBuilderState } from './FunctionActivatorBuilderState.js';
|
68
|
-
import { DEFAULT_TAB_SIZE } from '@finos/legend-application';
|
69
67
|
|
70
68
|
export enum FUNCTION_EDITOR_TAB {
|
71
69
|
DEFINITION = 'DEFINITION',
|
@@ -200,11 +198,11 @@ export class FunctionParametersState extends LambdaParametersState {
|
|
200
198
|
this.functionEditorState = functionEditorState;
|
201
199
|
}
|
202
200
|
|
203
|
-
openModal(
|
204
|
-
this.parameterStates = this.build(
|
201
|
+
openModal(lambda: RawLambda): void {
|
202
|
+
this.parameterStates = this.build(lambda);
|
205
203
|
this.parameterValuesEditorState.open(
|
206
204
|
(): Promise<void> =>
|
207
|
-
flowResult(this.functionEditorState.
|
205
|
+
flowResult(this.functionEditorState.runFunc()).catch(
|
208
206
|
this.functionEditorState.editorStore.applicationStore
|
209
207
|
.alertUnhandledError,
|
210
208
|
),
|
@@ -212,9 +210,9 @@ export class FunctionParametersState extends LambdaParametersState {
|
|
212
210
|
);
|
213
211
|
}
|
214
212
|
|
215
|
-
build(
|
213
|
+
build(lambda: RawLambda): LambdaParameterState[] {
|
216
214
|
const parameters = buildLambdaVariableExpressions(
|
217
|
-
|
215
|
+
lambda,
|
218
216
|
this.functionEditorState.editorStore.graphManagerState,
|
219
217
|
)
|
220
218
|
.map((parameter) =>
|
@@ -244,32 +242,32 @@ export class FunctionEditorState extends ElementEditorState {
|
|
244
242
|
|
245
243
|
selectedTab: FUNCTION_EDITOR_TAB;
|
246
244
|
|
247
|
-
|
245
|
+
isRunningFunc = false;
|
248
246
|
isGeneratingPlan = false;
|
249
|
-
|
247
|
+
executionResult?: ExecutionResult | undefined; // NOTE: stored as lossless JSON string
|
250
248
|
executionPlanState: ExecutionPlanState;
|
251
249
|
parametersState: FunctionParametersState;
|
252
|
-
|
250
|
+
funcRunPromise: Promise<ExecutionResult> | undefined = undefined;
|
253
251
|
|
254
252
|
constructor(editorStore: EditorStore, element: PackageableElement) {
|
255
253
|
super(editorStore, element);
|
256
254
|
|
257
255
|
makeObservable(this, {
|
258
256
|
selectedTab: observable,
|
259
|
-
|
257
|
+
isRunningFunc: observable,
|
260
258
|
isGeneratingPlan: observable,
|
261
|
-
|
259
|
+
executionResult: observable,
|
262
260
|
executionPlanState: observable,
|
263
261
|
label: override,
|
264
262
|
functionElement: computed,
|
265
263
|
setSelectedTab: action,
|
266
264
|
reprocess: action,
|
267
|
-
|
268
|
-
|
269
|
-
|
265
|
+
setExecutionResult: action,
|
266
|
+
setIsRunningFunc: action,
|
267
|
+
runFunc: flow,
|
270
268
|
generatePlan: flow,
|
271
|
-
|
272
|
-
|
269
|
+
handleRunFunc: flow,
|
270
|
+
cancelFuncRun: flow,
|
273
271
|
});
|
274
272
|
|
275
273
|
assertType(
|
@@ -346,21 +344,19 @@ export class FunctionEditorState extends ElementEditorState {
|
|
346
344
|
return functionEditorState;
|
347
345
|
}
|
348
346
|
|
349
|
-
|
350
|
-
this.
|
347
|
+
setIsRunningFunc(val: boolean): void {
|
348
|
+
this.isRunningFunc = val;
|
351
349
|
}
|
352
350
|
|
353
|
-
|
354
|
-
this.
|
351
|
+
setExecutionResult = (executionResult: ExecutionResult | undefined): void => {
|
352
|
+
this.executionResult = executionResult;
|
355
353
|
};
|
356
354
|
|
357
|
-
|
358
|
-
|
359
|
-
): void => {
|
360
|
-
this.queryRunPromise = promise;
|
355
|
+
setFuncRunPromise = (promise: Promise<ExecutionResult> | undefined): void => {
|
356
|
+
this.funcRunPromise = promise;
|
361
357
|
};
|
362
358
|
|
363
|
-
get
|
359
|
+
get bodyExpressionSequence(): RawLambda {
|
364
360
|
return new RawLambda(
|
365
361
|
this.functionElement.parameters.map((parameter) =>
|
366
362
|
this.editorStore.graphManagerState.graphManager.serializeRawValueSpecification(
|
@@ -376,7 +372,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
376
372
|
return;
|
377
373
|
}
|
378
374
|
try {
|
379
|
-
const
|
375
|
+
const expressionSequence = this.bodyExpressionSequence;
|
380
376
|
this.isGeneratingPlan = true;
|
381
377
|
let rawPlan: RawExecutionPlan;
|
382
378
|
|
@@ -391,7 +387,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
391
387
|
);
|
392
388
|
const debugResult =
|
393
389
|
(yield this.editorStore.graphManagerState.graphManager.debugExecutionPlanGeneration(
|
394
|
-
|
390
|
+
expressionSequence,
|
395
391
|
undefined,
|
396
392
|
undefined,
|
397
393
|
this.editorStore.graphManagerState.graph,
|
@@ -405,7 +401,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
405
401
|
);
|
406
402
|
rawPlan =
|
407
403
|
(yield this.editorStore.graphManagerState.graphManager.generateExecutionPlan(
|
408
|
-
|
404
|
+
expressionSequence,
|
409
405
|
undefined,
|
410
406
|
undefined,
|
411
407
|
this.editorStore.graphManagerState.graph,
|
@@ -421,7 +417,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
421
417
|
rawPlan,
|
422
418
|
this.editorStore.graphManagerState.graph,
|
423
419
|
);
|
424
|
-
this.executionPlanState.
|
420
|
+
this.executionPlanState.initialize(plan);
|
425
421
|
} catch {
|
426
422
|
// do nothing
|
427
423
|
}
|
@@ -456,21 +452,21 @@ export class FunctionEditorState extends ElementEditorState {
|
|
456
452
|
}
|
457
453
|
}
|
458
454
|
|
459
|
-
*
|
460
|
-
if (this.
|
455
|
+
*handleRunFunc(): GeneratorFn<void> {
|
456
|
+
if (this.isRunningFunc) {
|
461
457
|
return;
|
462
458
|
}
|
463
|
-
const
|
464
|
-
const parameters = (
|
459
|
+
const expressionSequence = this.bodyExpressionSequence;
|
460
|
+
const parameters = (expressionSequence.parameters ?? []) as object[];
|
465
461
|
if (parameters.length) {
|
466
|
-
this.parametersState.openModal(
|
462
|
+
this.parametersState.openModal(expressionSequence);
|
467
463
|
} else {
|
468
|
-
this.
|
464
|
+
this.runFunc();
|
469
465
|
}
|
470
466
|
}
|
471
467
|
|
472
|
-
*
|
473
|
-
if (this.
|
468
|
+
*runFunc(): GeneratorFn<void> {
|
469
|
+
if (this.isRunningFunc) {
|
474
470
|
return;
|
475
471
|
}
|
476
472
|
|
@@ -480,14 +476,14 @@ export class FunctionEditorState extends ElementEditorState {
|
|
480
476
|
|
481
477
|
let promise;
|
482
478
|
try {
|
483
|
-
this.
|
479
|
+
this.isRunningFunc = true;
|
484
480
|
const stopWatch = new StopWatch();
|
485
481
|
const report = reportGraphAnalytics(
|
486
482
|
this.editorStore.graphManagerState.graph,
|
487
483
|
);
|
488
484
|
promise = this.editorStore.graphManagerState.graphManager.runQuery(
|
489
485
|
getExecutionQueryFromRawLambda(
|
490
|
-
this.
|
486
|
+
this.bodyExpressionSequence,
|
491
487
|
this.parametersState.parameterStates,
|
492
488
|
this.editorStore.graphManagerState,
|
493
489
|
),
|
@@ -495,7 +491,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
495
491
|
undefined,
|
496
492
|
this.editorStore.graphManagerState.graph,
|
497
493
|
{
|
498
|
-
useLosslessParse:
|
494
|
+
useLosslessParse: false,
|
499
495
|
parameterValues: buildExecutionParameterValues(
|
500
496
|
this.parametersState.parameterStates,
|
501
497
|
this.editorStore.graphManagerState,
|
@@ -503,12 +499,10 @@ export class FunctionEditorState extends ElementEditorState {
|
|
503
499
|
},
|
504
500
|
report,
|
505
501
|
);
|
506
|
-
this.
|
502
|
+
this.setFuncRunPromise(promise);
|
507
503
|
const result = (yield promise) as ExecutionResult;
|
508
|
-
if (this.
|
509
|
-
this.
|
510
|
-
stringifyLosslessJSON(result, undefined, DEFAULT_TAB_SIZE),
|
511
|
-
);
|
504
|
+
if (this.funcRunPromise === promise) {
|
505
|
+
this.setExecutionResult(result);
|
512
506
|
this.parametersState.setParameters([]);
|
513
507
|
// report
|
514
508
|
report.timings =
|
@@ -525,7 +519,7 @@ export class FunctionEditorState extends ElementEditorState {
|
|
525
519
|
// When user cancels the query by calling the cancelQuery api, it will throw an execution failure error.
|
526
520
|
// For now, we don't want to notify users about this failure. Therefore we check to ensure the promise is still the same one.
|
527
521
|
// When cancelled the query, we set the queryRunPromise as undefined.
|
528
|
-
if (this.
|
522
|
+
if (this.funcRunPromise === promise) {
|
529
523
|
assertErrorThrown(error);
|
530
524
|
this.editorStore.applicationStore.logService.error(
|
531
525
|
LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE),
|
@@ -536,13 +530,13 @@ export class FunctionEditorState extends ElementEditorState {
|
|
536
530
|
);
|
537
531
|
}
|
538
532
|
} finally {
|
539
|
-
this.
|
533
|
+
this.isRunningFunc = false;
|
540
534
|
}
|
541
535
|
}
|
542
536
|
|
543
|
-
*
|
544
|
-
this.
|
545
|
-
this.
|
537
|
+
*cancelFuncRun(): GeneratorFn<void> {
|
538
|
+
this.setIsRunningFunc(false);
|
539
|
+
this.setFuncRunPromise(undefined);
|
546
540
|
try {
|
547
541
|
yield this.editorStore.graphManagerState.graphManager.cancelUserExecutions(
|
548
542
|
true,
|