@finos/legend-application-studio 20.1.1 → 20.1.2

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 (22) hide show
  1. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.d.ts.map +1 -1
  2. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js +0 -1
  3. package/lib/components/editor/edit-panel/service-editor/ServiceExecutionEditor.js.map +1 -1
  4. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.d.ts.map +1 -1
  5. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js +3 -10
  6. package/lib/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.js.map +1 -1
  7. package/lib/index.css +2 -2
  8. package/lib/index.css.map +1 -1
  9. package/lib/package.json +1 -1
  10. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts +0 -7
  11. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.d.ts.map +1 -1
  12. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js +2 -21
  13. package/lib/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.js.map +1 -1
  14. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts +0 -1
  15. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.d.ts.map +1 -1
  16. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js +0 -3
  17. package/lib/stores/shared/modifier/DSL_Service_GraphModifierHelper.js.map +1 -1
  18. package/package.json +5 -5
  19. package/src/components/editor/edit-panel/service-editor/ServiceExecutionEditor.tsx +0 -5
  20. package/src/components/editor/edit-panel/service-editor/testable/ServiceTestsEditor.tsx +8 -47
  21. package/src/stores/editor-state/element-editor-state/service/testable/ServiceTestEditorState.ts +0 -32
  22. package/src/stores/shared/modifier/DSL_Service_GraphModifierHelper.ts +0 -6
@@ -23,13 +23,11 @@ import {
23
23
  ParameterValue,
24
24
  buildLambdaVariableExpressions,
25
25
  VariableExpression,
26
- PureMultiExecution,
27
26
  } from '@finos/legend-graph';
28
27
  import { action, flow, makeObservable, observable } from 'mobx';
29
28
  import { TestableTestEditorState } from '../../testable/TestableEditorState.js';
30
29
  import type { ServiceTestSuiteState } from './ServiceTestableState.js';
31
30
  import {
32
- service_addAssertKeyForTest,
33
31
  service_addParameterValue,
34
32
  service_deleteParameterValue,
35
33
  service_setParameterName,
@@ -79,11 +77,6 @@ export type SerializationFormatOption = {
79
77
  label: string;
80
78
  };
81
79
 
82
- export type KeyOption = {
83
- value: string;
84
- label: string;
85
- };
86
-
87
80
  export class ServiceTestParameterState {
88
81
  readonly uuid = uuid();
89
82
  readonly editorStore: EditorStore;
@@ -174,7 +167,6 @@ export class ServiceTestSetupState {
174
167
  setShowNewParameterModal: action,
175
168
  openNewParamModal: action,
176
169
  addParameterValue: action,
177
- addServiceTestAssertKeys: action,
178
170
  syncWithQuery: action,
179
171
  removeParamValueState: action,
180
172
  });
@@ -201,30 +193,6 @@ export class ServiceTestSetupState {
201
193
  }));
202
194
  }
203
195
 
204
- get keyOptions(): KeyOption[] {
205
- const keys =
206
- this.testState.testable.execution instanceof PureMultiExecution
207
- ? this.testState.testable.execution.executionParameters.map(
208
- (p) => p.key,
209
- )
210
- : [];
211
- return keys.map((k) => ({
212
- value: k,
213
- label: k,
214
- }));
215
- }
216
-
217
- getSelectedKeyOptions(): KeyOption[] {
218
- return this.testState.test.keys.map((k) => ({
219
- value: k,
220
- label: k,
221
- }));
222
- }
223
-
224
- addServiceTestAssertKeys(val: string[]): void {
225
- service_addAssertKeyForTest(this.testState.test, val);
226
- }
227
-
228
196
  get newParamOptions(): { value: string; label: string }[] {
229
197
  const queryVarExpressions = this.queryVariableExpressions;
230
198
  const currentParams = this.testState.test.parameters;
@@ -87,12 +87,6 @@ export const service_setSerializationFormat = action(
87
87
  },
88
88
  );
89
89
 
90
- export const service_addAssertKeyForTest = action(
91
- (test: ServiceTest, keys: string[]) => {
92
- test.keys = keys;
93
- },
94
- );
95
-
96
90
  export const service_addTestSuite = action(
97
91
  (
98
92
  service: Service,