@finos/legend-application-studio 23.1.6 → 23.1.8

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.
Files changed (196) hide show
  1. package/lib/application/LegendStudio.d.ts.map +1 -1
  2. package/lib/application/LegendStudio.js +3 -14
  3. package/lib/application/LegendStudio.js.map +1 -1
  4. package/lib/application/LegendStudioDocumentation.d.ts +5 -0
  5. package/lib/application/LegendStudioDocumentation.d.ts.map +1 -1
  6. package/lib/application/LegendStudioDocumentation.js +5 -0
  7. package/lib/application/LegendStudioDocumentation.js.map +1 -1
  8. package/lib/components/editor/edit-panel/EditPanel.d.ts.map +1 -1
  9. package/lib/components/editor/edit-panel/EditPanel.js +1 -1
  10. package/lib/components/editor/edit-panel/EditPanel.js.map +1 -1
  11. package/lib/components/editor/edit-panel/FileGenerationViewer.js +2 -2
  12. package/lib/components/editor/edit-panel/FileGenerationViewer.js.map +1 -1
  13. package/lib/components/editor/edit-panel/GrammarTextEditor.d.ts.map +1 -1
  14. package/lib/components/editor/edit-panel/GrammarTextEditor.js +12 -11
  15. package/lib/components/editor/edit-panel/GrammarTextEditor.js.map +1 -1
  16. package/lib/components/editor/edit-panel/ModelImporter.js +5 -4
  17. package/lib/components/editor/edit-panel/ModelImporter.js.map +1 -1
  18. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js +3 -2
  19. package/lib/components/editor/edit-panel/connection-editor/DatabaseBuilder.js.map +1 -1
  20. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js +3 -2
  21. package/lib/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.js.map +1 -1
  22. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js +5 -3
  23. package/lib/components/editor/edit-panel/data-editor/DataElementEditor.js.map +1 -1
  24. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.d.ts.map +1 -1
  25. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js +3 -2
  26. package/lib/components/editor/edit-panel/data-editor/EmbeddedDataEditor.js.map +1 -1
  27. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
  28. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js +3 -2
  29. package/lib/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.js.map +1 -1
  30. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  31. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js +12 -11
  32. package/lib/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  33. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js +2 -2
  34. package/lib/components/editor/edit-panel/diff-editor/EntityDiffView.js.map +1 -1
  35. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js +5 -4
  36. package/lib/components/editor/edit-panel/element-generation-editor/ElementNativeView.js.map +1 -1
  37. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.d.ts.map +1 -1
  38. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js +3 -2
  39. package/lib/components/editor/edit-panel/element-generation-editor/FileSystemViewer.js.map +1 -1
  40. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
  41. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +4 -3
  42. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
  43. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.d.ts.map +1 -1
  44. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js +3 -2
  45. package/lib/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.js.map +1 -1
  46. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js +3 -3
  47. package/lib/components/editor/edit-panel/mapping-editor/MappingEditor.js.map +1 -1
  48. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts +2 -2
  49. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
  50. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js +10 -8
  51. package/lib/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.js.map +1 -1
  52. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts +6 -6
  53. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.d.ts.map +1 -1
  54. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js +8 -7
  55. package/lib/components/editor/edit-panel/mapping-editor/MappingTestEditor.js.map +1 -1
  56. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts +4 -4
  57. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.d.ts.map +1 -1
  58. package/lib/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.js.map +1 -1
  59. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
  60. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js +3 -2
  61. package/lib/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
  62. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js +3 -2
  63. package/lib/components/editor/edit-panel/service-editor/ServiceEditor.js.map +1 -1
  64. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js +6 -5
  65. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  66. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js +3 -2
  67. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  68. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.d.ts.map +1 -1
  69. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js +3 -2
  70. package/lib/components/editor/edit-panel/testable/TestAssertionEditor.js.map +1 -1
  71. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js +3 -2
  72. package/lib/components/editor/edit-panel/uml-editor/AssociationEditor.js.map +1 -1
  73. package/lib/components/editor/side-bar/Explorer.js +7 -6
  74. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  75. package/lib/components/editor/side-bar/WorkflowManager.d.ts.map +1 -1
  76. package/lib/components/editor/side-bar/WorkflowManager.js +3 -2
  77. package/lib/components/editor/side-bar/WorkflowManager.js.map +1 -1
  78. package/lib/components/editor/side-bar/testable/GlobalTestRunner.d.ts.map +1 -1
  79. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +4 -3
  80. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  81. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts +2 -1
  82. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  83. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +14 -1
  84. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
  85. package/lib/components/shared/DiffView.d.ts +2 -2
  86. package/lib/components/shared/DiffView.d.ts.map +1 -1
  87. package/lib/components/shared/DiffView.js +8 -7
  88. package/lib/components/shared/DiffView.js.map +1 -1
  89. package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
  90. package/lib/components/workspace-setup/CreateProjectModal.js +2 -1
  91. package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
  92. package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
  93. package/lib/components/workspace-setup/CreateWorkspaceModal.js +2 -1
  94. package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
  95. package/lib/components/workspace-setup/WorkspaceSetup.d.ts.map +1 -1
  96. package/lib/components/workspace-setup/WorkspaceSetup.js +2 -1
  97. package/lib/components/workspace-setup/WorkspaceSetup.js.map +1 -1
  98. package/lib/index.css +2 -2
  99. package/lib/index.css.map +1 -1
  100. package/lib/index.d.ts +1 -1
  101. package/lib/index.d.ts.map +1 -1
  102. package/lib/index.js +1 -1
  103. package/lib/index.js.map +1 -1
  104. package/lib/package.json +8 -11
  105. package/lib/stores/editor/EditorGraphState.d.ts.map +1 -1
  106. package/lib/stores/editor/EditorGraphState.js +1 -1
  107. package/lib/stores/editor/EditorGraphState.js.map +1 -1
  108. package/lib/stores/editor/EditorTabManagerState.d.ts +1 -1
  109. package/lib/stores/editor/EditorTabManagerState.d.ts.map +1 -1
  110. package/lib/stores/editor/EditorTabManagerState.js +1 -1
  111. package/lib/stores/editor/EditorTabManagerState.js.map +1 -1
  112. package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
  113. package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
  114. package/lib/stores/editor/editor-state/EditorState.d.ts +1 -1
  115. package/lib/stores/editor/editor-state/EditorState.d.ts.map +1 -1
  116. package/lib/stores/editor/editor-state/EditorState.js +1 -1
  117. package/lib/stores/editor/editor-state/EditorState.js.map +1 -1
  118. package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts +2 -2
  119. package/lib/stores/editor/editor-state/FileGenerationViewerState.d.ts.map +1 -1
  120. package/lib/stores/editor/editor-state/FileGenerationViewerState.js +7 -7
  121. package/lib/stores/editor/editor-state/FileGenerationViewerState.js.map +1 -1
  122. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts +3 -3
  123. package/lib/stores/editor/editor-state/GrammarTextEditorState.d.ts.map +1 -1
  124. package/lib/stores/editor/editor-state/GrammarTextEditorState.js.map +1 -1
  125. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +2 -2
  126. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
  127. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +50 -26
  128. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
  129. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +1 -2
  130. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
  131. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +2 -2
  132. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
  133. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts +1 -1
  134. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.d.ts.map +1 -1
  135. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js +1 -1
  136. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.js.map +1 -1
  137. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts +8 -3
  138. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.d.ts.map +1 -1
  139. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js +38 -20
  140. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.js.map +1 -1
  141. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.d.ts.map +1 -1
  142. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js +8 -2
  143. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.js.map +1 -1
  144. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +1 -2
  145. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  146. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +2 -2
  147. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  148. package/package.json +17 -20
  149. package/src/application/LegendStudio.tsx +0 -18
  150. package/src/application/LegendStudioDocumentation.ts +5 -0
  151. package/src/components/editor/edit-panel/EditPanel.tsx +4 -1
  152. package/src/components/editor/edit-panel/FileGenerationViewer.tsx +2 -2
  153. package/src/components/editor/edit-panel/GrammarTextEditor.tsx +55 -50
  154. package/src/components/editor/edit-panel/ModelImporter.tsx +5 -5
  155. package/src/components/editor/edit-panel/connection-editor/DatabaseBuilder.tsx +4 -4
  156. package/src/components/editor/edit-panel/connection-editor/RelationalDatabaseConnectionEditor.tsx +6 -6
  157. package/src/components/editor/edit-panel/data-editor/DataElementEditor.tsx +4 -4
  158. package/src/components/editor/edit-panel/data-editor/EmbeddedDataEditor.tsx +3 -2
  159. package/src/components/editor/edit-panel/data-editor/RelationalCSVDataEditor.tsx +4 -3
  160. package/src/components/editor/edit-panel/diff-editor/EntityChangeConflictEditor.tsx +22 -20
  161. package/src/components/editor/edit-panel/diff-editor/EntityDiffView.tsx +2 -2
  162. package/src/components/editor/edit-panel/element-generation-editor/ElementNativeView.tsx +5 -5
  163. package/src/components/editor/edit-panel/element-generation-editor/FileSystemViewer.tsx +3 -5
  164. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +5 -4
  165. package/src/components/editor/edit-panel/external-format-editor/DSL_ExternalFormat_SchemaSetModelGenerationEditor.tsx +4 -3
  166. package/src/components/editor/edit-panel/mapping-editor/MappingEditor.tsx +3 -3
  167. package/src/components/editor/edit-panel/mapping-editor/MappingExecutionBuilder.tsx +18 -16
  168. package/src/components/editor/edit-panel/mapping-editor/MappingTestEditor.tsx +19 -19
  169. package/src/components/editor/edit-panel/mapping-editor/MappingTestsExplorer.tsx +4 -4
  170. package/src/components/editor/edit-panel/project-configuration-editor/ProjectConfigurationEditor.tsx +5 -4
  171. package/src/components/editor/edit-panel/service-editor/ServiceEditor.tsx +2 -2
  172. package/src/components/editor/edit-panel/service-editor/ServiceExecutionQueryEditor.tsx +9 -9
  173. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestDataEditor.tsx +2 -2
  174. package/src/components/editor/edit-panel/testable/TestAssertionEditor.tsx +4 -3
  175. package/src/components/editor/edit-panel/uml-editor/AssociationEditor.tsx +2 -2
  176. package/src/components/editor/side-bar/Explorer.tsx +8 -8
  177. package/src/components/editor/side-bar/WorkflowManager.tsx +4 -4
  178. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +7 -6
  179. package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +21 -0
  180. package/src/components/shared/DiffView.tsx +14 -14
  181. package/src/components/workspace-setup/CreateProjectModal.tsx +2 -4
  182. package/src/components/workspace-setup/CreateWorkspaceModal.tsx +2 -4
  183. package/src/components/workspace-setup/WorkspaceSetup.tsx +1 -1
  184. package/src/index.ts +1 -1
  185. package/src/stores/editor/EditorGraphState.ts +2 -4
  186. package/src/stores/editor/EditorTabManagerState.ts +1 -1
  187. package/src/stores/editor/GraphEditFormModeState.ts +1 -1
  188. package/src/stores/editor/editor-state/EditorState.ts +1 -1
  189. package/src/stores/editor/editor-state/FileGenerationViewerState.ts +8 -8
  190. package/src/stores/editor/editor-state/GrammarTextEditorState.ts +3 -3
  191. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +63 -31
  192. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +1 -1
  193. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTabManagerState.ts +1 -1
  194. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingTestState.ts +54 -30
  195. package/src/stores/editor/editor-state/element-editor-state/service/ServiceEditorState.ts +8 -1
  196. package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +1 -1
@@ -80,7 +80,7 @@ import {
80
80
  ModelStore,
81
81
  reportGraphAnalytics,
82
82
  } from '@finos/legend-graph';
83
- import { ExecutionPlanState, TAB_SIZE } from '@finos/legend-application';
83
+ import { TAB_SIZE } from '@finos/legend-application';
84
84
  import { flatData_setData } from '../../../shared/modifier/STO_FlatData_GraphModifierHelper.js';
85
85
  import {
86
86
  expectedOutputMappingTestAssert_setExpectedOutput,
@@ -99,6 +99,7 @@ import {
99
99
  LambdaEditorState,
100
100
  QueryBuilderTelemetryHelper,
101
101
  QUERY_BUILDER_EVENT,
102
+ ExecutionPlanState,
102
103
  } from '@finos/legend-query-builder';
103
104
  import { MappingEditorTabState } from './MappingTabManagerState.js';
104
105
 
@@ -393,8 +394,11 @@ export enum MAPPING_TEST_EDITOR_TAB_TYPE {
393
394
  SETUP = 'Test Setup',
394
395
  RESULT = 'Test Result',
395
396
  }
396
-
397
- export class MappingTestState extends MappingEditorTabState {
397
+ /**
398
+ * TODO: Remove once migration from `MappingTest_Legacy` to `MappingTest` is complete
399
+ * @deprecated
400
+ */
401
+ export class DEPRECATED__MappingTestState extends MappingEditorTabState {
398
402
  readonly editorStore: EditorStore;
399
403
  readonly mappingEditorState: MappingEditorState;
400
404
 
@@ -446,6 +450,8 @@ export class MappingTestState extends MappingEditorTabState {
446
450
  setQueryState: action,
447
451
  setInputDataState: action,
448
452
  setAssertionState: action,
453
+ handleError: action,
454
+ handleResult: action,
449
455
  setInputDataStateBasedOnSource: action,
450
456
  updateAssertion: action,
451
457
  generatePlan: flow,
@@ -725,36 +731,11 @@ export class MappingTestState extends MappingEditorTabState {
725
731
  this.setTestRunPromise(promise);
726
732
  const result = (yield promise) as ExecutionResult;
727
733
  if (this.testRunPromise === promise) {
728
- this.testExecutionResultText = stringifyLosslessJSON(
729
- extractExecutionResultValues(result),
730
- undefined,
731
- TAB_SIZE,
732
- );
733
- let assertionMatched = false;
734
- if (
735
- this.assertionState instanceof MappingTestExpectedOutputAssertionState
736
- ) {
737
- // TODO: this logic should probably be better handled in by engine mapping test runner
738
- assertionMatched =
739
- hashObject(extractExecutionResultValues(result)) ===
740
- hashObject(parseLosslessJSON(this.assertionState.expectedResult));
741
- } else {
742
- throw new UnsupportedOperationError();
743
- }
744
- this.setResult(
745
- assertionMatched ? TEST_RESULT.PASSED : TEST_RESULT.FAILED,
746
- );
734
+ this.handleResult(result);
747
735
  }
748
736
  } catch (error) {
749
737
  assertErrorThrown(error);
750
- this.editorStore.applicationStore.logService.error(
751
- LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE),
752
- error,
753
- );
754
- if (this.testRunPromise === promise) {
755
- this.errorRunningTest = error;
756
- this.setResult(TEST_RESULT.ERROR);
757
- }
738
+ this.handleError(error, promise);
758
739
  } finally {
759
740
  this.isRunningTest = false;
760
741
  this.runTime = Date.now() - startTime;
@@ -769,6 +750,49 @@ export class MappingTestState extends MappingEditorTabState {
769
750
  }
770
751
  }
771
752
 
753
+ handleResult(result: ExecutionResult): void {
754
+ this.testExecutionResultText = stringifyLosslessJSON(
755
+ extractExecutionResultValues(result),
756
+ undefined,
757
+ TAB_SIZE,
758
+ );
759
+ let assertionMatched = false;
760
+ if (
761
+ this.assertionState instanceof MappingTestExpectedOutputAssertionState
762
+ ) {
763
+ // TODO: this logic should probably be better handled in by engine mapping test runner
764
+ assertionMatched =
765
+ hashObject(extractExecutionResultValues(result)) ===
766
+ hashObject(parseLosslessJSON(this.assertionState.expectedResult));
767
+ } else {
768
+ throw new UnsupportedOperationError();
769
+ }
770
+ this.setResult(assertionMatched ? TEST_RESULT.PASSED : TEST_RESULT.FAILED);
771
+ this.isExecutingTest = false;
772
+ this.isRunningTest = false;
773
+ }
774
+
775
+ handleError(
776
+ error: Error,
777
+ promise: Promise<ExecutionResult> | undefined,
778
+ ): void {
779
+ assertErrorThrown(error);
780
+ this.editorStore.applicationStore.logService.error(
781
+ LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE),
782
+ error,
783
+ );
784
+
785
+ if (
786
+ this.mappingEditorState.isRunningAllTests ||
787
+ this.testRunPromise === promise
788
+ ) {
789
+ this.errorRunningTest = error;
790
+ this.setResult(TEST_RESULT.ERROR);
791
+ }
792
+ this.isExecutingTest = false;
793
+ this.isRunningTest = false;
794
+ }
795
+
772
796
  *onTestStateOpen(openTab?: MAPPING_TEST_EDITOR_TAB_TYPE): GeneratorFn<void> {
773
797
  try {
774
798
  // extract test basic info out into state
@@ -38,6 +38,7 @@ import {
38
38
  PureSingleExecution,
39
39
  PureMultiExecution,
40
40
  PureExecution,
41
+ isStubbed_RawLambda,
41
42
  } from '@finos/legend-graph';
42
43
  import { ServiceTestableState } from './testable/ServiceTestableState.js';
43
44
  import { User } from '@finos/legend-server-sdlc';
@@ -54,7 +55,7 @@ export class ServiceEditorState extends ElementEditorState {
54
55
  executionState: ServiceExecutionState;
55
56
  registrationState: ServiceRegistrationState;
56
57
  testableState: ServiceTestableState;
57
- selectedTab = SERVICE_TAB.GENERAL;
58
+ selectedTab: SERVICE_TAB;
58
59
 
59
60
  constructor(editorStore: EditorStore, element: PackageableElement) {
60
61
  super(editorStore, element);
@@ -79,6 +80,12 @@ export class ServiceEditorState extends ElementEditorState {
79
80
  editorStore.sdlcServerClient.features.canCreateVersion,
80
81
  );
81
82
  this.testableState = new ServiceTestableState(editorStore, this);
83
+ const query = this.executionState.serviceExecutionParameters?.query;
84
+ // default to execution tab if query is defined
85
+ this.selectedTab =
86
+ query && !isStubbed_RawLambda(query)
87
+ ? SERVICE_TAB.EXECUTION
88
+ : SERVICE_TAB.GENERAL;
82
89
  }
83
90
 
84
91
  setSelectedTab(tab: SERVICE_TAB): void {
@@ -34,7 +34,6 @@ import {
34
34
  import {
35
35
  DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
36
36
  DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
37
- ExecutionPlanState,
38
37
  generateExtensionUrlPattern,
39
38
  generatePath,
40
39
  TAB_SIZE,
@@ -94,6 +93,7 @@ import {
94
93
  PARAMETER_SUBMIT_ACTION,
95
94
  QueryBuilderTelemetryHelper,
96
95
  QUERY_BUILDER_EVENT,
96
+ ExecutionPlanState,
97
97
  } from '@finos/legend-query-builder';
98
98
 
99
99
  enum DSL_SERVICE_PATH_PARAM_TOKEN {