@finos/legend-application-studio 26.1.1 → 26.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.
Files changed (188) hide show
  1. package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts +2 -1
  2. package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
  3. package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -0
  4. package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
  5. package/lib/__lib__/STO_Relational_LegendStudioCommand.d.ts +21 -0
  6. package/lib/__lib__/STO_Relational_LegendStudioCommand.d.ts.map +1 -0
  7. package/lib/__lib__/STO_Relational_LegendStudioCommand.js +28 -0
  8. package/lib/__lib__/STO_Relational_LegendStudioCommand.js.map +1 -0
  9. package/lib/application/LegendStudioApplicationConfig.d.ts +5 -0
  10. package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
  11. package/lib/application/LegendStudioApplicationConfig.js +6 -0
  12. package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
  13. package/lib/components/ElementIconUtils.d.ts +13 -2
  14. package/lib/components/ElementIconUtils.d.ts.map +1 -1
  15. package/lib/components/ElementIconUtils.js +15 -6
  16. package/lib/components/ElementIconUtils.js.map +1 -1
  17. package/lib/components/editor/Editor.d.ts.map +1 -1
  18. package/lib/components/editor/Editor.js +2 -1
  19. package/lib/components/editor/Editor.js.map +1 -1
  20. package/lib/components/editor/QuickInput.d.ts +19 -0
  21. package/lib/components/editor/QuickInput.d.ts.map +1 -0
  22. package/lib/components/editor/QuickInput.js +51 -0
  23. package/lib/components/editor/QuickInput.js.map +1 -0
  24. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.d.ts.map +1 -1
  25. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js +5 -1
  26. package/lib/components/editor/__test-utils__/EditorComponentTestUtils.js.map +1 -1
  27. package/lib/components/editor/command-center/ProjectSearchCommand.js +3 -3
  28. package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
  29. package/lib/components/editor/editor-group/EditorGroup.d.ts.map +1 -1
  30. package/lib/components/editor/editor-group/EditorGroup.js +11 -4
  31. package/lib/components/editor/editor-group/EditorGroup.js.map +1 -1
  32. package/lib/components/editor/editor-group/FunctionEditor.d.ts.map +1 -1
  33. package/lib/components/editor/editor-group/FunctionEditor.js +30 -8
  34. package/lib/components/editor/editor-group/FunctionEditor.js.map +1 -1
  35. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js +1 -1
  36. package/lib/components/editor/editor-group/GenerationSpecificationEditor.js.map +1 -1
  37. package/lib/components/editor/editor-group/GrammarTextEditor.d.ts.map +1 -1
  38. package/lib/components/editor/editor-group/GrammarTextEditor.js +99 -100
  39. package/lib/components/editor/editor-group/GrammarTextEditor.js.map +1 -1
  40. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.d.ts.map +1 -1
  41. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.js +5 -5
  42. package/lib/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.js.map +1 -1
  43. package/lib/components/editor/editor-group/RuntimeEditor.js +1 -1
  44. package/lib/components/editor/editor-group/RuntimeEditor.js.map +1 -1
  45. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.d.ts.map +1 -1
  46. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js +27 -19
  47. package/lib/components/editor/editor-group/connection-editor/DatabaseBuilder.js.map +1 -1
  48. package/lib/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.js +2 -2
  49. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.d.ts.map +1 -1
  50. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js +5 -5
  51. package/lib/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.js.map +1 -1
  52. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js +2 -2
  53. package/lib/components/editor/editor-group/element-generation-editor/FileGenerationEditor.js.map +1 -1
  54. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js +1 -1
  55. package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.js.map +1 -1
  56. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js +1 -1
  57. package/lib/components/editor/editor-group/mapping-editor/ClassMappingEditor.js.map +1 -1
  58. package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js +2 -2
  59. package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js.map +1 -1
  60. package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.js +1 -1
  61. package/lib/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.js.map +1 -1
  62. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.d.ts.map +1 -1
  63. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +4 -6
  64. package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js.map +1 -1
  65. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +2 -2
  66. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
  67. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.d.ts.map +1 -1
  68. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js +2 -2
  69. package/lib/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.js.map +1 -1
  70. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js +2 -2
  71. package/lib/components/editor/editor-group/uml-editor/AssociationEditor.js.map +1 -1
  72. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +4 -4
  73. package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
  74. package/lib/components/editor/panel-group/PanelGroup.d.ts +2 -0
  75. package/lib/components/editor/panel-group/PanelGroup.d.ts.map +1 -1
  76. package/lib/components/editor/panel-group/PanelGroup.js +18 -3
  77. package/lib/components/editor/panel-group/PanelGroup.js.map +1 -1
  78. package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts +26 -0
  79. package/lib/components/editor/panel-group/SQLPlaygroundPanel.d.ts.map +1 -0
  80. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js +339 -0
  81. package/lib/components/editor/panel-group/SQLPlaygroundPanel.js.map +1 -0
  82. package/lib/components/editor/side-bar/Explorer.js +5 -6
  83. package/lib/components/editor/side-bar/Explorer.js.map +1 -1
  84. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js +1 -1
  85. package/lib/components/editor/side-bar/testable/GlobalTestRunner.js.map +1 -1
  86. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.d.ts.map +1 -1
  87. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js +5 -1
  88. package/lib/components/extensions/Core_LegendStudioApplicationPlugin.js.map +1 -1
  89. package/lib/index.css +2 -2
  90. package/lib/index.css.map +1 -1
  91. package/lib/package.json +2 -2
  92. package/lib/stores/editor/EditorConfig.d.ts +2 -1
  93. package/lib/stores/editor/EditorConfig.d.ts.map +1 -1
  94. package/lib/stores/editor/EditorConfig.js +1 -0
  95. package/lib/stores/editor/EditorConfig.js.map +1 -1
  96. package/lib/stores/editor/EditorStore.d.ts +8 -2
  97. package/lib/stores/editor/EditorStore.d.ts.map +1 -1
  98. package/lib/stores/editor/EditorStore.js +19 -4
  99. package/lib/stores/editor/EditorStore.js.map +1 -1
  100. package/lib/stores/editor/GraphEditFormModeState.d.ts.map +1 -1
  101. package/lib/stores/editor/GraphEditFormModeState.js +1 -0
  102. package/lib/stores/editor/GraphEditFormModeState.js.map +1 -1
  103. package/lib/stores/editor/QuickInputState.d.ts +28 -0
  104. package/lib/stores/editor/QuickInputState.d.ts.map +1 -0
  105. package/lib/stores/editor/QuickInputState.js +17 -0
  106. package/lib/stores/editor/QuickInputState.js.map +1 -0
  107. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts +22 -2
  108. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
  109. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +181 -4
  110. package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
  111. package/lib/stores/editor/editor-state/element-editor-state/ProtocolValueBuilderState.d.ts.map +1 -1
  112. package/lib/stores/editor/editor-state/element-editor-state/ProtocolValueBuilderState.js +6 -2
  113. package/lib/stores/editor/editor-state/element-editor-state/ProtocolValueBuilderState.js.map +1 -1
  114. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts +19 -18
  115. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.d.ts.map +1 -1
  116. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js +167 -157
  117. package/lib/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.js.map +1 -1
  118. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts +3 -3
  119. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.d.ts.map +1 -1
  120. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js +2 -2
  121. package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.js.map +1 -1
  122. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +8 -9
  123. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
  124. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +9 -14
  125. package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
  126. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts +4 -4
  127. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.d.ts.map +1 -1
  128. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js +7 -8
  129. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.js.map +1 -1
  130. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts +1 -1
  131. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts.map +1 -1
  132. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js +3 -1
  133. package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
  134. package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts +82 -0
  135. package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.d.ts.map +1 -0
  136. package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js +328 -0
  137. package/lib/stores/editor/panel-group/SQLPlaygroundPanelState.js.map +1 -0
  138. package/lib/stores/graph-modifier/DSL_Service_GraphModifierHelper.d.ts +1 -1
  139. package/lib/stores/graph-modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -1
  140. package/lib/stores/graph-modifier/DSL_Service_GraphModifierHelper.js +8 -2
  141. package/lib/stores/graph-modifier/DSL_Service_GraphModifierHelper.js.map +1 -1
  142. package/package.json +12 -12
  143. package/src/__lib__/LegendStudioApplicationNavigationContext.ts +2 -0
  144. package/src/__lib__/STO_Relational_LegendStudioCommand.ts +30 -0
  145. package/src/application/LegendStudioApplicationConfig.ts +7 -0
  146. package/src/components/ElementIconUtils.tsx +23 -8
  147. package/src/components/editor/Editor.tsx +2 -0
  148. package/src/components/editor/QuickInput.tsx +91 -0
  149. package/src/components/editor/__test-utils__/EditorComponentTestUtils.tsx +5 -1
  150. package/src/components/editor/command-center/ProjectSearchCommand.tsx +4 -4
  151. package/src/components/editor/editor-group/EditorGroup.tsx +41 -1
  152. package/src/components/editor/editor-group/FunctionEditor.tsx +145 -5
  153. package/src/components/editor/editor-group/GenerationSpecificationEditor.tsx +1 -1
  154. package/src/components/editor/editor-group/GrammarTextEditor.tsx +134 -131
  155. package/src/components/editor/editor-group/INTERNAL__UnknownFunctionActivatorEdtior.tsx +26 -13
  156. package/src/components/editor/editor-group/RuntimeEditor.tsx +1 -1
  157. package/src/components/editor/editor-group/connection-editor/DatabaseBuilder.tsx +193 -150
  158. package/src/components/editor/editor-group/connection-editor/RelationalDatabaseConnectionEditor.tsx +2 -2
  159. package/src/components/editor/editor-group/diff-editor/EntityChangeConflictEditor.tsx +6 -5
  160. package/src/components/editor/editor-group/element-generation-editor/FileGenerationEditor.tsx +1 -1
  161. package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_BindingElementEditor.tsx +1 -1
  162. package/src/components/editor/editor-group/mapping-editor/ClassMappingEditor.tsx +1 -1
  163. package/src/components/editor/editor-group/mapping-editor/MappingExplorer.tsx +2 -2
  164. package/src/components/editor/editor-group/mapping-editor/PropertyMappingsEditor.tsx +1 -1
  165. package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +8 -10
  166. package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +2 -2
  167. package/src/components/editor/editor-group/service-editor/testable/ServiceTestableEditor.tsx +9 -3
  168. package/src/components/editor/editor-group/uml-editor/AssociationEditor.tsx +2 -2
  169. package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +4 -4
  170. package/src/components/editor/panel-group/PanelGroup.tsx +35 -3
  171. package/src/components/editor/panel-group/SQLPlaygroundPanel.tsx +730 -0
  172. package/src/components/editor/side-bar/Explorer.tsx +5 -5
  173. package/src/components/editor/side-bar/testable/GlobalTestRunner.tsx +1 -1
  174. package/src/components/extensions/Core_LegendStudioApplicationPlugin.tsx +9 -3
  175. package/src/stores/editor/EditorConfig.ts +1 -0
  176. package/src/stores/editor/EditorStore.ts +23 -4
  177. package/src/stores/editor/GraphEditFormModeState.ts +1 -0
  178. package/src/stores/editor/QuickInputState.ts +24 -0
  179. package/src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts +317 -3
  180. package/src/stores/editor/editor-state/element-editor-state/ProtocolValueBuilderState.ts +11 -2
  181. package/src/stores/editor/editor-state/element-editor-state/connection/DatabaseBuilderState.ts +262 -249
  182. package/src/stores/editor/editor-state/element-editor-state/mapping/MappingElementDecorator.ts +5 -5
  183. package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +19 -23
  184. package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestDataState.ts +9 -9
  185. package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +4 -2
  186. package/src/stores/editor/panel-group/SQLPlaygroundPanelState.ts +485 -0
  187. package/src/stores/graph-modifier/DSL_Service_GraphModifierHelper.ts +13 -1
  188. package/tsconfig.json +5 -0
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { TreeData, TreeNodeData } from '@finos/legend-art';
17
+ import { type GeneratorFn } from '@finos/legend-shared';
18
+ import { editor as monacoEditorAPI } from 'monaco-editor';
19
+ import { type Schema, type Table, type Database, type PackageableConnection, Column } from '@finos/legend-graph';
20
+ import type { EditorStore } from '../EditorStore.js';
21
+ import type { CommandRegistrar } from '@finos/legend-application';
22
+ export declare abstract class DatabaseSchemaExplorerTreeNodeData implements TreeNodeData {
23
+ isOpen?: boolean | undefined;
24
+ id: string;
25
+ label: string;
26
+ parentId?: string | undefined;
27
+ childrenIds?: string[] | undefined;
28
+ constructor(id: string, label: string, parentId: string | undefined);
29
+ }
30
+ export declare class DatabaseSchemaExplorerTreeSchemaNodeData extends DatabaseSchemaExplorerTreeNodeData {
31
+ schema: Schema;
32
+ constructor(id: string, schema: Schema);
33
+ }
34
+ export declare class DatabaseSchemaExplorerTreeTableNodeData extends DatabaseSchemaExplorerTreeNodeData {
35
+ parentId: string;
36
+ owner: Schema;
37
+ table: Table;
38
+ constructor(id: string, parentId: string, owner: Schema, table: Table);
39
+ }
40
+ export declare class DatabaseSchemaExplorerTreeColumnNodeData extends DatabaseSchemaExplorerTreeNodeData {
41
+ parentId: string;
42
+ owner: Table;
43
+ column: Column;
44
+ constructor(id: string, parentId: string, owner: Table, column: Column);
45
+ }
46
+ export interface DatabaseSchemaExplorerTreeData extends TreeData<DatabaseSchemaExplorerTreeNodeData> {
47
+ database: Database;
48
+ }
49
+ export declare class SQLPlaygroundPanelState implements CommandRegistrar {
50
+ readonly editorStore: EditorStore;
51
+ isFetchingSchema: boolean;
52
+ isExecutingRawSQL: boolean;
53
+ connection?: PackageableConnection | undefined;
54
+ treeData?: DatabaseSchemaExplorerTreeData | undefined;
55
+ readonly sqlEditorTextModel: monacoEditorAPI.ITextModel;
56
+ sqlEditor?: monacoEditorAPI.IStandaloneCodeEditor | undefined;
57
+ sqlEditorViewState?: monacoEditorAPI.ICodeEditorViewState | undefined;
58
+ sqlText: string;
59
+ sqlExecutionResult?: string | undefined;
60
+ constructor(editorStore: EditorStore);
61
+ setTreeData(val?: DatabaseSchemaExplorerTreeData): void;
62
+ setConnection(val: PackageableConnection | undefined): void;
63
+ setSQLText(val: string): void;
64
+ setSQLEditor(val: monacoEditorAPI.IStandaloneCodeEditor | undefined): void;
65
+ resetSQL(): void;
66
+ setSQLEditorViewState(val: monacoEditorAPI.ICodeEditorViewState | undefined): void;
67
+ registerCommands(): void;
68
+ deregisterCommands(): void;
69
+ onNodeSelect(node: DatabaseSchemaExplorerTreeNodeData, treeData: DatabaseSchemaExplorerTreeData): GeneratorFn<void>;
70
+ getChildNodes(node: DatabaseSchemaExplorerTreeNodeData, treeData: DatabaseSchemaExplorerTreeData): DatabaseSchemaExplorerTreeNodeData[] | undefined;
71
+ fetchDatabaseMetadata(): GeneratorFn<void>;
72
+ fetchSchemaMetadata(schemaNode: DatabaseSchemaExplorerTreeSchemaNodeData, treeData: DatabaseSchemaExplorerTreeData): GeneratorFn<void>;
73
+ fetchTableMetadata(tableNode: DatabaseSchemaExplorerTreeTableNodeData, treeData: DatabaseSchemaExplorerTreeData): GeneratorFn<void>;
74
+ /**
75
+ * This will build the intermediate database from the specified
76
+ * schema exploration input; this information can be further used
77
+ * to enrich the explorer tree
78
+ */
79
+ private buildIntermediateDatabase;
80
+ executeRawSQL(): GeneratorFn<void>;
81
+ }
82
+ //# sourceMappingURL=SQLPlaygroundPanelState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SQLPlaygroundPanelState.d.ts","sourceRoot":"","sources":["../../../../src/stores/editor/panel-group/SQLPlaygroundPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EACL,KAAK,WAAW,EASjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EACL,KAAK,MAAM,EACX,KAAK,KAAK,EACV,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAI1B,MAAM,EAIP,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,8BAAsB,kCACpB,YAAW,YAAY;IAEvB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,C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C;IACtE,OAAO,SAAoB;IAC3B,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE5B,WAAW,EAAE,WAAW;IA8BpC,WAAW,CAAC,GAAG,CAAC,EAAE,8BAA8B,GAAG,IAAI;IAIvD,aAAa,CAAC,GAAG,EAAE,qBAAqB,GAAG,SAAS,GAAG,IAAI;IAK3D,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B,YAAY,CAAC,GAAG,EAAE,eAAe,CAAC,qBAAqB,GAAG,SAAS,GAAG,IAAI;IAW1E,QAAQ,IAAI,IAAI;IAMhB,qBAAqB,CACnB,GAAG,EAAE,eAAe,CAAC,oBAAoB,GAAG,SAAS,GACpD,IAAI;IAIP,gBAAgB,IAAI,IAAI;IAgBxB,kBAAkB,IAAI,IAAI;IAOzB,YAAY,CACX,IAAI,EAAE,kCAAkC,EACxC,QAAQ,EAAE,8BAA8B,GACvC,WAAW,CAAC,IAAI,CAAC;IAgBpB,aAAa,CACX,IAAI,EAAE,kCAAkC,EACxC,QAAQ,EAAE,8BAA8B,GACvC,kCAAkC,EAAE,GAAG,SAAS;IAMlD,qBAAqB,IAAI,WAAW,CAAC,IAAI,CAAC;IAoD1C,mBAAmB,CAClB,UAAU,EAAE,wCAAwC,EACpD,QAAQ,EAAE,8BAA8B,GACvC,WAAW,CAAC,IAAI,CAAC;IAyDnB,kBAAkB,CACjB,SAAS,EAAE,uCAAuC,EAClD,QAAQ,EAAE,8BAA8B,GACvC,WAAW,CAAC,IAAI,CAAC;IAkEpB;;;;OAIG;YACW,yBAAyB;IAoBtC,aAAa,IAAI,WAAW,CAAC,IAAI,CAAC;CAkCpC"}
@@ -0,0 +1,328 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { assertErrorThrown, LogEvent, addUniqueEntry, isNonNullable, filterByType, ActionState, getNonNullableEntry, getNullableLastEntry, } from '@finos/legend-shared';
17
+ import { observable, makeObservable, flow, flowResult, action } from 'mobx';
18
+ import { editor as monacoEditorAPI } from 'monaco-editor';
19
+ import { DatabaseBuilderInput, DatabasePattern, TargetDatabase, Column, getSchema, guaranteeRelationalDatabaseConnection, GRAPH_MANAGER_EVENT, } from '@finos/legend-graph';
20
+ import { LEGEND_STUDIO_APP_EVENT } from '../../../__lib__/LegendStudioEvent.js';
21
+ import { CODE_EDITOR_LANGUAGE, moveCursorToPosition, } from '@finos/legend-lego/code-editor';
22
+ import { STO_RELATIONAL_LEGEND_STUDIO_COMMAND_KEY } from '../../../__lib__/STO_Relational_LegendStudioCommand.js';
23
+ import { PANEL_MODE } from '../EditorConfig.js';
24
+ export class DatabaseSchemaExplorerTreeNodeData {
25
+ isOpen;
26
+ id;
27
+ label;
28
+ parentId;
29
+ childrenIds;
30
+ constructor(id, label, parentId) {
31
+ this.id = id;
32
+ this.label = label;
33
+ this.parentId = parentId;
34
+ }
35
+ }
36
+ export class DatabaseSchemaExplorerTreeSchemaNodeData extends DatabaseSchemaExplorerTreeNodeData {
37
+ schema;
38
+ constructor(id, schema) {
39
+ super(id, schema.name, undefined);
40
+ this.schema = schema;
41
+ }
42
+ }
43
+ export class DatabaseSchemaExplorerTreeTableNodeData extends DatabaseSchemaExplorerTreeNodeData {
44
+ parentId;
45
+ owner;
46
+ table;
47
+ constructor(id, parentId, owner, table) {
48
+ super(id, table.name, parentId);
49
+ this.parentId = parentId;
50
+ this.owner = owner;
51
+ this.table = table;
52
+ }
53
+ }
54
+ export class DatabaseSchemaExplorerTreeColumnNodeData extends DatabaseSchemaExplorerTreeNodeData {
55
+ parentId;
56
+ owner;
57
+ column;
58
+ constructor(id, parentId, owner, column) {
59
+ super(id, column.name, parentId);
60
+ this.parentId = parentId;
61
+ this.owner = owner;
62
+ this.column = column;
63
+ }
64
+ }
65
+ const DUMMY_DATABASE_PACKAGE = 'dummy';
66
+ const DUMMY_DATABASE_NAME = 'DummyDB';
67
+ const DEFAULT_SQL_TEXT = `--Start building your SQL. Note that you can also drag-and-drop nodes from schema explorer\n`;
68
+ export class SQLPlaygroundPanelState {
69
+ editorStore;
70
+ isFetchingSchema = false;
71
+ isExecutingRawSQL = false;
72
+ connection;
73
+ treeData;
74
+ sqlEditorTextModel;
75
+ sqlEditor;
76
+ sqlEditorViewState;
77
+ sqlText = DEFAULT_SQL_TEXT;
78
+ sqlExecutionResult;
79
+ constructor(editorStore) {
80
+ makeObservable(this, {
81
+ isFetchingSchema: observable,
82
+ isExecutingRawSQL: observable,
83
+ connection: observable,
84
+ treeData: observable,
85
+ sqlText: observable,
86
+ resetSQL: action,
87
+ sqlExecutionResult: observable,
88
+ sqlEditor: observable.ref,
89
+ sqlEditorViewState: observable.ref,
90
+ setTreeData: action,
91
+ setConnection: action,
92
+ setSQLEditor: action,
93
+ setSQLEditorViewState: action,
94
+ setSQLText: action,
95
+ onNodeSelect: flow,
96
+ fetchDatabaseMetadata: flow,
97
+ fetchSchemaMetadata: flow,
98
+ fetchTableMetadata: flow,
99
+ executeRawSQL: flow,
100
+ });
101
+ this.editorStore = editorStore;
102
+ this.sqlEditorTextModel = monacoEditorAPI.createModel(this.sqlText, CODE_EDITOR_LANGUAGE.SQL);
103
+ }
104
+ setTreeData(val) {
105
+ this.treeData = val;
106
+ }
107
+ setConnection(val) {
108
+ this.connection = val;
109
+ this.sqlEditorTextModel.setValue(DEFAULT_SQL_TEXT);
110
+ }
111
+ setSQLText(val) {
112
+ this.sqlText = val;
113
+ }
114
+ setSQLEditor(val) {
115
+ this.sqlEditor = val;
116
+ if (val) {
117
+ const lines = this.sqlText.split('\n');
118
+ moveCursorToPosition(val, {
119
+ lineNumber: lines.length,
120
+ column: getNullableLastEntry(lines)?.length ?? 0,
121
+ });
122
+ }
123
+ }
124
+ resetSQL() {
125
+ this.setSQLText(DEFAULT_SQL_TEXT);
126
+ this.sqlEditorTextModel.setValue(DEFAULT_SQL_TEXT);
127
+ this.sqlExecutionResult = undefined;
128
+ }
129
+ setSQLEditorViewState(val) {
130
+ this.sqlEditorViewState = val;
131
+ }
132
+ registerCommands() {
133
+ this.editorStore.applicationStore.commandService.registerCommand({
134
+ key: STO_RELATIONAL_LEGEND_STUDIO_COMMAND_KEY.SQL_PLAYGROUND_EXECUTE,
135
+ trigger: () => this.editorStore.isInitialized &&
136
+ this.editorStore.activePanelMode === PANEL_MODE.SQL_PLAYGROUND &&
137
+ Boolean(this.connection) &&
138
+ Boolean(this.sqlText.length),
139
+ action: () => {
140
+ flowResult(this.executeRawSQL()).catch(this.editorStore.applicationStore.alertUnhandledError);
141
+ },
142
+ });
143
+ }
144
+ deregisterCommands() {
145
+ [STO_RELATIONAL_LEGEND_STUDIO_COMMAND_KEY.SQL_PLAYGROUND_EXECUTE].forEach((key) => this.editorStore.applicationStore.commandService.deregisterCommand(key));
146
+ }
147
+ *onNodeSelect(node, treeData) {
148
+ if (node instanceof DatabaseSchemaExplorerTreeSchemaNodeData &&
149
+ !node.childrenIds) {
150
+ yield flowResult(this.fetchSchemaMetadata(node, treeData));
151
+ }
152
+ else if (node instanceof DatabaseSchemaExplorerTreeTableNodeData &&
153
+ !node.childrenIds) {
154
+ yield flowResult(this.fetchTableMetadata(node, treeData));
155
+ }
156
+ node.isOpen = !node.isOpen;
157
+ this.setTreeData({ ...treeData });
158
+ }
159
+ getChildNodes(node, treeData) {
160
+ return node.childrenIds
161
+ ?.map((n) => treeData.nodes.get(n))
162
+ .filter(isNonNullable);
163
+ }
164
+ *fetchDatabaseMetadata() {
165
+ if (!this.connection) {
166
+ return;
167
+ }
168
+ try {
169
+ this.isFetchingSchema = true;
170
+ const databaseBuilderInput = new DatabaseBuilderInput(guaranteeRelationalDatabaseConnection(this.connection));
171
+ databaseBuilderInput.targetDatabase = new TargetDatabase(DUMMY_DATABASE_PACKAGE, DUMMY_DATABASE_NAME);
172
+ databaseBuilderInput.config.maxTables = undefined;
173
+ databaseBuilderInput.config.enrichTables = false;
174
+ databaseBuilderInput.config.patterns = [
175
+ new DatabasePattern(undefined, undefined),
176
+ ];
177
+ const database = (yield this.buildIntermediateDatabase(databaseBuilderInput));
178
+ const rootIds = [];
179
+ const nodes = new Map();
180
+ database.schemas
181
+ .slice()
182
+ .sort((schemaA, schemaB) => schemaA.name.localeCompare(schemaB.name))
183
+ .forEach((dbSchema) => {
184
+ const schemaId = dbSchema.name;
185
+ rootIds.push(schemaId);
186
+ const schemaNode = new DatabaseSchemaExplorerTreeSchemaNodeData(schemaId, dbSchema);
187
+ nodes.set(schemaId, schemaNode);
188
+ });
189
+ const treeData = { rootIds, nodes, database };
190
+ this.setTreeData(treeData);
191
+ }
192
+ catch (error) {
193
+ assertErrorThrown(error);
194
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_BUILDER_FAILURE), error);
195
+ this.editorStore.applicationStore.notificationService.notifyError(error);
196
+ }
197
+ finally {
198
+ this.isFetchingSchema = false;
199
+ }
200
+ }
201
+ *fetchSchemaMetadata(schemaNode, treeData) {
202
+ if (!this.connection) {
203
+ return;
204
+ }
205
+ try {
206
+ this.isFetchingSchema = true;
207
+ const schema = schemaNode.schema;
208
+ const databaseBuilderInput = new DatabaseBuilderInput(guaranteeRelationalDatabaseConnection(this.connection));
209
+ databaseBuilderInput.targetDatabase = new TargetDatabase(DUMMY_DATABASE_PACKAGE, DUMMY_DATABASE_NAME);
210
+ databaseBuilderInput.config.maxTables = undefined;
211
+ databaseBuilderInput.config.enrichTables = true;
212
+ databaseBuilderInput.config.patterns = [
213
+ new DatabasePattern(schema.name, undefined),
214
+ ];
215
+ const database = (yield this.buildIntermediateDatabase(databaseBuilderInput));
216
+ const tables = getSchema(database, schema.name).tables;
217
+ const childrenIds = schemaNode.childrenIds ?? [];
218
+ schema.tables = tables;
219
+ tables
220
+ .slice()
221
+ .sort((tableA, tableB) => tableA.name.localeCompare(tableB.name))
222
+ .forEach((table) => {
223
+ table.schema = schema;
224
+ const tableId = `${schema.name}.${table.name}`;
225
+ const tableNode = new DatabaseSchemaExplorerTreeTableNodeData(tableId, schemaNode.id, schema, table);
226
+ treeData.nodes.set(tableId, tableNode);
227
+ addUniqueEntry(childrenIds, tableId);
228
+ });
229
+ schemaNode.childrenIds = childrenIds;
230
+ this.setTreeData({ ...treeData });
231
+ }
232
+ catch (error) {
233
+ assertErrorThrown(error);
234
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_BUILDER_FAILURE), error);
235
+ this.editorStore.applicationStore.notificationService.notifyError(error);
236
+ }
237
+ finally {
238
+ this.isFetchingSchema = false;
239
+ }
240
+ }
241
+ *fetchTableMetadata(tableNode, treeData) {
242
+ if (!this.connection) {
243
+ return;
244
+ }
245
+ try {
246
+ this.isFetchingSchema = true;
247
+ const table = tableNode.table;
248
+ const databaseBuilderInput = new DatabaseBuilderInput(guaranteeRelationalDatabaseConnection(this.connection));
249
+ databaseBuilderInput.targetDatabase = new TargetDatabase(DUMMY_DATABASE_PACKAGE, DUMMY_DATABASE_NAME);
250
+ const config = databaseBuilderInput.config;
251
+ config.maxTables = undefined;
252
+ config.enrichTables = true;
253
+ config.enrichColumns = true;
254
+ config.enrichPrimaryKeys = true;
255
+ config.patterns = [new DatabasePattern(table.schema.name, table.name)];
256
+ const database = (yield this.buildIntermediateDatabase(databaseBuilderInput));
257
+ const enrichedTable = database.schemas
258
+ .find((schema) => table.schema.name === schema.name)
259
+ ?.tables.find((t) => t.name === table.name);
260
+ if (enrichedTable) {
261
+ table.primaryKey = enrichedTable.primaryKey;
262
+ const columns = enrichedTable.columns.filter(filterByType(Column));
263
+ tableNode.table.columns = columns;
264
+ tableNode.childrenIds?.forEach((c) => treeData.nodes.delete(c));
265
+ tableNode.childrenIds = undefined;
266
+ const childrenIds = [];
267
+ const tableId = tableNode.id;
268
+ columns
269
+ .slice()
270
+ .sort((colA, colB) => colA.name.localeCompare(colB.name))
271
+ .forEach((col) => {
272
+ const columnId = `${tableId}.${col.name}`;
273
+ const columnNode = new DatabaseSchemaExplorerTreeColumnNodeData(columnId, tableId, table, col);
274
+ col.owner = tableNode.table;
275
+ treeData.nodes.set(columnId, columnNode);
276
+ addUniqueEntry(childrenIds, columnId);
277
+ });
278
+ tableNode.childrenIds = childrenIds;
279
+ }
280
+ }
281
+ catch (error) {
282
+ assertErrorThrown(error);
283
+ this.editorStore.applicationStore.logService.error(LogEvent.create(LEGEND_STUDIO_APP_EVENT.DATABASE_BUILDER_FAILURE), error);
284
+ this.editorStore.applicationStore.notificationService.notifyError(error);
285
+ }
286
+ finally {
287
+ this.isFetchingSchema = false;
288
+ }
289
+ }
290
+ /**
291
+ * This will build the intermediate database from the specified
292
+ * schema exploration input; this information can be further used
293
+ * to enrich the explorer tree
294
+ */
295
+ async buildIntermediateDatabase(input) {
296
+ const entities = await this.editorStore.graphManagerState.graphManager.buildDatabase(input);
297
+ const graph = this.editorStore.graphManagerState.createNewGraph();
298
+ await this.editorStore.graphManagerState.graphManager.buildGraph(graph, entities, ActionState.create());
299
+ return getNonNullableEntry(graph.ownDatabases, 0, 'Expected one database to be generated from input');
300
+ }
301
+ *executeRawSQL() {
302
+ if (!this.connection || this.isExecutingRawSQL) {
303
+ return;
304
+ }
305
+ try {
306
+ this.isExecutingRawSQL = true;
307
+ let sql = this.sqlText;
308
+ const currentSelection = this.sqlEditor?.getSelection();
309
+ if (currentSelection) {
310
+ const selectionValue = this.sqlEditorTextModel.getValueInRange(currentSelection);
311
+ if (selectionValue.trim() !== '') {
312
+ sql = selectionValue;
313
+ }
314
+ }
315
+ this.sqlExecutionResult =
316
+ (yield this.editorStore.graphManagerState.graphManager.executeRawSQL(guaranteeRelationalDatabaseConnection(this.connection), sql));
317
+ }
318
+ catch (error) {
319
+ assertErrorThrown(error);
320
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
321
+ this.editorStore.applicationStore.notificationService.notifyError(error);
322
+ }
323
+ finally {
324
+ this.isExecutingRawSQL = false;
325
+ }
326
+ }
327
+ }
328
+ //# sourceMappingURL=SQLPlaygroundPanelState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SQLPlaygroundPanelState.js","sourceRoot":"","sources":["../../../../src/stores/editor/panel-group/SQLPlaygroundPanelState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAKL,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,MAAM,EACN,SAAS,EACT,qCAAqC,EACrC,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,wCAAwC,EAAE,MAAM,wDAAwD,CAAC;AAClH,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,MAAM,OAAgB,kCAAkC;IAGtD,MAAM,CAAuB;IAC7B,EAAE,CAAS;IACX,KAAK,CAAS;IACd,QAAQ,CAAsB;IAC9B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AC;YACF,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;SAC1E;gBAAS;YACR,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC;SAChC;IACH,CAAC;CACF"}
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { type KeyedExecutionParameter, type Mapping, type PureExecution, type PureMultiExecution, type PureSingleExecution, type RawLambda, type Runtime, type Service, type ServiceExecution, type ObserverContext, type ServiceTestSuite, type ServiceTest, type ConnectionTestData, type EmbeddedData, type ParameterValue, type PostValidationAssertion, type PostValidation } from '@finos/legend-graph';
17
17
  export declare const service_addConnectionTestData: (suite: ServiceTestSuite, val: ConnectionTestData, observerContext: ObserverContext) => void;
18
- export declare const service_setConnectionTestData: (suite: ServiceTestSuite, val: ConnectionTestData[]) => void;
18
+ export declare const service_setConnectionTestData: (suite: ServiceTestSuite, val: ConnectionTestData[], observerContext: ObserverContext) => void;
19
19
  export declare const service_setConnectionTestDataEmbeddedData: (val: ConnectionTestData, data: EmbeddedData, observerContext: ObserverContext) => void;
20
20
  export declare const service_addTest: (suite: ServiceTestSuite, test: ServiceTest) => void;
21
21
  export declare const service_setSerializationFormat: (test: ServiceTest, serializationFormat: string | undefined) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_Service_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_Service_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,K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AAM,8BAA8B,YAC/B,cAAc,OAAO,uBAAuB,SAGvD,CAAC;AAEF,eAAO,MAAM,iCAAiC,YAClC,cAAc,OAAO,uBAAuB,SAGvD,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC3B,cAAc,OAAO,SAAS,SAGzC,CAAC;AAEF,eAAO,MAAM,0BAA0B,YAC3B,cAAc,OAAO,SAAS,OAAO,MAAM,SAGtD,CAAC;AAEF,eAAO,MAAM,6BAA6B,YAC9B,cAAc,OAAO,SAAS,SAGzC,CAAC;AAEF,eAAO,MAAM,gCAAgC,QACrC,uBAAuB,MAAM,MAAM,SAG1C,CAAC"}
1
+ {"version":3,"file":"DSL_Service_GraphModifierHelper.d.ts","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_Service_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,cAAc,EAgBpB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,6BAA6B,UAE/B,gBAAgB,OAClB,kBAAkB,mBACN,eAAe,KAC/B,IASJ,CAAC;AAEF,eAAO,MAAM,6BAA6B,UAE/B,gBAAgB,OAClB,kBAAkB,EAAE,mBACR,eAAe,KAC/B,IAMJ,CAAC;AAEF,eAAO,MAAM,yCAAyC,QAE7C,kBAAkB,QACjB,YAAY,mBACD,eAAe,KAC/B,IAGJ,CAAC;AAEF,eAAO,MAAM,eAAe,UAClB,gBAAgB,QAAQ,WAAW,SAI5C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}
@@ -13,13 +13,19 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { observe_ParameterValue, observe_ConnectionTestData, DEFAULT_SERVICE_PATTERN, observe_ServiceExecution, observe_KeyedExecutionParameter, observe_Mapping, observe_RawLambda, observe_Runtime, observe_ServiceTestSuite, observe_ServiceTest, observe_EmbeddedData, observe_PostValidation, observe_PostValidationAssertion, } from '@finos/legend-graph';
16
+ import { observe_ParameterValue, observe_ConnectionTestData, DEFAULT_SERVICE_PATTERN, observe_ServiceExecution, observe_KeyedExecutionParameter, observe_Mapping, observe_RawLambda, observe_Runtime, observe_ServiceTestSuite, observe_ServiceTest, observe_EmbeddedData, observe_PostValidation, observe_PostValidationAssertion, TestData, observe_TestData, } from '@finos/legend-graph';
17
17
  import { addUniqueEntry, deleteEntry, uuid } from '@finos/legend-shared';
18
18
  import { action } from 'mobx';
19
19
  export const service_addConnectionTestData = action((suite, val, observerContext) => {
20
+ if (!suite.testData) {
21
+ suite.testData = observe_TestData(new TestData(), observerContext);
22
+ }
20
23
  addUniqueEntry(suite.testData.connectionsTestData, observe_ConnectionTestData(val, observerContext));
21
24
  });
22
- export const service_setConnectionTestData = action((suite, val) => {
25
+ export const service_setConnectionTestData = action((suite, val, observerContext) => {
26
+ if (!suite.testData) {
27
+ suite.testData = observe_TestData(new TestData(), observerContext);
28
+ }
23
29
  suite.testData.connectionsTestData = val;
24
30
  });
25
31
  export const service_setConnectionTestDataEmbeddedData = action((val, data, observerContext) => {
@@ -1 +1 @@
1
- {"version":3,"file":"DSL_Service_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_Service_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAkBL,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB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,EAAE,EAAU,EAAE,EAAE;IAC3C,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;AACd,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"DSL_Service_GraphModifierHelper.js","sourceRoot":"","sources":["../../../src/stores/graph-modifier/DSL_Service_GraphModifierHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAkBL,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,+BAA+B,EAC/B,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,+BAA+B,EAC/B,QAAQ,EACR,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CACjD,CACE,KAAuB,EACvB,GAAuB,EACvB,eAAgC,EAC1B,EAAE;IACR,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,QAAQ,EAAE,EAAE,eAAe,CAAC,CAAC;KACpE;IACD,cAAc,CACZ,KAAK,CAAC,QAAQ,CAAC,mBAAmB,EAClC,0BAA0B,CAAC,GAAG,EAAE,eAAe,CAAC,CACjD,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CACjD,CACE,KAAuB,EACvB,GAAyB,EACzB,eAAgC,EAC1B,EAAE;IACR,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;QACnB,KAAK,CAAC,QAAQ,GAAG,gBAAgB,CAAC,IAAI,QAAQ,EAAE,EAAE,eAAe,CAAC,CAAC;KACpE;IACD,KAAK,CAAC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W,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAC9C,CAAC,OAAuB,EAAE,GAAc,EAAE,EAAE;IAC1C,cAAc,CAAC,OAAO,CAAC,UAAU,EAAE,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7D,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAC9C,CAAC,OAAuB,EAAE,GAAc,EAAE,GAAW,EAAE,EAAE;IACvD,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AAChC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CACjD,CAAC,OAAuB,EAAE,GAAc,EAAE,EAAE;IAC1C,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AACvC,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,MAAM,CACpD,CAAC,GAA4B,EAAE,EAAU,EAAE,EAAE;IAC3C,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC;AACd,CAAC,CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-studio",
3
- "version": "26.1.1",
3
+ "version": "26.1.3",
4
4
  "description": "Legend Studio application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -45,15 +45,15 @@
45
45
  "test:watch": "jest --watch"
46
46
  },
47
47
  "dependencies": {
48
- "@finos/legend-application": "15.0.16",
49
- "@finos/legend-art": "7.0.17",
50
- "@finos/legend-graph": "29.0.5",
51
- "@finos/legend-lego": "1.0.12",
52
- "@finos/legend-query-builder": "4.0.2",
53
- "@finos/legend-server-depot": "6.0.9",
54
- "@finos/legend-server-sdlc": "5.0.10",
55
- "@finos/legend-shared": "10.0.8",
56
- "@finos/legend-storage": "3.0.58",
48
+ "@finos/legend-application": "15.0.17",
49
+ "@finos/legend-art": "7.0.18",
50
+ "@finos/legend-graph": "30.0.1",
51
+ "@finos/legend-lego": "1.0.14",
52
+ "@finos/legend-query-builder": "4.0.4",
53
+ "@finos/legend-server-depot": "6.0.10",
54
+ "@finos/legend-server-sdlc": "5.0.11",
55
+ "@finos/legend-shared": "10.0.9",
56
+ "@finos/legend-storage": "3.0.59",
57
57
  "@testing-library/react": "14.0.0",
58
58
  "@types/react": "18.2.7",
59
59
  "@types/react-dom": "18.2.4",
@@ -67,10 +67,10 @@
67
67
  "react-dnd": "16.0.1",
68
68
  "react-dom": "18.2.0",
69
69
  "serializr": "3.0.2",
70
- "yaml": "2.3.0"
70
+ "yaml": "2.3.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@finos/legend-dev-utils": "2.0.63",
73
+ "@finos/legend-dev-utils": "2.0.64",
74
74
  "@jest/globals": "29.5.0",
75
75
  "cross-env": "7.0.3",
76
76
  "eslint": "8.41.0",
@@ -57,4 +57,6 @@ export enum LEGEND_STUDIO_APPLICATION_NAVIGATION_CONTEXT_KEY {
57
57
  SERVICE_EDITOR_TEST = 'studio.editor.service-editor.test',
58
58
 
59
59
  DATA_ELEMENT_EDITOR = 'studio.editor.data-element-editor',
60
+
61
+ SQL_PLAYGROUND = 'studio.editor.panel-group.sql-playground',
60
62
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { CommandConfigData } from '@finos/legend-application';
18
+
19
+ export enum STO_RELATIONAL_LEGEND_STUDIO_COMMAND_KEY {
20
+ SQL_PLAYGROUND_EXECUTE = 'editor.panel-group.sql-playground.execute',
21
+ }
22
+
23
+ export const STO_RELATIONAL_LEGEND_STUDIO_COMMAND_CONFIG: CommandConfigData = {
24
+ [STO_RELATIONAL_LEGEND_STUDIO_COMMAND_KEY.SQL_PLAYGROUND_EXECUTE]: {
25
+ title: 'Execute SQL (SQL Playground)',
26
+ defaultKeyboardShortcut: 'Control+Enter',
27
+ additionalKeyboardShortcuts: ['Meta+Enter'],
28
+ when: 'When SQL playground is active',
29
+ },
30
+ };
@@ -74,6 +74,12 @@ class LegendStudioApplicationCoreOptions {
74
74
  */
75
75
  TEMPORARY__enableFunctionActivatorSupport = false;
76
76
 
77
+ /**
78
+ * This flag can be removed when the support for raw SQL execution is official
79
+ * See https://github.com/finos/legend-engine/pull/1841
80
+ */
81
+ TEMPORARY__enableRawSQLExecutor = false;
82
+
77
83
  /**
78
84
  * Indicates whether we should render the new mapping testable editor or the deprecated legacy editor.
79
85
  * This flag will be removed once the editor for testable editor is agreed on.
@@ -98,6 +104,7 @@ class LegendStudioApplicationCoreOptions {
98
104
  projectCreationGroupIdSuggestion: optional(primitive()),
99
105
  TEMPORARY__preserveSectionIndex: optional(primitive()),
100
106
  TEMPORARY__enableFunctionActivatorSupport: optional(primitive()),
107
+ TEMPORARY__enableRawSQLExecutor: optional(primitive()),
101
108
  TEMPORARY__enableMappingTestableEditor: optional(primitive()),
102
109
  TEMPORARY__serviceRegistrationConfig: list(
103
110
  object(ServiceRegistrationEnvironmentConfig),