@finos/legend-application-studio 27.1.2 → 27.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js +1 -1
- package/lib/__lib__/LegendStudioApplicationNavigationContext.js.map +1 -1
- package/lib/__lib__/LegendStudioDocumentation.d.ts +3 -1
- package/lib/__lib__/LegendStudioDocumentation.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioDocumentation.js +3 -0
- package/lib/__lib__/LegendStudioDocumentation.js.map +1 -1
- package/lib/__lib__/LegendStudioTesting.d.ts +1 -0
- package/lib/__lib__/LegendStudioTesting.d.ts.map +1 -1
- package/lib/__lib__/LegendStudioTesting.js +1 -0
- package/lib/__lib__/LegendStudioTesting.js.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendStudioApplicationConfig.js +1 -1
- package/lib/application/LegendStudioApplicationConfig.js.map +1 -1
- package/lib/components/editor/editor-group/FunctionEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/FunctionEditor.js +6 -3
- package/lib/components/editor/editor-group/FunctionEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js +2 -2
- package/lib/components/editor/editor-group/mapping-editor/MappingEditor.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingExplorer.js.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js +47 -12
- package/lib/components/editor/editor-group/mapping-editor/MappingTestableEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js +61 -11
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js +1 -1
- package/lib/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.js.map +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.js +1 -1
- package/lib/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.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 +9 -5
- package/lib/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.d.ts.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js +26 -27
- package/lib/components/editor/editor-group/uml-editor/ClassEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/EnumerationEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js +3 -3
- package/lib/components/editor/editor-group/uml-editor/ProfileEditor.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/StereotypeSelector.js.map +1 -1
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js +2 -2
- package/lib/components/editor/editor-group/uml-editor/TaggedValueEditor.js.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.d.ts.map +1 -1
- package/lib/components/editor/side-bar/ProjectOverview.js +7 -1
- package/lib/components/editor/side-bar/ProjectOverview.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/ClassState.d.ts +8 -2
- package/lib/stores/editor/editor-state/element-editor-state/ClassState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/ClassState.js +10 -6
- package/lib/stores/editor/editor-state/element-editor-state/ClassState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts +5 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js +7 -5
- package/lib/stores/editor/editor-state/element-editor-state/FunctionEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts +4 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js +7 -5
- package/lib/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.d.ts +10 -3
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js +7 -5
- package/lib/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js +2 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts +3 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts +8 -2
- package/lib/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js +10 -6
- package/lib/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.d.ts +11 -3
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js +6 -4
- package/lib/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts +3 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js +3 -3
- package/lib/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts +3 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js +4 -4
- package/lib/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServicePostValidationState.d.ts +8 -2
- package/lib/stores/editor/editor-state/element-editor-state/service/ServicePostValidationState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/ServicePostValidationState.js +12 -8
- package/lib/stores/editor/editor-state/element-editor-state/service/ServicePostValidationState.js.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js +13 -8
- package/lib/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.js.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts +6 -2
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.d.ts.map +1 -1
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js +39 -3
- package/lib/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.js.map +1 -1
- package/lib/stores/editor/utils/TestableUtils.js +2 -2
- package/lib/stores/editor/utils/TestableUtils.js.map +1 -1
- package/package.json +14 -14
- package/src/__lib__/LegendStudioApplicationNavigationContext.ts +1 -1
- package/src/__lib__/LegendStudioDocumentation.ts +4 -0
- package/src/__lib__/LegendStudioTesting.ts +1 -0
- package/src/application/LegendStudioApplicationConfig.ts +1 -1
- package/src/components/editor/editor-group/FunctionEditor.tsx +8 -6
- package/src/components/editor/editor-group/mapping-editor/MappingEditor.tsx +5 -2
- package/src/components/editor/editor-group/mapping-editor/MappingExplorer.tsx +1 -1
- package/src/components/editor/editor-group/mapping-editor/MappingTestableEditor.tsx +68 -17
- package/src/components/editor/editor-group/project-configuration-editor/ProjectConfigurationEditor.tsx +137 -12
- package/src/components/editor/editor-group/project-configuration-editor/ProjectDependencyEditor.tsx +0 -1
- package/src/components/editor/editor-group/service-editor/ServiceExecutionQueryEditor.tsx +3 -3
- package/src/components/editor/editor-group/service-editor/testable/ServiceTestsEditor.tsx +53 -18
- package/src/components/editor/editor-group/uml-editor/ClassEditor.tsx +358 -364
- package/src/components/editor/editor-group/uml-editor/EnumerationEditor.tsx +4 -4
- package/src/components/editor/editor-group/uml-editor/ProfileEditor.tsx +7 -7
- package/src/components/editor/editor-group/uml-editor/StereotypeSelector.tsx +4 -4
- package/src/components/editor/editor-group/uml-editor/TaggedValueEditor.tsx +4 -4
- package/src/components/editor/side-bar/ProjectOverview.tsx +14 -3
- package/src/stores/editor/editor-state/element-editor-state/ClassState.ts +16 -6
- package/src/stores/editor/editor-state/element-editor-state/FunctionEditorState.ts +11 -8
- package/src/stores/editor/editor-state/element-editor-state/mapping/DEPRECATED__MappingTestState.ts +10 -5
- package/src/stores/editor/editor-state/element-editor-state/mapping/FlatDataInstanceSetImplementationState.ts +14 -5
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingEditorState.ts +2 -2
- package/src/stores/editor/editor-state/element-editor-state/mapping/MappingExecutionState.ts +6 -4
- package/src/stores/editor/editor-state/element-editor-state/mapping/PureInstanceSetImplementationState.ts +16 -6
- package/src/stores/editor/editor-state/element-editor-state/mapping/relational/RelationalInstanceSetImplementationState.ts +14 -4
- package/src/stores/editor/editor-state/element-editor-state/mapping/testable/MappingTestableState.ts +5 -3
- package/src/stores/editor/editor-state/element-editor-state/service/ServiceExecutionState.ts +6 -4
- package/src/stores/editor/editor-state/element-editor-state/service/ServicePostValidationState.ts +22 -10
- package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts +21 -8
- package/src/stores/editor/editor-state/project-configuration-editor-state/ProjectConfigurationEditorState.ts +59 -2
- package/src/stores/editor/utils/TestableUtils.ts +2 -2
package/src/stores/editor/editor-state/element-editor-state/service/testable/ServiceTestableState.ts
CHANGED
@@ -127,7 +127,7 @@ export class ServiceTestSuiteState {
|
|
127
127
|
selectedTestState: ServiceTestState | undefined;
|
128
128
|
testStates: ServiceTestState[] = [];
|
129
129
|
testToRename: ServiceTest | undefined;
|
130
|
-
|
130
|
+
runningTestState = ActionState.create();
|
131
131
|
|
132
132
|
constructor(suite: ServiceTestSuite, testableState: ServiceTestableState) {
|
133
133
|
makeObservable(this, {
|
@@ -188,7 +188,7 @@ export class ServiceTestSuiteState {
|
|
188
188
|
|
189
189
|
*runSuite(): GeneratorFn<void> {
|
190
190
|
try {
|
191
|
-
this.
|
191
|
+
this.runningTestState.inProgress();
|
192
192
|
this.testStates.forEach((t) => t.resetResult());
|
193
193
|
this.testStates.forEach((t) => t.runningTestAction.inProgress());
|
194
194
|
const service = this.testableState.serviceEditorState.service;
|
@@ -205,11 +205,11 @@ export class ServiceTestSuiteState {
|
|
205
205
|
const state = this.testStates.find((t) => t.test === result.atomicTest);
|
206
206
|
state?.handleTestResult(result);
|
207
207
|
});
|
208
|
-
this.
|
208
|
+
this.runningTestState.complete();
|
209
209
|
} catch (error) {
|
210
210
|
assertErrorThrown(error);
|
211
211
|
this.editorStore.applicationStore.notificationService.notifyError(error);
|
212
|
-
this.
|
212
|
+
this.runningTestState.fail();
|
213
213
|
} finally {
|
214
214
|
this.testStates.forEach((t) => t.runningTestAction.complete());
|
215
215
|
}
|
@@ -217,7 +217,7 @@ export class ServiceTestSuiteState {
|
|
217
217
|
|
218
218
|
*runFailingTests(): GeneratorFn<void> {
|
219
219
|
try {
|
220
|
-
this.
|
220
|
+
this.runningTestState.inProgress();
|
221
221
|
const service = this.testableState.serviceEditorState.service;
|
222
222
|
const input = new RunTestsTestableInput(service);
|
223
223
|
input.unitTestIds = this.testStates
|
@@ -243,11 +243,11 @@ export class ServiceTestSuiteState {
|
|
243
243
|
const state = this.testStates.find((t) => t.test === result.atomicTest);
|
244
244
|
state?.handleTestResult(result);
|
245
245
|
});
|
246
|
-
this.
|
246
|
+
this.runningTestState.complete();
|
247
247
|
} catch (error) {
|
248
248
|
assertErrorThrown(error);
|
249
249
|
this.editorStore.applicationStore.notificationService.notifyError(error);
|
250
|
-
this.
|
250
|
+
this.runningTestState.fail();
|
251
251
|
} finally {
|
252
252
|
this.testStates.forEach((t) => t.runningTestAction.complete());
|
253
253
|
}
|
@@ -275,7 +275,20 @@ export class ServiceTestSuiteState {
|
|
275
275
|
}
|
276
276
|
|
277
277
|
get testFailed(): number {
|
278
|
-
return this.
|
278
|
+
return this.testStates.filter(
|
279
|
+
(e) =>
|
280
|
+
(e.testResultState.result instanceof TestExecuted &&
|
281
|
+
e.testResultState.result.testExecutionStatus !==
|
282
|
+
TestExecutionStatus.PASS) ||
|
283
|
+
(e.testResultState.result instanceof MultiExecutionServiceTestResult &&
|
284
|
+
Array.from(
|
285
|
+
e.testResultState.result.keyIndexedTestResults.values(),
|
286
|
+
).every(
|
287
|
+
(kv) =>
|
288
|
+
kv instanceof TestExecuted &&
|
289
|
+
kv.testExecutionStatus !== TestExecutionStatus.PASS,
|
290
|
+
)),
|
291
|
+
).length;
|
279
292
|
}
|
280
293
|
}
|
281
294
|
|
@@ -32,6 +32,7 @@ import {
|
|
32
32
|
guaranteeNonNullable,
|
33
33
|
hashArray,
|
34
34
|
ActionState,
|
35
|
+
prettyCONSTName,
|
35
36
|
} from '@finos/legend-shared';
|
36
37
|
import type { EditorSDLCState } from '../../EditorSDLCState.js';
|
37
38
|
import {
|
@@ -39,6 +40,7 @@ import {
|
|
39
40
|
ProjectStructureVersion,
|
40
41
|
UpdateProjectConfigurationCommand,
|
41
42
|
UpdatePlatformConfigurationsCommand,
|
43
|
+
ProjectType,
|
42
44
|
} from '@finos/legend-server-sdlc';
|
43
45
|
import { LEGEND_STUDIO_APP_EVENT } from '../../../../__lib__/LegendStudioEvent.js';
|
44
46
|
import { SNAPSHOT_ALIAS, StoreProjectData } from '@finos/legend-server-depot';
|
@@ -48,8 +50,22 @@ export enum CONFIGURATION_EDITOR_TAB {
|
|
48
50
|
PROJECT_STRUCTURE = 'PROJECT_STRUCTURE',
|
49
51
|
PROJECT_DEPENDENCIES = 'PROJECT_DEPENDENCIES',
|
50
52
|
PLATFORM_CONFIGURATIONS = 'PLATFORM_CONFIGURATIONS',
|
53
|
+
ADVANCED = 'ADVANCED',
|
51
54
|
}
|
52
55
|
|
56
|
+
export const projectTypeTabFilter = (
|
57
|
+
mode: ProjectType,
|
58
|
+
tab: CONFIGURATION_EDITOR_TAB,
|
59
|
+
): boolean => {
|
60
|
+
if (
|
61
|
+
mode === ProjectType.EMBEDDED &&
|
62
|
+
tab === CONFIGURATION_EDITOR_TAB.PLATFORM_CONFIGURATIONS
|
63
|
+
) {
|
64
|
+
return false;
|
65
|
+
}
|
66
|
+
return true;
|
67
|
+
};
|
68
|
+
|
53
69
|
export class ProjectConfigurationEditorState extends EditorState {
|
54
70
|
readonly sdlcState: EditorSDLCState;
|
55
71
|
readonly updatingConfigurationState = ActionState.create();
|
@@ -95,6 +111,7 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
95
111
|
updateToLatestStructure: flow,
|
96
112
|
updateConfigs: flow,
|
97
113
|
fetchLatestProjectStructureVersion: flow,
|
114
|
+
changeProjectType: flow,
|
98
115
|
});
|
99
116
|
|
100
117
|
this.projectDependencyEditorState = new ProjectDependencyEditorState(
|
@@ -168,6 +185,12 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
168
185
|
);
|
169
186
|
}
|
170
187
|
|
188
|
+
get isInEmbeddedMode(): boolean {
|
189
|
+
return (
|
190
|
+
this.originalProjectConfiguration?.projectType === ProjectType.EMBEDDED
|
191
|
+
);
|
192
|
+
}
|
193
|
+
|
171
194
|
*fectchAssociatedProjectsAndVersions(): GeneratorFn<void> {
|
172
195
|
this.fetchingProjectVersionsState.inProgress();
|
173
196
|
try {
|
@@ -268,11 +291,20 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
268
291
|
*updateToLatestStructure(): GeneratorFn<void> {
|
269
292
|
if (this.latestProjectStructureVersion) {
|
270
293
|
try {
|
294
|
+
let latestStructure = this.latestProjectStructureVersion;
|
295
|
+
if (this.isInEmbeddedMode) {
|
296
|
+
const projectStructureVersion = new ProjectStructureVersion();
|
297
|
+
projectStructureVersion.version =
|
298
|
+
this.latestProjectStructureVersion.version;
|
299
|
+
// extension version does not exists in embedded mode
|
300
|
+
projectStructureVersion.extensionVersion = undefined;
|
301
|
+
latestStructure = projectStructureVersion;
|
302
|
+
}
|
271
303
|
const updateCommand = new UpdateProjectConfigurationCommand(
|
272
304
|
this.currentProjectConfiguration.groupId,
|
273
305
|
this.currentProjectConfiguration.artifactId,
|
274
|
-
|
275
|
-
`update project configuration from ${this.editorStore.applicationStore.config.appName}`,
|
306
|
+
latestStructure,
|
307
|
+
`update project configuration from ${this.editorStore.applicationStore.config.appName}: update to latest project structure`,
|
276
308
|
);
|
277
309
|
yield flowResult(this.updateProjectConfiguration(updateCommand));
|
278
310
|
} catch (error) {
|
@@ -288,6 +320,31 @@ export class ProjectConfigurationEditorState extends EditorState {
|
|
288
320
|
}
|
289
321
|
}
|
290
322
|
|
323
|
+
*changeProjectType(): GeneratorFn<void> {
|
324
|
+
try {
|
325
|
+
const newProjectType = this.isInEmbeddedMode
|
326
|
+
? ProjectType.MANAGED
|
327
|
+
: ProjectType.EMBEDDED;
|
328
|
+
const updateCommand = new UpdateProjectConfigurationCommand(
|
329
|
+
this.currentProjectConfiguration.groupId,
|
330
|
+
this.currentProjectConfiguration.artifactId,
|
331
|
+
undefined,
|
332
|
+
`update project configuration from ${
|
333
|
+
this.editorStore.applicationStore.config.appName
|
334
|
+
}: changed project type to ${prettyCONSTName(newProjectType)}`,
|
335
|
+
);
|
336
|
+
updateCommand.projectType = newProjectType;
|
337
|
+
yield flowResult(this.updateProjectConfiguration(updateCommand));
|
338
|
+
} catch (error) {
|
339
|
+
assertErrorThrown(error);
|
340
|
+
this.editorStore.applicationStore.logService.error(
|
341
|
+
LogEvent.create(LEGEND_STUDIO_APP_EVENT.SDLC_MANAGER_FAILURE),
|
342
|
+
error,
|
343
|
+
);
|
344
|
+
this.editorStore.applicationStore.notificationService.notifyError(error);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
291
348
|
// TODO: we will probably need to remove this in the future when we have a better strategy for change detection and persistence of project config
|
292
349
|
// See https://github.com/finos/legend-studio/issues/952
|
293
350
|
*updateConfigs(): GeneratorFn<void> {
|
@@ -74,7 +74,7 @@ export const validateTestableId = (
|
|
74
74
|
if (!id) {
|
75
75
|
return 'ID is required';
|
76
76
|
} else if (id.includes(' ')) {
|
77
|
-
return `ID can't contain
|
77
|
+
return `ID can't contain spaces`;
|
78
78
|
} else if (possibleIds?.includes(id)) {
|
79
79
|
return `ID '${id}' already exists`;
|
80
80
|
}
|
@@ -138,7 +138,7 @@ export class EmbeddedDataCreatorFromEmbeddedData
|
|
138
138
|
visit_ExternalFormatData(data: ExternalFormatData): EmbeddedData {
|
139
139
|
const val = new ExternalFormatData();
|
140
140
|
val.contentType = data.contentType;
|
141
|
-
val.data =
|
141
|
+
val.data = data.data;
|
142
142
|
return val;
|
143
143
|
}
|
144
144
|
visit_ModelStoreData(data: ModelStoreData): EmbeddedData {
|