@finos/legend-application-studio 28.19.56 → 28.19.58
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/components/editor/QuickInput.d.ts.map +1 -1
- package/lib/components/editor/QuickInput.js +8 -3
- package/lib/components/editor/QuickInput.js.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.d.ts.map +1 -1
- package/lib/components/editor/command-center/ProjectSearchCommand.js +8 -3
- package/lib/components/editor/command-center/ProjectSearchCommand.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js +5 -3
- package/lib/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.js.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js +5 -3
- package/lib/components/editor/editor-group/connection-editor/DatabaseModelBuilder.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.js +5 -1
- package/lib/components/editor/editor-group/data-editor/RelationElementsDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js +10 -2
- package/lib/components/editor/editor-group/data-editor/RelationalCSVDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js +7 -32
- package/lib/components/editor/editor-group/dataProduct/DataProductEditor.js.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.js +8 -5
- package/lib/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js +4 -2
- package/lib/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js +5 -1
- package/lib/components/editor/editor-group/function-activator/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js +18 -5
- package/lib/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts +6 -0
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js +65 -4
- package/lib/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js +9 -6
- package/lib/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js +9 -6
- package/lib/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.js +8 -3
- package/lib/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.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 +18 -5
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js +9 -6
- package/lib/components/editor/editor-group/mapping-editor/NewMappingElementModal.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js +8 -5
- package/lib/components/editor/editor-group/service-editor/NewServiceModal.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js +15 -3
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js +10 -2
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js +5 -1
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.d.ts.map +1 -1
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js +19 -5
- package/lib/components/editor/editor-group/testable/TestableSharedComponents.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js +8 -5
- package/lib/components/editor/editor-group/uml-editor/ClassQueryBuilder.js.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.d.ts.map +1 -1
- package/lib/components/editor/side-bar/CreateNewElementModal.js +16 -6
- package/lib/components/editor/side-bar/CreateNewElementModal.js.map +1 -1
- package/lib/components/editor/side-bar/Explorer.d.ts.map +1 -1
- package/lib/components/editor/side-bar/Explorer.js +16 -6
- package/lib/components/editor/side-bar/Explorer.js.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.d.ts.map +1 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js +5 -1
- package/lib/components/editor/side-bar/WorkspaceSyncConflictResolver.js.map +1 -1
- package/lib/components/project-view/ProjectViewer.d.ts.map +1 -1
- package/lib/components/project-view/ProjectViewer.js +34 -4
- package/lib/components/project-view/ProjectViewer.js.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateProjectModal.js +5 -1
- package/lib/components/workspace-setup/CreateProjectModal.js.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.d.ts.map +1 -1
- package/lib/components/workspace-setup/CreateWorkspaceModal.js +8 -3
- package/lib/components/workspace-setup/CreateWorkspaceModal.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts +9 -3
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js +58 -15
- package/lib/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts +7 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js +33 -1
- package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js.map +1 -1
- package/package.json +10 -10
- package/src/components/editor/QuickInput.tsx +8 -4
- package/src/components/editor/command-center/ProjectSearchCommand.tsx +8 -4
- package/src/components/editor/editor-group/connection-editor/DatabaseBuilderWizard.tsx +5 -3
- package/src/components/editor/editor-group/connection-editor/DatabaseModelBuilder.tsx +5 -3
- package/src/components/editor/editor-group/data-editor/RelationElementsDataEditor.tsx +5 -1
- package/src/components/editor/editor-group/data-editor/RelationalCSVDataEditor.tsx +10 -2
- package/src/components/editor/editor-group/dataProduct/DataProductEditor.tsx +11 -56
- package/src/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.tsx +8 -6
- package/src/components/editor/editor-group/external-format-editor/DSL_ExternalFormat_SchemaSetElementEditor.tsx +4 -2
- package/src/components/editor/editor-group/function-activator/FunctionEditor.tsx +5 -1
- package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx +18 -6
- package/src/components/editor/editor-group/ingest-editor/IngestDefinitionEditor.tsx +174 -12
- package/src/components/editor/editor-group/mapping-editor/EnumerationMappingEditor.tsx +8 -6
- package/src/components/editor/editor-group/mapping-editor/InstanceSetImplementationSourceSelectorModal.tsx +8 -6
- package/src/components/editor/editor-group/mapping-editor/MappingExecutionBuilder.tsx +8 -4
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +18 -6
- package/src/components/editor/editor-group/mapping-editor/NewMappingElementModal.tsx +8 -6
- package/src/components/editor/editor-group/service-editor/NewServiceModal.tsx +8 -6
- package/src/components/editor/editor-group/service-editor/ServiceExecutionEditor.tsx +15 -3
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestDataEditor.tsx +10 -2
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +5 -1
- package/src/components/editor/editor-group/testable/TestableSharedComponents.tsx +19 -5
- package/src/components/editor/editor-group/uml-editor/ClassQueryBuilder.tsx +8 -6
- package/src/components/editor/side-bar/CreateNewElementModal.tsx +16 -8
- package/src/components/editor/side-bar/Explorer.tsx +14 -6
- package/src/components/editor/side-bar/WorkspaceSyncConflictResolver.tsx +5 -1
- package/src/components/project-view/ProjectViewer.tsx +85 -1
- package/src/components/workspace-setup/CreateProjectModal.tsx +5 -1
- package/src/components/workspace-setup/CreateWorkspaceModal.tsx +7 -3
- package/src/stores/editor/editor-state/element-editor-state/dataProduct/DataProductEditorState.ts +91 -19
- package/src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts +61 -1
package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.d.ts
CHANGED
|
@@ -13,18 +13,21 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { type MatViewDataSet, type PackageableElement, IngestDefinition } from '@finos/legend-graph';
|
|
17
17
|
import { ElementEditorState } from '../ElementEditorState.js';
|
|
18
18
|
import type { EditorStore } from '../../../EditorStore.js';
|
|
19
19
|
import { ActionState, type GeneratorFn } from '@finos/legend-shared';
|
|
20
20
|
import type { IngestDefinitionDeploymentResponse, IngestDefinitionValidationResponse, LakehouseIngestionManager, ValidateAndDeploymentResponse } from '@finos/legend-server-lakehouse';
|
|
21
21
|
import { EditorInitialConfiguration } from '../ElementEditorInitialConfiguration.js';
|
|
22
22
|
import type { AuthContextProps } from 'react-oidc-context';
|
|
23
|
+
import { LineageState } from '@finos/legend-query-builder';
|
|
23
24
|
export declare const generateUrlToDeployOnOpen: (val: IngestDefinitionEditorState) => string;
|
|
24
25
|
export declare class IngestDefinitionEditorState extends ElementEditorState {
|
|
25
26
|
validateAndDeployResponse: ValidateAndDeploymentResponse | undefined;
|
|
26
27
|
deploymentState: ActionState;
|
|
28
|
+
lineageGenerationState: ActionState;
|
|
27
29
|
deployOnOpen: boolean;
|
|
30
|
+
lineageState: LineageState;
|
|
28
31
|
constructor(editorStore: EditorStore, element: PackageableElement, config?: EditorInitialConfiguration);
|
|
29
32
|
get deploymentResponse(): IngestDefinitionDeploymentResponse | IngestDefinitionValidationResponse | undefined;
|
|
30
33
|
get ingestionManager(): LakehouseIngestionManager | undefined;
|
|
@@ -32,8 +35,11 @@ export declare class IngestDefinitionEditorState extends ElementEditorState {
|
|
|
32
35
|
setDeployOnOpen(value: boolean): void;
|
|
33
36
|
init_with_deploy(auth: AuthContextProps): GeneratorFn<void>;
|
|
34
37
|
deploy(token: string | undefined): GeneratorFn<void>;
|
|
38
|
+
getMatviewFuncNames(): string[];
|
|
39
|
+
generateLineage(matviewDataset: MatViewDataSet): GeneratorFn<void>;
|
|
35
40
|
reprocess(newElement: PackageableElement, editorStore: EditorStore): ElementEditorState;
|
|
36
41
|
get validForDeployment(): boolean;
|
|
42
|
+
get validForLineageViewer(): boolean;
|
|
37
43
|
get validationMessage(): string;
|
|
38
44
|
get ingest(): IngestDefinition;
|
|
39
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IngestDefinitionEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"IngestDefinitionEditorState.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAGvB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,WAAW,EAOX,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,KAAK,EACV,kCA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iBAAiB,IAAI,MAAM,CAS9B;IAED,IAAI,MAAM,IAAI,gBAAgB,CAM7B;CACF"}
|
package/lib/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.js
CHANGED
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { IngestDefinition } from '@finos/legend-graph';
|
|
16
|
+
import { GRAPH_MANAGER_EVENT, IngestDefinition, } from '@finos/legend-graph';
|
|
17
17
|
import { ElementEditorState } from '../ElementEditorState.js';
|
|
18
18
|
import { ActionState, assertErrorThrown, assertTrue, guaranteeNonNullable, guaranteeType, LogEvent, removePrefix, } from '@finos/legend-shared';
|
|
19
19
|
import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
|
|
20
20
|
import { EditorInitialConfiguration, IngestElementEditorInitialConfiguration, } from '../ElementEditorInitialConfiguration.js';
|
|
21
21
|
import { EXTERNAL_APPLICATION_NAVIGATION__generateUrlWithEditorConfig } from '../../../../../__lib__/LegendStudioNavigation.js';
|
|
22
22
|
import { LEGEND_STUDIO_APP_EVENT } from '../../../../../__lib__/LegendStudioEvent.js';
|
|
23
|
+
import { LineageState } from '@finos/legend-query-builder';
|
|
23
24
|
const createEditorInitialConfiguration = () => {
|
|
24
25
|
const config = new EditorInitialConfiguration();
|
|
25
26
|
const ingest = new IngestElementEditorInitialConfiguration();
|
|
@@ -35,7 +36,9 @@ const PARSER_SECTION = `###Lakehouse`;
|
|
|
35
36
|
export class IngestDefinitionEditorState extends ElementEditorState {
|
|
36
37
|
validateAndDeployResponse;
|
|
37
38
|
deploymentState = ActionState.create();
|
|
39
|
+
lineageGenerationState = ActionState.create();
|
|
38
40
|
deployOnOpen = false;
|
|
41
|
+
lineageState;
|
|
39
42
|
constructor(editorStore, element, config) {
|
|
40
43
|
super(editorStore, element);
|
|
41
44
|
makeObservable(this, {
|
|
@@ -47,12 +50,14 @@ export class IngestDefinitionEditorState extends ElementEditorState {
|
|
|
47
50
|
setValidateAndDeployResponse: action,
|
|
48
51
|
init_with_deploy: flow,
|
|
49
52
|
deploy: flow,
|
|
53
|
+
generateLineage: flow,
|
|
50
54
|
});
|
|
51
55
|
if (config?.elementEditorConfiguration instanceof
|
|
52
56
|
IngestElementEditorInitialConfiguration) {
|
|
53
57
|
this.deployOnOpen =
|
|
54
58
|
config.elementEditorConfiguration.deployOnOpen ?? false;
|
|
55
59
|
}
|
|
60
|
+
this.lineageState = new LineageState(this.editorStore.applicationStore);
|
|
56
61
|
}
|
|
57
62
|
get deploymentResponse() {
|
|
58
63
|
return (this.validateAndDeployResponse?.deploymentResponse ??
|
|
@@ -106,12 +111,39 @@ export class IngestDefinitionEditorState extends ElementEditorState {
|
|
|
106
111
|
this.deploymentState.complete();
|
|
107
112
|
}
|
|
108
113
|
}
|
|
114
|
+
getMatviewFuncNames() {
|
|
115
|
+
return (this.ingest.TEMPORARY_MATVIEW_FUNCTION_DATA_SETS?.map((dataset) => dataset.name) ?? []);
|
|
116
|
+
}
|
|
117
|
+
*generateLineage(matviewDataset) {
|
|
118
|
+
if (this.lineageGenerationState.isInProgress) {
|
|
119
|
+
this.editorStore.applicationStore.notificationService.notifyError('Lineage generation in progress already');
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
try {
|
|
123
|
+
this.lineageGenerationState.inProgress();
|
|
124
|
+
const query = matviewDataset.source.function;
|
|
125
|
+
const lineageRawData = (yield this.editorStore.graphManagerState.graphManager.generateLineage(query, undefined, undefined, this.editorStore.graphManagerState.graph, undefined));
|
|
126
|
+
const lineageData = this.editorStore.graphManagerState.graphManager.buildLineage(lineageRawData);
|
|
127
|
+
this.lineageState.setLineageData(lineageData);
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
assertErrorThrown(error);
|
|
131
|
+
this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.LINEAGE_GENERATION_FAILURE), error);
|
|
132
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
|
133
|
+
}
|
|
134
|
+
finally {
|
|
135
|
+
this.lineageGenerationState.complete();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
109
138
|
reprocess(newElement, editorStore) {
|
|
110
139
|
return new IngestDefinitionEditorState(editorStore, newElement);
|
|
111
140
|
}
|
|
112
141
|
get validForDeployment() {
|
|
113
142
|
return Boolean(this.ingest.appDirDeployment && this.textContent && this.ingestionManager);
|
|
114
143
|
}
|
|
144
|
+
get validForLineageViewer() {
|
|
145
|
+
return Boolean(this.ingest.TEMPORARY_MATVIEW_FUNCTION_DATA_SETS?.length);
|
|
146
|
+
}
|
|
115
147
|
get validationMessage() {
|
|
116
148
|
if (!this.ingest.appDirDeployment) {
|
|
117
149
|
return 'No app dir deployment found';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IngestDefinitionEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"IngestDefinitionEditorState.js","sourceRoot":"","sources":["../../../../../../src/stores/editor/editor-state/element-editor-state/ingest/IngestDefinitionEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,YAAY,GAEb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,UAAU,EACV,cAAc,EACd,UAAU,GACX,MAAM,MAAM,CAAC;AAOd,OAAO,EACL,0BAA0B,EAC1B,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C,OAAO,4BAA4B,CAAC;QACtC,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,aAAa,CAClB,IAAI,CAAC,OAAO,EACZ,gBAAgB,EAChB,+DAA+D,CAChE,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos/legend-application-studio",
|
|
3
|
-
"version": "28.19.
|
|
3
|
+
"version": "28.19.58",
|
|
4
4
|
"description": "Legend Studio application core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"legend",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@finos/legend-application": "16.0.
|
|
49
|
-
"@finos/legend-art": "7.1.
|
|
50
|
-
"@finos/legend-code-editor": "2.0.
|
|
51
|
-
"@finos/legend-data-cube": "0.3.
|
|
52
|
-
"@finos/legend-extension-dsl-data-product": "0.0.
|
|
53
|
-
"@finos/legend-graph": "32.3.
|
|
54
|
-
"@finos/legend-lego": "2.0.
|
|
55
|
-
"@finos/legend-query-builder": "4.17.
|
|
48
|
+
"@finos/legend-application": "16.0.78",
|
|
49
|
+
"@finos/legend-art": "7.1.129",
|
|
50
|
+
"@finos/legend-code-editor": "2.0.129",
|
|
51
|
+
"@finos/legend-data-cube": "0.3.40",
|
|
52
|
+
"@finos/legend-extension-dsl-data-product": "0.0.18",
|
|
53
|
+
"@finos/legend-graph": "32.3.10",
|
|
54
|
+
"@finos/legend-lego": "2.0.141",
|
|
55
|
+
"@finos/legend-query-builder": "4.17.53",
|
|
56
56
|
"@finos/legend-server-depot": "6.1.1",
|
|
57
|
-
"@finos/legend-server-lakehouse": "0.3.
|
|
57
|
+
"@finos/legend-server-lakehouse": "0.3.10",
|
|
58
58
|
"@finos/legend-server-sdlc": "5.3.65",
|
|
59
59
|
"@finos/legend-server-showcase": "0.2.61",
|
|
60
60
|
"@finos/legend-shared": "11.0.20",
|
|
@@ -59,12 +59,16 @@ function QuickInputDialog<T>(props: {
|
|
|
59
59
|
<NonBlockingDialog
|
|
60
60
|
open={true}
|
|
61
61
|
onClose={close}
|
|
62
|
-
TransitionProps={{
|
|
63
|
-
onEnter: handleEnter,
|
|
64
|
-
}}
|
|
65
62
|
onClickAway={close}
|
|
66
63
|
classes={{ container: 'search-modal__container' }}
|
|
67
|
-
|
|
64
|
+
slotProps={{
|
|
65
|
+
transition: {
|
|
66
|
+
onEnter: handleEnter,
|
|
67
|
+
},
|
|
68
|
+
paper: {
|
|
69
|
+
classes: { root: 'search-modal__inner-container' },
|
|
70
|
+
},
|
|
71
|
+
}}
|
|
68
72
|
>
|
|
69
73
|
<Modal
|
|
70
74
|
darkMode={
|
|
@@ -93,12 +93,16 @@ export const ProjectSearchCommand = observer(() => {
|
|
|
93
93
|
<NonBlockingDialog
|
|
94
94
|
open={editorStore.showSearchElementCommand}
|
|
95
95
|
onClose={closeModal}
|
|
96
|
-
TransitionProps={{
|
|
97
|
-
onEnter: handleEnter,
|
|
98
|
-
}}
|
|
99
96
|
onClickAway={closeModal}
|
|
100
97
|
classes={{ container: 'search-modal__container' }}
|
|
101
|
-
|
|
98
|
+
slotProps={{
|
|
99
|
+
transition: {
|
|
100
|
+
onEnter: handleEnter,
|
|
101
|
+
},
|
|
102
|
+
paper: {
|
|
103
|
+
classes: { root: 'search-modal__inner-container' },
|
|
104
|
+
},
|
|
105
|
+
}}
|
|
102
106
|
>
|
|
103
107
|
<Modal
|
|
104
108
|
darkMode={
|
|
@@ -301,9 +301,11 @@ export const DatabaseBuilderWizard = observer(
|
|
|
301
301
|
open={databaseBuilderState.showModal}
|
|
302
302
|
onClose={noop} // disallow closing dialog by using Esc key or clicking on the backdrop
|
|
303
303
|
classes={{ container: 'search-modal__container' }}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
304
|
+
slotProps={{
|
|
305
|
+
paper: {
|
|
306
|
+
classes: {
|
|
307
|
+
root: 'search-modal__inner-container database-builder__container',
|
|
308
|
+
},
|
|
307
309
|
},
|
|
308
310
|
}}
|
|
309
311
|
>
|
|
@@ -186,9 +186,11 @@ export const DatabaseModelBuilder = observer(
|
|
|
186
186
|
open={databaseModelBuilderState.showModal}
|
|
187
187
|
classes={{ container: 'search-modal__container' }}
|
|
188
188
|
onClose={noop}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
slotProps={{
|
|
190
|
+
paper: {
|
|
191
|
+
classes: {
|
|
192
|
+
root: 'search-modal__inner-container database-builder__container',
|
|
193
|
+
},
|
|
192
194
|
},
|
|
193
195
|
}}
|
|
194
196
|
>
|
|
@@ -102,7 +102,11 @@ const NewRelationElementModal = observer(
|
|
|
102
102
|
open={dataState.showNewRelationElementModal}
|
|
103
103
|
onClose={closeModal}
|
|
104
104
|
classes={{ container: 'search-modal__container' }}
|
|
105
|
-
|
|
105
|
+
slotProps={{
|
|
106
|
+
paper: {
|
|
107
|
+
classes: { root: 'search-modal__inner-container' },
|
|
108
|
+
},
|
|
109
|
+
}}
|
|
106
110
|
>
|
|
107
111
|
<form
|
|
108
112
|
onSubmit={(event) => {
|
|
@@ -138,7 +138,11 @@ const RelationalTableIdentifierEditor = observer(
|
|
|
138
138
|
open={dataState.showTableIdentifierModal}
|
|
139
139
|
onClose={closeModal}
|
|
140
140
|
classes={{ container: 'search-modal__container' }}
|
|
141
|
-
|
|
141
|
+
slotProps={{
|
|
142
|
+
paper: {
|
|
143
|
+
classes: { root: 'search-modal__inner-container' },
|
|
144
|
+
},
|
|
145
|
+
}}
|
|
142
146
|
>
|
|
143
147
|
<form
|
|
144
148
|
onSubmit={(event) => {
|
|
@@ -260,7 +264,11 @@ const ImportModal = observer(
|
|
|
260
264
|
open={dataState.showImportCSVModal}
|
|
261
265
|
onClose={closeModal}
|
|
262
266
|
classes={{ container: 'search-modal__container' }}
|
|
263
|
-
|
|
267
|
+
slotProps={{
|
|
268
|
+
paper: {
|
|
269
|
+
classes: { root: 'search-modal__inner-container' },
|
|
270
|
+
},
|
|
271
|
+
}}
|
|
264
272
|
>
|
|
265
273
|
<Modal
|
|
266
274
|
darkMode={
|
|
@@ -79,6 +79,7 @@ import {
|
|
|
79
79
|
PURE_MappingIcon,
|
|
80
80
|
GitBranchIcon,
|
|
81
81
|
ListIcon,
|
|
82
|
+
PanelLoadingIndicator,
|
|
82
83
|
} from '@finos/legend-art';
|
|
83
84
|
import {
|
|
84
85
|
type ChangeEventHandler,
|
|
@@ -104,9 +105,6 @@ import {
|
|
|
104
105
|
type Mapping,
|
|
105
106
|
type PackageableElement,
|
|
106
107
|
type PackageableRuntime,
|
|
107
|
-
type V1_AccessPointGroupInfo,
|
|
108
|
-
type V1_AccessPointImplementation,
|
|
109
|
-
type V1_DataProductArtifact,
|
|
110
108
|
DataProductEmbeddedImageIcon,
|
|
111
109
|
DataProductLibraryIcon,
|
|
112
110
|
Email,
|
|
@@ -400,12 +398,12 @@ const AccessPointGenerationViewer = observer(
|
|
|
400
398
|
const { accessPointState, generationOutput } = props;
|
|
401
399
|
const editorStore = accessPointState.state.state.editorStore;
|
|
402
400
|
const closeDebug = (): void => {
|
|
403
|
-
accessPointState.
|
|
401
|
+
accessPointState.setArtifactContent(undefined);
|
|
404
402
|
};
|
|
405
403
|
|
|
406
404
|
return (
|
|
407
405
|
<Dialog
|
|
408
|
-
open={accessPointState.
|
|
406
|
+
open={accessPointState.artifactGenerationContent !== undefined}
|
|
409
407
|
onClose={closeDebug}
|
|
410
408
|
classes={{
|
|
411
409
|
root: 'editor-modal__root-container',
|
|
@@ -466,7 +464,6 @@ export const LakehouseDataProductAccessPointEditor = observer(
|
|
|
466
464
|
const [editingTitle, setEditingTitle] = useState(false);
|
|
467
465
|
const [isHoveringTitle, setIsHoveringTitle] = useState(false);
|
|
468
466
|
const ref = useRef<HTMLDivElement>(null);
|
|
469
|
-
const [debugOutput, setDebugOutput] = useState('');
|
|
470
467
|
|
|
471
468
|
const handleDescriptionEdit = () => setEditingDescription(true);
|
|
472
469
|
const handleDescriptionBlur = () => {
|
|
@@ -500,49 +497,10 @@ export const LakehouseDataProductAccessPointEditor = observer(
|
|
|
500
497
|
},
|
|
501
498
|
);
|
|
502
499
|
|
|
503
|
-
const debugPlanGeneration =
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
editorStore.graphManagerState.graph,
|
|
508
|
-
editorStore.graphEditorMode.getGraphTextInputOption(),
|
|
509
|
-
[groupState.state.elementPath],
|
|
510
|
-
);
|
|
511
|
-
const dataProductExtension = 'dataProduct';
|
|
512
|
-
const dataProductArtifact = generatedArtifacts.values.filter(
|
|
513
|
-
(artifact) => artifact.extension === dataProductExtension,
|
|
514
|
-
);
|
|
515
|
-
const dataProductContent =
|
|
516
|
-
dataProductArtifact[0]?.artifactsByExtensionElements[0]?.files[0]
|
|
517
|
-
?.content ?? null;
|
|
518
|
-
|
|
519
|
-
if (dataProductContent) {
|
|
520
|
-
const contentJson = JSON.parse(
|
|
521
|
-
dataProductContent,
|
|
522
|
-
) as V1_DataProductArtifact;
|
|
523
|
-
const apPlanGeneration = contentJson.accessPointGroups
|
|
524
|
-
.find(
|
|
525
|
-
(group: V1_AccessPointGroupInfo) =>
|
|
526
|
-
group.id === groupState.value.id,
|
|
527
|
-
)
|
|
528
|
-
?.accessPointImplementations.find(
|
|
529
|
-
(apImplementation: V1_AccessPointImplementation) =>
|
|
530
|
-
apImplementation.id === accessPoint.id,
|
|
531
|
-
);
|
|
532
|
-
|
|
533
|
-
setDebugOutput(JSON.stringify(apPlanGeneration, null, 2));
|
|
534
|
-
accessPointState.setShowDebug(true);
|
|
535
|
-
} else {
|
|
536
|
-
throw new Error(
|
|
537
|
-
'Could not find contents of this data product artifact',
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
} catch (error) {
|
|
541
|
-
editorStore.applicationStore.notificationService.notifyError(
|
|
542
|
-
`Failed to fetch access point plan generation: ${error}`,
|
|
543
|
-
);
|
|
544
|
-
}
|
|
545
|
-
};
|
|
500
|
+
const debugPlanGeneration =
|
|
501
|
+
editorStore.applicationStore.guardUnhandledError(() =>
|
|
502
|
+
flowResult(accessPointState.generateArtifact()),
|
|
503
|
+
);
|
|
546
504
|
|
|
547
505
|
const handleRemoveAccessPoint = (): void => {
|
|
548
506
|
editorStore.applicationStore.alertService.setActionAlertInfo({
|
|
@@ -718,11 +676,7 @@ export const LakehouseDataProductAccessPointEditor = observer(
|
|
|
718
676
|
<MenuContent>
|
|
719
677
|
<MenuContentItem
|
|
720
678
|
className="btn__dropdown-combo__option"
|
|
721
|
-
onClick={
|
|
722
|
-
debugPlanGeneration().catch(
|
|
723
|
-
editorStore.applicationStore.alertUnhandledError,
|
|
724
|
-
);
|
|
725
|
-
}}
|
|
679
|
+
onClick={debugPlanGeneration}
|
|
726
680
|
>
|
|
727
681
|
<div
|
|
728
682
|
style={{
|
|
@@ -896,10 +850,10 @@ export const LakehouseDataProductAccessPointEditor = observer(
|
|
|
896
850
|
>
|
|
897
851
|
<TimesIcon />
|
|
898
852
|
</button>
|
|
899
|
-
{accessPointState.
|
|
853
|
+
{accessPointState.artifactGenerationContent && (
|
|
900
854
|
<AccessPointGenerationViewer
|
|
901
855
|
accessPointState={accessPointState}
|
|
902
|
-
generationOutput={
|
|
856
|
+
generationOutput={accessPointState.artifactGenerationContent}
|
|
903
857
|
/>
|
|
904
858
|
)}
|
|
905
859
|
</div>
|
|
@@ -1401,6 +1355,7 @@ const AccessPointGroupEditor = observer(
|
|
|
1401
1355
|
className="access-point-editor__group-container"
|
|
1402
1356
|
data-testid={LEGEND_STUDIO_TEST_ID.ACCESS_POINT_GROUP_EDITOR}
|
|
1403
1357
|
>
|
|
1358
|
+
<PanelLoadingIndicator isLoading={groupState.isRunningProcess} />
|
|
1404
1359
|
<div className="access-point-editor__group-container__name-editor">
|
|
1405
1360
|
{editingName ? (
|
|
1406
1361
|
<textarea
|
package/src/components/editor/editor-group/element-generation-editor/ElementGenerationEditor.tsx
CHANGED
|
@@ -83,12 +83,14 @@ const NewFileGenerationModal = observer(
|
|
|
83
83
|
<Dialog
|
|
84
84
|
open={elementGenerationState.showNewFileGenerationModal}
|
|
85
85
|
onClose={close}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
slotProps={{
|
|
87
|
+
transition: {
|
|
88
|
+
onEnter: handleEnter,
|
|
89
|
+
},
|
|
90
|
+
paper: {
|
|
91
|
+
classes: {
|
|
92
|
+
root: 'search-modal__inner-container',
|
|
93
|
+
},
|
|
92
94
|
},
|
|
93
95
|
}}
|
|
94
96
|
>
|
|
@@ -84,8 +84,10 @@ const SchemaLoader = observer(
|
|
|
84
84
|
<Dialog
|
|
85
85
|
onClose={onClose}
|
|
86
86
|
open={importState.importSchemaModal}
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
slotProps={{
|
|
88
|
+
transition: {
|
|
89
|
+
appear: false, // disable transition
|
|
90
|
+
},
|
|
89
91
|
}}
|
|
90
92
|
>
|
|
91
93
|
<Modal
|
|
@@ -921,7 +921,11 @@ const FunctionPromoteEditor = observer(
|
|
|
921
921
|
open={activatorPromoteState.isActivatingFunction}
|
|
922
922
|
onClose={closeModal}
|
|
923
923
|
classes={{ container: 'search-modal__container' }}
|
|
924
|
-
|
|
924
|
+
slotProps={{
|
|
925
|
+
paper: {
|
|
926
|
+
classes: { root: 'search-modal__inner-container' },
|
|
927
|
+
},
|
|
928
|
+
}}
|
|
925
929
|
>
|
|
926
930
|
<Modal
|
|
927
931
|
darkMode={
|
package/src/components/editor/editor-group/function-activator/testable/FunctionTestableEditor.tsx
CHANGED
|
@@ -535,7 +535,11 @@ const NewParameterModal = observer(
|
|
|
535
535
|
open={functionTestState.showNewParameterModal}
|
|
536
536
|
onClose={closeModal}
|
|
537
537
|
classes={{ container: 'search-modal__container' }}
|
|
538
|
-
|
|
538
|
+
slotProps={{
|
|
539
|
+
paper: {
|
|
540
|
+
classes: { root: 'search-modal__inner-container' },
|
|
541
|
+
},
|
|
542
|
+
}}
|
|
539
543
|
>
|
|
540
544
|
<form
|
|
541
545
|
onSubmit={(event) => {
|
|
@@ -819,7 +823,11 @@ const CreateTestModal = observer(
|
|
|
819
823
|
open={functionSuiteState.showCreateModal}
|
|
820
824
|
onClose={close}
|
|
821
825
|
classes={{ container: 'search-modal__container' }}
|
|
822
|
-
|
|
826
|
+
slotProps={{
|
|
827
|
+
paper: {
|
|
828
|
+
classes: { root: 'search-modal__inner-container' },
|
|
829
|
+
},
|
|
830
|
+
}}
|
|
823
831
|
>
|
|
824
832
|
<Modal
|
|
825
833
|
darkMode={
|
|
@@ -1018,11 +1026,15 @@ const CreateFucntionTestSuiteModal = observer(
|
|
|
1018
1026
|
<Dialog
|
|
1019
1027
|
open={true}
|
|
1020
1028
|
onClose={close}
|
|
1021
|
-
TransitionProps={{
|
|
1022
|
-
onEnter: handleEnter,
|
|
1023
|
-
}}
|
|
1024
1029
|
classes={{ container: 'search-modal__container' }}
|
|
1025
|
-
|
|
1030
|
+
slotProps={{
|
|
1031
|
+
transition: {
|
|
1032
|
+
onEnter: handleEnter,
|
|
1033
|
+
},
|
|
1034
|
+
paper: {
|
|
1035
|
+
classes: { root: 'search-modal__inner-container' },
|
|
1036
|
+
},
|
|
1037
|
+
}}
|
|
1026
1038
|
>
|
|
1027
1039
|
<Modal
|
|
1028
1040
|
darkMode={
|