@finos/legend-extension-dsl-data-quality 2.0.16 → 2.0.18
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/DataQualityRelationTrialRuns.d.ts.map +1 -1
- package/lib/components/DataQualityRelationTrialRuns.js +33 -6
- package/lib/components/DataQualityRelationTrialRuns.js.map +1 -1
- package/lib/components/DataQualityRelationValidationConfigurationEditor.d.ts.map +1 -1
- package/lib/components/DataQualityRelationValidationConfigurationEditor.js +49 -4
- package/lib/components/DataQualityRelationValidationConfigurationEditor.js.map +1 -1
- package/lib/components/constants/DataQualityConstants.d.ts +1 -0
- package/lib/components/constants/DataQualityConstants.d.ts.map +1 -1
- package/lib/components/constants/DataQualityConstants.js +1 -0
- package/lib/components/constants/DataQualityConstants.js.map +1 -1
- package/lib/components/states/DataQualityRelationResultState.d.ts +7 -2
- package/lib/components/states/DataQualityRelationResultState.d.ts.map +1 -1
- package/lib/components/states/DataQualityRelationResultState.js +80 -3
- package/lib/components/states/DataQualityRelationResultState.js.map +1 -1
- package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts +8 -1
- package/lib/components/states/DataQualityRelationValidationConfigurationState.d.ts.map +1 -1
- package/lib/components/states/DataQualityRelationValidationConfigurationState.js +74 -2
- package/lib/components/states/DataQualityRelationValidationConfigurationState.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts +2 -1
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.js.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts +1 -0
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts +3 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js +26 -3
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +12 -12
- package/src/components/DataQualityRelationTrialRuns.tsx +77 -8
- package/src/components/DataQualityRelationValidationConfigurationEditor.tsx +135 -3
- package/src/components/constants/DataQualityConstants.ts +3 -0
- package/src/components/states/DataQualityRelationResultState.ts +115 -0
- package/src/components/states/DataQualityRelationValidationConfigurationState.ts +96 -0
- package/src/graph/metamodel/pure/packageableElements/data-quality/DataQualityValidationConfiguration.ts +2 -0
- package/src/graph-manager/protocol/pure/DSL_DataQuality_PureGraphManagerExtension.ts +6 -0
- package/src/graph-manager/protocol/pure/v1/V1_DSL_Data_Quality_PureGraphManagerExtension.ts +55 -5
- package/style/_data-quality-relation-validation-builder.scss +13 -0
- package/style/_data-quality-validation-builder.scss +6 -0
@@ -17,14 +17,17 @@
|
|
17
17
|
import {
|
18
18
|
type AbstractPureGraphManager,
|
19
19
|
type ExecutionResult,
|
20
|
+
type EXECUTION_SERIALIZATION_FORMAT,
|
21
|
+
type ExecutionOptions,
|
20
22
|
type GraphDataOrigin,
|
21
23
|
type PureModel,
|
22
24
|
type RawExecutionPlan,
|
23
25
|
type RootGraphFetchTree,
|
24
26
|
type V1_ExecutionResult,
|
27
|
+
type V1_ParameterValue,
|
25
28
|
type V1_PureModelContext,
|
26
29
|
type V1_RootGraphFetchTree,
|
27
|
-
|
30
|
+
V1_getEngineSerializationFormat,
|
28
31
|
LegendSDLC,
|
29
32
|
PureClientVersion,
|
30
33
|
V1_buildExecutionError,
|
@@ -32,26 +35,27 @@ import {
|
|
32
35
|
V1_ExecutionError,
|
33
36
|
V1_GraphBuilderContextBuilder,
|
34
37
|
V1_LegendSDLC,
|
38
|
+
V1_parameterValueModelSchema,
|
35
39
|
V1_ProcessingContext,
|
36
40
|
V1_Protocol,
|
37
41
|
V1_PureGraphManager,
|
38
42
|
V1_PureModelContextPointer,
|
39
43
|
V1_pureModelContextPropSchema,
|
44
|
+
V1_RemoteEngine,
|
40
45
|
V1_serializeExecutionResult,
|
41
|
-
V1_parameterValueModelSchema,
|
42
46
|
V1_transformParameterValue,
|
43
|
-
V1_RemoteEngine,
|
44
47
|
} from '@finos/legend-graph';
|
45
48
|
import { createModelSchema, optional, primitive } from 'serializr';
|
46
49
|
import {
|
47
50
|
type PlainObject,
|
48
51
|
assertErrorThrown,
|
52
|
+
customListWithSchema,
|
53
|
+
guaranteeNonNullable,
|
49
54
|
guaranteeType,
|
50
55
|
NetworkClientError,
|
51
56
|
returnUndefOnError,
|
52
57
|
SerializationFactory,
|
53
58
|
UnsupportedOperationError,
|
54
|
-
customListWithSchema,
|
55
59
|
} from '@finos/legend-shared';
|
56
60
|
import { DSL_DataQuality_PureGraphManagerExtension } from '../DSL_DataQuality_PureGraphManagerExtension.js';
|
57
61
|
import {
|
@@ -123,6 +127,7 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
|
|
123
127
|
input: PlainObject<V1_DQExecuteInput>,
|
124
128
|
options?: {
|
125
129
|
returnAsResponse?: boolean;
|
130
|
+
serializationFormat?: EXECUTION_SERIALIZATION_FORMAT | undefined;
|
126
131
|
},
|
127
132
|
): Promise<PlainObject<V1_ExecutionResult> | Response> => {
|
128
133
|
// TODO: improve abstraction so that we do not need to access the engine server client directly
|
@@ -137,7 +142,11 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
|
|
137
142
|
input,
|
138
143
|
{},
|
139
144
|
undefined,
|
140
|
-
|
145
|
+
{
|
146
|
+
serializationFormat: options?.serializationFormat
|
147
|
+
? V1_getEngineSerializationFormat(options.serializationFormat)
|
148
|
+
: undefined,
|
149
|
+
},
|
141
150
|
{ enableCompression: true },
|
142
151
|
{
|
143
152
|
skipProcessing: Boolean(options?.returnAsResponse),
|
@@ -158,6 +167,33 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
|
|
158
167
|
).text();
|
159
168
|
}
|
160
169
|
|
170
|
+
private async export(
|
171
|
+
input: V1_DQExecuteInput,
|
172
|
+
options?: ExecutionOptions,
|
173
|
+
): Promise<Response> {
|
174
|
+
try {
|
175
|
+
return guaranteeNonNullable(
|
176
|
+
(await this.executeValidation(
|
177
|
+
V1_DQExecuteInput.serialization.toJson(input),
|
178
|
+
{
|
179
|
+
serializationFormat: options?.serializationFormat,
|
180
|
+
returnAsResponse: true,
|
181
|
+
},
|
182
|
+
)) as Response,
|
183
|
+
);
|
184
|
+
} catch (error) {
|
185
|
+
assertErrorThrown(error);
|
186
|
+
if (error instanceof NetworkClientError) {
|
187
|
+
throw V1_buildExecutionError(
|
188
|
+
V1_ExecutionError.serialization.fromJson(
|
189
|
+
error.payload as PlainObject<V1_ExecutionError>,
|
190
|
+
),
|
191
|
+
);
|
192
|
+
}
|
193
|
+
throw error;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
161
197
|
createExecutionInput(
|
162
198
|
graph: PureModel,
|
163
199
|
packagePath: string,
|
@@ -250,6 +286,20 @@ export class V1_DSL_Data_Quality_PureGraphManagerExtension extends DSL_DataQuali
|
|
250
286
|
}
|
251
287
|
};
|
252
288
|
|
289
|
+
exportData = async (
|
290
|
+
graph: PureModel,
|
291
|
+
packagePath: string,
|
292
|
+
options: DQExecuteInputOptions,
|
293
|
+
): Promise<Response> => {
|
294
|
+
const input = this.createExecutionInput(
|
295
|
+
graph,
|
296
|
+
packagePath,
|
297
|
+
new V1_DQExecuteInput(),
|
298
|
+
options,
|
299
|
+
);
|
300
|
+
return this.export(input, options);
|
301
|
+
};
|
302
|
+
|
253
303
|
debugExecutionPlanGeneration = async (
|
254
304
|
graph: PureModel,
|
255
305
|
packagePath: string,
|
@@ -191,6 +191,19 @@
|
|
191
191
|
|
192
192
|
@include flexVCenter;
|
193
193
|
@include flexHSpaceBetween;
|
194
|
+
|
195
|
+
&__action {
|
196
|
+
display: flex;
|
197
|
+
height: 2.8rem;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
&__header-group {
|
202
|
+
display: flex;
|
203
|
+
flex-direction: row;
|
204
|
+
color: var(--color-light-grey-300);
|
205
|
+
|
206
|
+
@include flexVCenter;
|
194
207
|
}
|
195
208
|
|
196
209
|
&__header-right {
|
@@ -1316,11 +1316,17 @@
|
|
1316
1316
|
width: 100%;
|
1317
1317
|
}
|
1318
1318
|
|
1319
|
+
.panel__header {
|
1320
|
+
margin-right: 0.5rem;
|
1321
|
+
}
|
1322
|
+
|
1319
1323
|
&__content {
|
1320
1324
|
position: relative;
|
1321
1325
|
}
|
1322
1326
|
|
1323
1327
|
&__analytics {
|
1328
|
+
display: flex;
|
1329
|
+
justify-content: center;
|
1324
1330
|
font-size: 1.2rem;
|
1325
1331
|
color: var(--color-dark-grey-400);
|
1326
1332
|
margin-left: 0.5rem;
|