@finos/legend-extension-dsl-data-quality 1.0.60 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/lib/components/{DSL_DataQuality_ClassElementDriver.d.ts → DSL_DataQuality_ElementDriver.d.ts} +17 -7
  2. package/lib/components/DSL_DataQuality_ElementDriver.d.ts.map +1 -0
  3. package/lib/components/{DSL_DataQuality_ClassElementDriver.js → DSL_DataQuality_ElementDriver.js} +70 -23
  4. package/lib/components/DSL_DataQuality_ElementDriver.js.map +1 -0
  5. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.d.ts.map +1 -1
  6. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js +20 -39
  7. package/lib/components/DSL_DataQuality_LegendStudioApplicationPlugin.js.map +1 -1
  8. package/lib/components/{DSL_NewDataQualityClassValidationElement.d.ts → DSL_NewDataQualityValidationElement.d.ts} +2 -2
  9. package/lib/components/DSL_NewDataQualityValidationElement.d.ts.map +1 -0
  10. package/lib/components/DSL_NewDataQualityValidationElement.js +80 -0
  11. package/lib/components/DSL_NewDataQualityValidationElement.js.map +1 -0
  12. package/lib/components/DataQualityRelationTrialRuns.d.ts +22 -0
  13. package/lib/components/DataQualityRelationTrialRuns.d.ts.map +1 -0
  14. package/lib/components/DataQualityRelationTrialRuns.js +87 -0
  15. package/lib/components/DataQualityRelationTrialRuns.js.map +1 -0
  16. package/lib/components/{DSL_NewDataQualityServiceValidationElement.d.ts → DataQualityRelationValidationConfigurationEditor.d.ts} +2 -2
  17. package/lib/components/DataQualityRelationValidationConfigurationEditor.d.ts.map +1 -0
  18. package/lib/components/DataQualityRelationValidationConfigurationEditor.js +99 -0
  19. package/lib/components/DataQualityRelationValidationConfigurationEditor.js.map +1 -0
  20. package/lib/components/DataQualityRelationValidationEditor.d.ts +30 -0
  21. package/lib/components/DataQualityRelationValidationEditor.d.ts.map +1 -0
  22. package/lib/components/DataQualityRelationValidationEditor.js +89 -0
  23. package/lib/components/DataQualityRelationValidationEditor.js.map +1 -0
  24. package/lib/components/DataQualityResultPanel.d.ts.map +1 -1
  25. package/lib/components/DataQualityResultPanel.js +1 -1
  26. package/lib/components/DataQualityResultPanel.js.map +1 -1
  27. package/lib/components/DataQualityResultValues.d.ts +0 -2
  28. package/lib/components/DataQualityResultValues.d.ts.map +1 -1
  29. package/lib/components/DataQualityResultValues.js.map +1 -1
  30. package/lib/components/DataQualitySideBar.js +2 -2
  31. package/lib/components/DataQualitySideBar.js.map +1 -1
  32. package/lib/components/DataQualityValidationDetailPanel.d.ts +36 -0
  33. package/lib/components/DataQualityValidationDetailPanel.d.ts.map +1 -0
  34. package/lib/components/DataQualityValidationDetailPanel.js +39 -0
  35. package/lib/components/DataQualityValidationDetailPanel.js.map +1 -0
  36. package/lib/components/DataQualityValidationParametersEditor.d.ts +15 -0
  37. package/lib/components/DataQualityValidationParametersEditor.d.ts.map +1 -0
  38. package/lib/components/DataQualityValidationParametersEditor.js +129 -0
  39. package/lib/components/DataQualityValidationParametersEditor.js.map +1 -0
  40. package/lib/components/states/ConstraintState.d.ts +2 -0
  41. package/lib/components/states/ConstraintState.d.ts.map +1 -1
  42. package/lib/components/states/ConstraintState.js +2 -0
  43. package/lib/components/states/ConstraintState.js.map +1 -1
  44. package/lib/components/states/DataQualityClassValidationState.d.ts +2 -2
  45. package/lib/components/states/DataQualityClassValidationState.d.ts.map +1 -1
  46. package/lib/components/states/DataQualityClassValidationState.js +4 -4
  47. package/lib/components/states/DataQualityClassValidationState.js.map +1 -1
  48. package/lib/components/states/DataQualityRelationResultState.d.ts +46 -0
  49. package/lib/components/states/DataQualityRelationResultState.d.ts.map +1 -0
  50. package/lib/components/states/DataQualityRelationResultState.js +194 -0
  51. package/lib/components/states/DataQualityRelationResultState.js.map +1 -0
  52. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts +73 -0
  53. package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts.map +1 -0
  54. package/lib/components/states/DataQualityRelationValidationConfigurationState.js +255 -0
  55. package/lib/components/states/DataQualityRelationValidationConfigurationState.js.map +1 -0
  56. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts +32 -0
  57. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.d.ts.map +1 -0
  58. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js +79 -0
  59. package/lib/components/states/DataQualityRelationValidationLambdaEditorState.js.map +1 -0
  60. package/lib/components/states/DataQualityRelationValidationState.d.ts +38 -0
  61. package/lib/components/states/DataQualityRelationValidationState.d.ts.map +1 -0
  62. package/lib/components/states/DataQualityRelationValidationState.js +119 -0
  63. package/lib/components/states/DataQualityRelationValidationState.js.map +1 -0
  64. package/lib/components/states/DataQualityResultState.d.ts.map +1 -1
  65. package/lib/components/states/DataQualityResultState.js +6 -3
  66. package/lib/components/states/DataQualityResultState.js.map +1 -1
  67. package/lib/components/states/DataQualityState.js +1 -1
  68. package/lib/components/states/DataQualityState.js.map +1 -1
  69. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts +5 -1
  70. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.d.ts.map +1 -1
  71. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js +4 -0
  72. package/lib/graph/metamodel/DSL_DataQuality_HashUtils.js.map +1 -1
  73. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.d.ts.map +1 -1
  74. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js +2 -1
  75. package/lib/graph/metamodel/DSL_DataQuality_PureGraphPlugin.js.map +1 -1
  76. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +36 -3
  77. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -1
  78. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js +58 -4
  79. package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -1
  80. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts +2 -1
  81. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.d.ts.map +1 -1
  82. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js +2 -1
  83. package/lib/graph-manager/DSL_DataQuality_GraphManagerHelper.js.map +1 -1
  84. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts +13 -2
  85. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.d.ts.map +1 -1
  86. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js +36 -2
  87. package/lib/graph-manager/DSL_DataQuality_GraphModifierHelper.js.map +1 -1
  88. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.d.ts.map +1 -1
  89. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js +5 -2
  90. package/lib/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.js.map +1 -1
  91. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts +5 -1
  92. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.d.ts.map +1 -1
  93. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js +29 -2
  94. package/lib/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.js.map +1 -1
  95. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +6 -5
  96. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -1
  97. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -1
  98. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts +1 -1
  99. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.d.ts.map +1 -1
  100. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js +34 -40
  101. package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.js.map +1 -1
  102. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +8 -6
  103. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -1
  104. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +19 -12
  105. package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -1
  106. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.d.ts → V1_DataQualityValidationConfiguration.d.ts} +26 -4
  107. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.d.ts.map +1 -0
  108. package/lib/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.js → V1_DataQualityValidationConfiguration.js} +49 -4
  109. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityValidationConfiguration.js.map +1 -0
  110. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts +7 -3
  111. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.d.ts.map +1 -1
  112. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js +43 -3
  113. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.js.map +1 -1
  114. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts +6 -3
  115. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.d.ts.map +1 -1
  116. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js +39 -2
  117. package/lib/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.js.map +1 -1
  118. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts +5 -2
  119. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.d.ts.map +1 -1
  120. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js +27 -9
  121. package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.js.map +1 -1
  122. package/lib/index.css +2 -2
  123. package/lib/index.css.map +1 -1
  124. package/lib/package.json +1 -1
  125. package/package.json +7 -7
  126. package/src/components/{DSL_DataQuality_ClassElementDriver.tsx → DSL_DataQuality_ElementDriver.tsx} +87 -18
  127. package/src/components/DSL_DataQuality_LegendStudioApplicationPlugin.tsx +33 -48
  128. package/src/components/DSL_NewDataQualityValidationElement.tsx +208 -0
  129. package/src/components/DataQualityRelationTrialRuns.tsx +288 -0
  130. package/src/components/DataQualityRelationValidationConfigurationEditor.tsx +364 -0
  131. package/src/components/DataQualityRelationValidationEditor.tsx +290 -0
  132. package/src/components/DataQualityResultPanel.tsx +1 -4
  133. package/src/components/DataQualityResultValues.tsx +1 -5
  134. package/src/components/DataQualitySideBar.tsx +2 -2
  135. package/src/components/DataQualityValidationDetailPanel.tsx +182 -0
  136. package/src/components/DataQualityValidationParametersEditor.tsx +355 -0
  137. package/src/components/states/ConstraintState.ts +2 -0
  138. package/src/components/states/DataQualityClassValidationState.ts +5 -5
  139. package/src/components/states/DataQualityRelationResultState.ts +274 -0
  140. package/src/components/states/DataQualityRelationValidationConfigurationState.ts +429 -0
  141. package/src/components/states/DataQualityRelationValidationLambdaEditorState.ts +138 -0
  142. package/src/components/states/DataQualityRelationValidationState.ts +180 -0
  143. package/src/components/states/DataQualityResultState.ts +6 -8
  144. package/src/components/states/DataQualityState.ts +1 -1
  145. package/src/graph/metamodel/DSL_DataQuality_HashUtils.ts +4 -0
  146. package/src/graph/metamodel/DSL_DataQuality_PureGraphPlugin.ts +2 -0
  147. package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +79 -3
  148. package/src/graph-manager/DSL_DataQuality_GraphManagerHelper.ts +13 -0
  149. package/src/graph-manager/DSL_DataQuality_GraphModifierHelper.ts +107 -0
  150. package/src/graph-manager/DSL_DataQuality_PureGraphManagerPlugin.ts +8 -0
  151. package/src/graph-manager/action/changeDetection/DSL_DataQuality_ObserverHelper.ts +54 -1
  152. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +5 -3
  153. package/src/graph-manager/protocol/pure/DSL_DataQuality_PureProtocolProcessorPlugin.ts +72 -81
  154. package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +20 -23
  155. package/src/graph-manager/protocol/pure/v1/{V1_DataQualityConstraintsConfiguration.ts → V1_DataQualityValidationConfiguration.ts} +63 -4
  156. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationBuilderHelper.ts +116 -2
  157. package/src/graph-manager/protocol/pure/v1/transformation/V1_DSL_DataQuality_ValueSpecificationTransformer.ts +78 -1
  158. package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_DSL_DataQuality_ProtocolHelper.ts +55 -8
  159. package/style/_data-quality-relation-validation-builder.scss +454 -0
  160. package/style/index.scss +6 -0
  161. package/tsconfig.json +13 -6
  162. package/lib/components/DSL_DataQuality_ClassElementDriver.d.ts.map +0 -1
  163. package/lib/components/DSL_DataQuality_ClassElementDriver.js.map +0 -1
  164. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts +0 -27
  165. package/lib/components/DSL_DataQuality_ServiceElementDriver.d.ts.map +0 -1
  166. package/lib/components/DSL_DataQuality_ServiceElementDriver.js +0 -41
  167. package/lib/components/DSL_DataQuality_ServiceElementDriver.js.map +0 -1
  168. package/lib/components/DSL_NewDataQualityClassValidationElement.d.ts.map +0 -1
  169. package/lib/components/DSL_NewDataQualityClassValidationElement.js +0 -64
  170. package/lib/components/DSL_NewDataQualityClassValidationElement.js.map +0 -1
  171. package/lib/components/DSL_NewDataQualityServiceValidationElement.d.ts.map +0 -1
  172. package/lib/components/DSL_NewDataQualityServiceValidationElement.js +0 -41
  173. package/lib/components/DSL_NewDataQualityServiceValidationElement.js.map +0 -1
  174. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.d.ts.map +0 -1
  175. package/lib/graph-manager/protocol/pure/v1/V1_DataQualityConstraintsConfiguration.js.map +0 -1
  176. package/src/components/DSL_DataQuality_ServiceElementDriver.tsx +0 -57
  177. package/src/components/DSL_NewDataQualityClassValidationElement.tsx +0 -156
  178. package/src/components/DSL_NewDataQualityServiceValidationElement.tsx +0 -74
@@ -0,0 +1,255 @@
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 { ElementEditorState, } from '@finos/legend-application-studio';
17
+ import { DataQualityRelationValidationConfiguration, RelationValidationType, } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
18
+ import { assertErrorThrown, assertType, guaranteeNonNullable, guaranteeType, hashArray, LogEvent, filterByType, } from '@finos/legend-shared';
19
+ import { buildSourceInformationSourceId, GRAPH_MANAGER_EVENT, isStubbed_PackageableElement, isStubbed_RawLambda, ParserError, RawLambda, buildLambdaVariableExpressions, observe_ValueSpecification, VariableExpression, } from '@finos/legend-graph';
20
+ import { action, computed, flow, flowResult, makeObservable, observable, } from 'mobx';
21
+ import { LambdaEditorState, LambdaParametersState, LambdaParameterState, PARAMETER_SUBMIT_ACTION, } from '@finos/legend-query-builder';
22
+ import { DataQualityRelationValidationState } from './DataQualityRelationValidationState.js';
23
+ import { DataQualityRelationResultState } from './DataQualityRelationResultState.js';
24
+ import { DATA_QUALITY_HASH_STRUCTURE } from '../../graph/metamodel/DSL_DataQuality_HashUtils.js';
25
+ export var DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB;
26
+ (function (DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB) {
27
+ DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB["DEFINITION"] = "Definition";
28
+ DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB["TRIAL_RUN"] = "Trial Run";
29
+ })(DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB || (DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB = {}));
30
+ export class RelationFunctionDefinitionEditorState extends LambdaEditorState {
31
+ editorStore;
32
+ relationValidationElement;
33
+ isConvertingFunctionBodyToString = false;
34
+ constructor(relationValidationElement, editorStore) {
35
+ super('', '|');
36
+ makeObservable(this, {
37
+ relationValidationElement: observable,
38
+ isConvertingFunctionBodyToString: observable,
39
+ });
40
+ this.relationValidationElement = relationValidationElement;
41
+ this.editorStore = editorStore;
42
+ }
43
+ get lambdaId() {
44
+ return buildSourceInformationSourceId([
45
+ this.relationValidationElement.path,
46
+ ]);
47
+ }
48
+ *convertLambdaGrammarStringToObject() {
49
+ if (this.lambdaString) {
50
+ try {
51
+ const lambda = (yield this.editorStore.graphManagerState.graphManager.pureCodeToLambda(this.fullLambdaString, this.lambdaId));
52
+ this.setParserError(undefined);
53
+ this.relationValidationElement.query.body = lambda.body;
54
+ }
55
+ catch (error) {
56
+ assertErrorThrown(error);
57
+ if (error instanceof ParserError) {
58
+ this.setParserError(error);
59
+ }
60
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
61
+ }
62
+ }
63
+ else {
64
+ this.clearErrors();
65
+ this.relationValidationElement.query.body = new RawLambda(undefined, undefined).body;
66
+ this.relationValidationElement.query.parameters = [];
67
+ }
68
+ }
69
+ *convertLambdaObjectToGrammarString(options) {
70
+ if (!isStubbed_PackageableElement(this.relationValidationElement)) {
71
+ this.isConvertingFunctionBodyToString = true;
72
+ try {
73
+ const lambdas = new Map();
74
+ const functionLamba = new RawLambda([], this.relationValidationElement.query.body);
75
+ lambdas.set(this.lambdaId, functionLamba);
76
+ const isolatedLambdas = (yield this.editorStore.graphManagerState.graphManager.lambdasToPureCode(lambdas, options?.pretty));
77
+ const grammarText = isolatedLambdas.get(this.lambdaId);
78
+ if (grammarText) {
79
+ this.setLambdaString(this.extractLambdaString(grammarText));
80
+ }
81
+ else {
82
+ this.setLambdaString('');
83
+ }
84
+ // `firstLoad` flag is used in the first rendering of the function editor (in a `useEffect`)
85
+ // This flag helps block editing while the JSON is converting to text and to avoid reseting parser/compiler error in reveal error
86
+ if (!options?.firstLoad) {
87
+ this.clearErrors({
88
+ preserveCompilationError: options?.preserveCompilationError,
89
+ });
90
+ }
91
+ this.isConvertingFunctionBodyToString = false;
92
+ }
93
+ catch (error) {
94
+ assertErrorThrown(error);
95
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
96
+ this.isConvertingFunctionBodyToString = false;
97
+ }
98
+ }
99
+ else {
100
+ this.clearErrors();
101
+ this.setLambdaString('');
102
+ }
103
+ }
104
+ get hashCode() {
105
+ return hashArray([
106
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_RELATION_FUNCTION_DEFINITION,
107
+ this.lambdaString,
108
+ ]);
109
+ }
110
+ }
111
+ export class RelationDefinitionParameterState extends LambdaParametersState {
112
+ relationValidationConfigurationState;
113
+ constructor(relationValidationConfigurationState) {
114
+ super();
115
+ makeObservable(this, {
116
+ parameterValuesEditorState: observable,
117
+ parameterStates: observable,
118
+ addParameter: action,
119
+ removeParameter: action,
120
+ openModal: action,
121
+ build: action,
122
+ setParameters: action,
123
+ });
124
+ this.relationValidationConfigurationState =
125
+ relationValidationConfigurationState;
126
+ }
127
+ openModal(lambda) {
128
+ this.parameterStates = this.build(lambda);
129
+ this.parameterValuesEditorState.open(() => flowResult(this.relationValidationConfigurationState.resultState.runValidation())
130
+ .catch(this.relationValidationConfigurationState.editorStore
131
+ .applicationStore.alertUnhandledError)
132
+ .catch(this.relationValidationConfigurationState.editorStore
133
+ .applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.RUN);
134
+ }
135
+ build(lambda) {
136
+ const parameters = buildLambdaVariableExpressions(lambda, this.relationValidationConfigurationState.editorStore.graphManagerState)
137
+ .map((parameter) => observe_ValueSpecification(parameter, this.relationValidationConfigurationState.editorStore
138
+ .changeDetectionState.observerContext))
139
+ .filter(filterByType(VariableExpression));
140
+ const states = parameters.map((variable) => {
141
+ const parmeterState = new LambdaParameterState(variable, this.relationValidationConfigurationState.editorStore.changeDetectionState.observerContext, this.relationValidationConfigurationState.editorStore.graphManagerState.graph);
142
+ parmeterState.mockParameterValue();
143
+ return parmeterState;
144
+ });
145
+ return states;
146
+ }
147
+ }
148
+ export class DataQualityRelationValidationConfigurationState extends ElementEditorState {
149
+ relationFunctionDefinitionEditorState;
150
+ selectedTab;
151
+ isRunningFunc = false;
152
+ funcRunPromise = undefined;
153
+ executionResult; // NOTE: stored as lossless JSON string
154
+ validationStates = [];
155
+ parametersState;
156
+ isConvertingValidationLambdaObjects = false;
157
+ resultState;
158
+ constructor(editorStore, element) {
159
+ super(editorStore, element);
160
+ makeObservable(this, {
161
+ selectedTab: observable,
162
+ isRunningFunc: observable,
163
+ funcRunPromise: observable,
164
+ executionResult: observable,
165
+ setSelectedTab: action,
166
+ setFuncRunPromise: action,
167
+ setExecutionResult: action,
168
+ addValidationState: action,
169
+ validationElement: computed,
170
+ relationValidationOptions: computed,
171
+ convertValidationLambdaObjects: flow,
172
+ });
173
+ assertType(element, DataQualityRelationValidationConfiguration, 'Element inside data quality relation validation editor state must be a data quality relation validation element');
174
+ this.relationFunctionDefinitionEditorState =
175
+ new RelationFunctionDefinitionEditorState(element, this.editorStore);
176
+ this.selectedTab = DATA_QUALITY_RELATION_VALIDATION_EDITOR_TAB.DEFINITION;
177
+ this.validationElement.validations.forEach((validation) => {
178
+ this.validationStates.push(new DataQualityRelationValidationState(validation, editorStore));
179
+ });
180
+ this.parametersState = new RelationDefinitionParameterState(this);
181
+ this.resultState = new DataQualityRelationResultState(this);
182
+ }
183
+ reprocess(newElement, editorStore) {
184
+ return new DataQualityRelationValidationConfigurationState(editorStore, newElement);
185
+ }
186
+ get validationElement() {
187
+ return guaranteeType(this.element, DataQualityRelationValidationConfiguration, 'Element inside data quality relation validation state must be a data quality relation validation configuration element');
188
+ }
189
+ getNullableValidationState = (relationValidation) => this.validationStates.find((validationState) => validationState.relationValidation === relationValidation);
190
+ getValidationState = (validation) => guaranteeNonNullable(this.getNullableValidationState(validation), `Can't find validation state for validation ${validation}`);
191
+ get relationValidationOptions() {
192
+ return Object.values(RelationValidationType).map((type) => ({
193
+ label: type,
194
+ value: type,
195
+ }));
196
+ }
197
+ addValidationState(validation) {
198
+ if (!this.validationStates.find((validationState) => validationState.relationValidation === validation)) {
199
+ this.validationStates.push(new DataQualityRelationValidationState(validation, this.editorStore));
200
+ }
201
+ }
202
+ deleteValidationState(validation) {
203
+ const idx = this.validationStates.findIndex((validationState) => validationState.relationValidation === validation);
204
+ if (idx !== -1) {
205
+ this.validationStates.splice(idx, 1);
206
+ }
207
+ }
208
+ setFuncRunPromise = (promise) => {
209
+ this.funcRunPromise = promise;
210
+ };
211
+ setSelectedTab(tab) {
212
+ this.selectedTab = tab;
213
+ }
214
+ setExecutionResult = (executionResult) => {
215
+ this.executionResult = executionResult;
216
+ };
217
+ *convertValidationLambdaObjects() {
218
+ const lambdas = new Map();
219
+ const index = new Map();
220
+ this.validationStates.forEach((validationState) => {
221
+ if (!isStubbed_RawLambda(validationState.relationValidation.assertion)) {
222
+ lambdas.set(validationState.lambdaId, validationState.relationValidation.assertion);
223
+ index.set(validationState.lambdaId, validationState);
224
+ }
225
+ });
226
+ if (lambdas.size) {
227
+ this.isConvertingValidationLambdaObjects = true;
228
+ try {
229
+ const isolatedLambdas = (yield this.editorStore.graphManagerState.graphManager.lambdasToPureCode(lambdas));
230
+ isolatedLambdas.forEach((grammarText, key) => {
231
+ const validationState = index.get(key);
232
+ validationState?.setLambdaString(validationState.extractLambdaString(grammarText));
233
+ });
234
+ }
235
+ catch (error) {
236
+ assertErrorThrown(error);
237
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
238
+ }
239
+ finally {
240
+ this.isConvertingValidationLambdaObjects = false;
241
+ }
242
+ }
243
+ }
244
+ get bodyExpressionSequence() {
245
+ return new RawLambda(this.validationElement.query.parameters.map((parameter) => this.editorStore.graphManagerState.graphManager.serializeRawValueSpecification(parameter)), this.validationElement.query.body);
246
+ }
247
+ get hashCode() {
248
+ return hashArray([
249
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_RELATION_VALIDATION,
250
+ this.relationFunctionDefinitionEditorState,
251
+ hashArray(this.validationStates),
252
+ ]);
253
+ }
254
+ }
255
+ //# sourceMappingURL=DataQualityRelationValidationConfigurationState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationConfigurationState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationConfigurationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,kBAAkB,GACnB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAEL,0CAA0C,EAC1C,sBAAsB,GACvB,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAEL,iBAAiB,EACjB,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,Y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,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,gCAAgC;YAC5D,IAAI,CAAC,qCAAqC;YAC1C,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,32 @@
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 { DataQualityRelationValidation } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
17
+ import type { EditorStore } from '@finos/legend-application-studio';
18
+ import { type GeneratorFn } from '@finos/legend-shared';
19
+ import { LambdaEditorState } from '@finos/legend-query-builder';
20
+ export declare class DataQualityRelationValidationLambdaEditorState extends LambdaEditorState {
21
+ relationValidation: DataQualityRelationValidation;
22
+ editorStore: EditorStore;
23
+ constructor(relationValidation: DataQualityRelationValidation, editorStore: EditorStore);
24
+ get lambdaId(): string;
25
+ convertLambdaGrammarStringToObject(): GeneratorFn<void>;
26
+ convertLambdaObjectToGrammarString(options?: {
27
+ pretty?: boolean | undefined;
28
+ preserveCompilationError?: boolean | undefined;
29
+ }): GeneratorFn<void>;
30
+ get hashCode(): string;
31
+ }
32
+ //# sourceMappingURL=DataQualityRelationValidationLambdaEditorState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationLambdaEditorState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationLambdaEditorState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,mGAAmG,CAAC;AACvJ,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAKhE,qBAAa,8CAA+C,SAAQ,iBAAiB;IACnF,kBAAkB,EAAE,6BAA6B,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;gBAEvB,kBAAkB,EAAE,6BAA6B,EACjD,WAAW,EAAE,WAAW;IAa1B,IAAI,QAAQ,IAAI,MAAM,CAMrB;IAEA,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IAiCvD,kCAAkC,CAAC,OAAO,CAAC,EAAE;QAC5C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;IAgCrB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -0,0 +1,79 @@
1
+ import { makeObservable, observable } from 'mobx';
2
+ import { assertErrorThrown, hashArray, LogEvent, } from '@finos/legend-shared';
3
+ import { buildSourceInformationSourceId, GRAPH_MANAGER_EVENT, isStubbed_RawLambda, ParserError, stub_RawLambda, } from '@finos/legend-graph';
4
+ import { LambdaEditorState } from '@finos/legend-query-builder';
5
+ import { VALIDATION_ROW_MAP_ID_LABEL } from './ConstraintState.js';
6
+ import { dataQualityRelationValidation_setRowMapFunction } from '../../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
7
+ import { DATA_QUALITY_HASH_STRUCTURE } from '../../graph/metamodel/DSL_DataQuality_HashUtils.js';
8
+ export class DataQualityRelationValidationLambdaEditorState extends LambdaEditorState {
9
+ relationValidation;
10
+ editorStore;
11
+ constructor(relationValidation, editorStore) {
12
+ super('true', '|');
13
+ makeObservable(this, {
14
+ relationValidation: observable,
15
+ editorStore: observable,
16
+ });
17
+ this.relationValidation = relationValidation;
18
+ this.editorStore = editorStore;
19
+ }
20
+ get lambdaId() {
21
+ return buildSourceInformationSourceId([
22
+ VALIDATION_ROW_MAP_ID_LABEL,
23
+ this.relationValidation.name,
24
+ this.uuid, // in case of duplications
25
+ ]);
26
+ }
27
+ *convertLambdaGrammarStringToObject() {
28
+ const emptyFunctionDefinition = stub_RawLambda();
29
+ if (this.lambdaString) {
30
+ try {
31
+ const lambda = (yield this.editorStore.graphManagerState.graphManager.pureCodeToLambda(this.fullLambdaString, this.lambdaId));
32
+ this.setParserError(undefined);
33
+ dataQualityRelationValidation_setRowMapFunction(this.relationValidation, lambda);
34
+ }
35
+ catch (error) {
36
+ assertErrorThrown(error);
37
+ if (error instanceof ParserError) {
38
+ this.setParserError(error);
39
+ }
40
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
41
+ }
42
+ }
43
+ else {
44
+ this.clearErrors();
45
+ dataQualityRelationValidation_setRowMapFunction(this.relationValidation, emptyFunctionDefinition);
46
+ }
47
+ }
48
+ *convertLambdaObjectToGrammarString(options) {
49
+ if (!isStubbed_RawLambda(this.relationValidation.rowMapFunction)) {
50
+ try {
51
+ const lambdas = new Map();
52
+ lambdas.set(this.lambdaId, this.relationValidation.rowMapFunction);
53
+ const isolatedLambdas = (yield this.editorStore.graphManagerState.graphManager.lambdasToPureCode(lambdas, options?.pretty));
54
+ const grammarText = isolatedLambdas.get(this.lambdaId);
55
+ this.setLambdaString(grammarText !== undefined
56
+ ? this.extractLambdaString(grammarText)
57
+ : '');
58
+ this.clearErrors({
59
+ preserveCompilationError: options?.preserveCompilationError,
60
+ });
61
+ }
62
+ catch (error) {
63
+ assertErrorThrown(error);
64
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
65
+ }
66
+ }
67
+ else {
68
+ this.clearErrors();
69
+ this.setLambdaString('');
70
+ }
71
+ }
72
+ get hashCode() {
73
+ return hashArray([
74
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_RELATION_VALIDATION,
75
+ this.lambdaString,
76
+ ]);
77
+ }
78
+ }
79
+ //# sourceMappingURL=DataQualityRelationValidationLambdaEditorState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationLambdaEditorState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationLambdaEditorState.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClD,OAAO,EAEL,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,8BAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,+CAA+C,EAAE,MAAM,4DAA4D,CAAC;AAC7H,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AAEjG,MAAM,OAAO,8CAA+C,SAAQ,iBAAiB;IACnF,kBAAkB,CAAgC;IAClD,WAAW,CAAc;IACzB,YACE,kBAAiD,EACjD,WAAwB;QAExB,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAEnB,cAAc,CAAC,IAAI,EAAE;YACnB,kBAAkB,EAAE,UAAU;YAC9B,WAAW,EAAE,UAAU;SACxB,CAAC,CAAC;QAEH,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,8BAA8B,CAAC;YACpC,2BAA2B;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AQ,EAAE,IAAI,CAAC,kBAAkB,CAAC,cAAe,CAAC,CAAC;gBACpE,MAAM,eAAe,GACnB,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,YAAY,CAAC,iBAAiB,CACtE,OAAO,EACP,OAAO,EAAE,MAAM,CAChB,CAAwB,CAAC;gBAC5B,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBACvD,IAAI,CAAC,eAAe,CAClB,WAAW,KAAK,SAAS;oBACvB,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC;oBACvC,CAAC,CAAC,EAAE,CACP,CAAC;gBACF,IAAI,CAAC,WAAW,CAAC;oBACf,wBAAwB,EAAE,OAAO,EAAE,wBAAwB;iBAC5D,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EACpD,KAAK,CACN,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,gCAAgC;YAC5D,IAAI,CAAC,YAAY;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,38 @@
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 DataQualityRelationValidation } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
17
+ import { type EditorStore } from '@finos/legend-application-studio';
18
+ import { type GeneratorFn } from '@finos/legend-shared';
19
+ import { LambdaEditorState } from '@finos/legend-query-builder';
20
+ import { DataQualityRelationValidationLambdaEditorState } from './DataQualityRelationValidationLambdaEditorState.js';
21
+ import type { SelectOption } from '@finos/legend-art';
22
+ export declare class DataQualityRelationValidationState extends LambdaEditorState {
23
+ relationValidation: DataQualityRelationValidation;
24
+ editorStore: EditorStore;
25
+ isValidationDialogOpen: boolean;
26
+ rowMapFunctionLambdaEditorState: DataQualityRelationValidationLambdaEditorState | undefined;
27
+ constructor(relationValidation: DataQualityRelationValidation, editorStore: EditorStore);
28
+ get lambdaId(): string;
29
+ setIsValidationDialogOpen(isValidationDialogOpen: boolean): void;
30
+ onValidationTypeChange(val: SelectOption): void;
31
+ convertLambdaGrammarStringToObject(): GeneratorFn<void>;
32
+ convertLambdaObjectToGrammarString(options?: {
33
+ pretty?: boolean | undefined;
34
+ preserveCompilationError?: boolean | undefined;
35
+ }): GeneratorFn<void>;
36
+ get hashCode(): string;
37
+ }
38
+ //# sourceMappingURL=DataQualityRelationValidationState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAS9B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAOhE,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;AACrH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,qBAAa,kCAAmC,SAAQ,iBAAiB;IACvE,kBAAkB,EAAE,6BAA6B,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;IACzB,sBAAsB,UAAS;IAC/B,+BAA+B,EAC3B,8CAA8C,GAC9C,SAAS,CAAC;gBAEZ,kBAAkB,EAAE,6BAA6B,EACjD,WAAW,EAAE,WAAW;IAuB1B,IAAI,QAAQ,IAAI,MAAM,CAMrB;IAED,yBAAyB,CAAC,sBAAsB,EAAE,OAAO,GAAG,IAAI;IAIhE,sBAAsB,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI;IAgB9C,kCAAkC,IAAI,WAAW,CAAC,IAAI,CAAC;IAiCvD,kCAAkC,CAAC,OAAO,CAAC,EAAE;QAC5C,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC7B,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChD,GAAG,WAAW,CAAC,IAAI,CAAC;IAgCrB,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
@@ -0,0 +1,119 @@
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 { RelationValidationType, } from '../../graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js';
17
+ import {} from '@finos/legend-application-studio';
18
+ import { action, makeObservable, observable } from 'mobx';
19
+ import { assertErrorThrown, hashArray, LogEvent, } from '@finos/legend-shared';
20
+ import { buildSourceInformationSourceId, GRAPH_MANAGER_EVENT, isStubbed_RawLambda, ParserError, stub_RawLambda, } from '@finos/legend-graph';
21
+ import { LambdaEditorState } from '@finos/legend-query-builder';
22
+ import { VALIDATION_SOURCE_ID_LABEL } from './ConstraintState.js';
23
+ import { dataQualityRelationValidation_setAssertion, dataQualityRelationValidation_setType, } from '../../graph-manager/DSL_DataQuality_GraphModifierHelper.js';
24
+ import { DATA_QUALITY_HASH_STRUCTURE } from '../../graph/metamodel/DSL_DataQuality_HashUtils.js';
25
+ import { DataQualityRelationValidationLambdaEditorState } from './DataQualityRelationValidationLambdaEditorState.js';
26
+ export class DataQualityRelationValidationState extends LambdaEditorState {
27
+ relationValidation;
28
+ editorStore;
29
+ isValidationDialogOpen = false;
30
+ rowMapFunctionLambdaEditorState;
31
+ constructor(relationValidation, editorStore) {
32
+ super('true', '');
33
+ makeObservable(this, {
34
+ relationValidation: observable,
35
+ editorStore: observable,
36
+ isValidationDialogOpen: observable,
37
+ setIsValidationDialogOpen: action,
38
+ onValidationTypeChange: action,
39
+ });
40
+ this.relationValidation = relationValidation;
41
+ this.editorStore = editorStore;
42
+ this.rowMapFunctionLambdaEditorState =
43
+ relationValidation.type === RelationValidationType.AGGREGATE
44
+ ? new DataQualityRelationValidationLambdaEditorState(relationValidation, editorStore)
45
+ : undefined;
46
+ }
47
+ get lambdaId() {
48
+ return buildSourceInformationSourceId([
49
+ VALIDATION_SOURCE_ID_LABEL,
50
+ this.relationValidation.name,
51
+ this.uuid, // in case of duplications
52
+ ]);
53
+ }
54
+ setIsValidationDialogOpen(isValidationDialogOpen) {
55
+ this.isValidationDialogOpen = isValidationDialogOpen;
56
+ }
57
+ onValidationTypeChange(val) {
58
+ dataQualityRelationValidation_setType(this.relationValidation, val.value);
59
+ if (val.value === RelationValidationType.AGGREGATE) {
60
+ this.rowMapFunctionLambdaEditorState =
61
+ new DataQualityRelationValidationLambdaEditorState(this.relationValidation, this.editorStore);
62
+ }
63
+ else {
64
+ this.rowMapFunctionLambdaEditorState = undefined;
65
+ }
66
+ }
67
+ *convertLambdaGrammarStringToObject() {
68
+ const emptyFunctionDefinition = stub_RawLambda();
69
+ if (this.lambdaString) {
70
+ try {
71
+ const lambda = (yield this.editorStore.graphManagerState.graphManager.pureCodeToLambda(this.fullLambdaString, this.lambdaId));
72
+ this.setParserError(undefined);
73
+ dataQualityRelationValidation_setAssertion(this.relationValidation, lambda);
74
+ }
75
+ catch (error) {
76
+ assertErrorThrown(error);
77
+ if (error instanceof ParserError) {
78
+ this.setParserError(error);
79
+ }
80
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
81
+ }
82
+ }
83
+ else {
84
+ this.clearErrors();
85
+ dataQualityRelationValidation_setAssertion(this.relationValidation, emptyFunctionDefinition);
86
+ }
87
+ }
88
+ *convertLambdaObjectToGrammarString(options) {
89
+ if (!isStubbed_RawLambda(this.relationValidation.assertion)) {
90
+ try {
91
+ const lambdas = new Map();
92
+ lambdas.set(this.lambdaId, this.relationValidation.assertion);
93
+ const isolatedLambdas = (yield this.editorStore.graphManagerState.graphManager.lambdasToPureCode(lambdas, options?.pretty));
94
+ const grammarText = isolatedLambdas.get(this.lambdaId);
95
+ this.setLambdaString(grammarText !== undefined
96
+ ? this.extractLambdaString(grammarText)
97
+ : '');
98
+ this.clearErrors({
99
+ preserveCompilationError: options?.preserveCompilationError,
100
+ });
101
+ }
102
+ catch (error) {
103
+ assertErrorThrown(error);
104
+ this.editorStore.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.PARSING_FAILURE), error);
105
+ }
106
+ }
107
+ else {
108
+ this.clearErrors();
109
+ this.setLambdaString('');
110
+ }
111
+ }
112
+ get hashCode() {
113
+ return hashArray([
114
+ DATA_QUALITY_HASH_STRUCTURE.DATA_QUALITY_RELATION_VALIDATION,
115
+ this.lambdaString,
116
+ ]);
117
+ }
118
+ }
119
+ //# sourceMappingURL=DataQualityRelationValidationState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataQualityRelationValidationState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityRelationValidationState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAEL,sBAAsB,GACvB,MAAM,mGAAmG,CAAC;AAC3G,OAAO,EAAoB,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAEL,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,8BAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAClE,OAAO,EACL,0CAA0C,EAC1C,qCAAqC,GACtC,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,oDAAoD,CAAC;AACjG,OAAO,EAAE,8CAA8C,EAAE,MAAM,qDAAqD,CAAC;AAGrH,MAAM,OAAO,kCAAmC,SAAQ,iBAAiB;IACvE,kBAAkB,CAAgC;IAClD,WAAW,CAAc;IACzB,sBAAsB,GAAG,KAAK,CAAC;IAC/B,+BAA+B,CAEjB;IACd,YACE,kBAAiD,EACjD,WAAwB;QAExB,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAElB,cAAc,CAAC,IAAI,EAAE;YACnB,kBAAkB,EAAE,UAAU;YAC9B,WAAW,EAAE,UAAU;YACvB,sBAAsB,EAAE,UAAU;YAClC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mBAAmB,CAAC,WAAW,CAAC;oBACvC,CAAC,CAAC,EAAE,CACP,CAAC;gBACF,IAAI,CAAC,WAAW,CAAC;oBACf,wBAAwB,EAAE,OAAO,EAAE,wBAAwB;iBAC5D,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;gBACzB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAChD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAC,EACpD,KAAK,CACN,CAAC;YACJ,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,2BAA2B,CAAC,gCAAgC;YAC5D,IAAI,CAAC,YAAY;SAClB,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataQualityResultState.d.ts","sourceRoot":"","sources":["../../../src/components/states/DataQualityResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAGnB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAIZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,aAAa,OAAO,CAAC;AAClC,qBAAa,sBAAsB;IACjC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAEhD,YAAY,SAAiB;IAC7B,eAAe,cAAwB;IACvC,cAAc,UAA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AAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAEhD,YAAY,SAAiB;IAC7B,eAAe,cAAwB;IACvC,cAAc,UAAS;IACvB,gBAAgB,UAAS;IACzB,eAAe,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,eAAe,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,CAAa;IAClE,wBAAwB,UAAS;gBAErB,gBAAgB,EAAE,gBAAgB;IA0B9C,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIrC,kBAAkB,CAAC,GAAG,EAAE,eAAe,GAAG,SAAS,GAAG,IAAI;IAI1D,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAInD,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIlC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GAAG,IAAI;IAIvE,IAAI,oBAAoB,IAAI,OAAO,CAKlC;IAEA,QAAQ,IAAI,WAAW,CAAC,IAAI,CAAC;IA4C7B,WAAW,IAAI,WAAW,CAAC,IAAI,CAAC;IAiBhC,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,WAAW,CAAC,IAAI,CAAC;CAsDjD"}
@@ -81,7 +81,10 @@ export class DataQualityResultState {
81
81
  const packagePath = this.dataQualityState.constraintsConfigurationElement.path;
82
82
  const model = this.dataQualityState.graphManagerState.graph;
83
83
  const stopWatch = new StopWatch();
84
- promise = getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).execute(model, this.dataQualityState.lambdaParameterValues, packagePath, this.previewLimit);
84
+ promise = getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).execute(model, packagePath, {
85
+ lambdaParameterValues: this.dataQualityState.lambdaParameterValues,
86
+ previewLimit: this.previewLimit,
87
+ });
85
88
  this.setQueryRunPromise(promise);
86
89
  const result = (yield promise);
87
90
  if (this.queryRunPromise === promise) {
@@ -123,13 +126,13 @@ export class DataQualityResultState {
123
126
  let rawPlan;
124
127
  const stopWatch = new StopWatch();
125
128
  if (debug) {
126
- const debugResult = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).debugExecutionPlanGeneration(model, packagePath));
129
+ const debugResult = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).debugExecutionPlanGeneration(model, packagePath, {}));
127
130
  rawPlan = debugResult.plan;
128
131
  this.executionPlanState.setDebugText(debugResult.debug);
129
132
  }
130
133
  else {
131
134
  QueryBuilderTelemetryHelper.logEvent_ExecutionPlanGenerationLaunched(this.dataQualityState.applicationStore.telemetryService);
132
- rawPlan = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).generatePlan(model, packagePath));
135
+ rawPlan = (yield getDataQualityPureGraphManagerExtension(this.dataQualityState.graphManagerState.graphManager).generatePlan(model, packagePath, {}));
133
136
  }
134
137
  stopWatch.record();
135
138
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"DataQualityResultState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAu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kB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YAC3C,CAAC;YAAC,MAAM,CAAC;gBACP,YAAY;YACd,CAAC;YACD,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;QACtE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACrD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACpE,KAAK,CACN,CAAC;QACJ,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;QAChC,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"DataQualityResultState.js","sourceRoot":"","sources":["../../../src/components/states/DataQualityResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,SAAS,GACV,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,uCAAuC,EAAE,MAAM,gFAAgF,CAAC;AAEzI,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC;AAClC,MAAM,OAAO,sBAAsB;IACxB,gBAAgB,CAAmB;IACnC,kBAAkB,CAAqB;IAEhD,YAAY,GAAG,aAAa,CAAC;IAC7B,eAAe,GAAG,WAAW,CAAC,MAA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