@truedat/dq 4.50.2 → 4.51.0
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/CHANGELOG.md +12 -0
- package/package.json +4 -4
- package/src/api/queries.js +33 -0
- package/src/components/ExecutionGroup.js +28 -22
- package/src/components/ExecutionGroupBreadcrumbs.js +25 -0
- package/src/components/ExecutionGroupContent.js +42 -0
- package/src/components/ExecutionGroupLink.js +18 -0
- package/src/components/ExecutionGroupLoader.js +1 -2
- package/src/components/ExecutionGroupMessage.js +1 -1
- package/src/components/ExecutionGroups.js +80 -0
- package/src/components/ExecutionGroupsTable.js +61 -0
- package/src/components/QualityRoutes.js +20 -12
- package/src/components/__tests__/ExecutionGroup.spec.js +44 -47
- package/src/components/__tests__/ExecutionGroupBreadcrumbs.spec.js +11 -0
- package/src/components/__tests__/ExecutionGroupContent.spec.js +30 -0
- package/src/components/__tests__/ExecutionGroupLink.spec.js +11 -0
- package/src/components/__tests__/ExecutionGroups.spec.js +51 -0
- package/src/components/__tests__/ExecutionGroupsTable.spec.js +30 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroup.spec.js.snap +136 -100
- package/src/components/__tests__/__snapshots__/ExecutionGroupBreadcrumbs.spec.js.snap +29 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroupContent.spec.js.snap +37 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroupLink.spec.js.snap +15 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroups.spec.js.snap +155 -0
- package/src/components/__tests__/__snapshots__/ExecutionGroupsTable.spec.js.snap +84 -0
- package/src/components/ruleImplementationForm/InformationForm.js +1 -0
- package/src/components/ruleImplementationForm/RuleImplementationRawForm.js +1 -0
- package/src/messages/en.js +106 -96
- package/src/messages/es.js +178 -168
- package/src/reducers/executionGroup.js +7 -1
- package/src/reducers/executionGroupLoading.js +9 -1
- package/src/selectors/__tests__/executionGroupsColumnsSelector.spec.js +19 -0
- package/src/selectors/executionGroupsColumnsSelector.js +41 -0
- package/src/selectors/index.js +1 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
clearExecutionGroup,
|
|
3
|
+
createExecutionGroup,
|
|
4
|
+
fetchExecutionGroup,
|
|
5
|
+
} from "../routines";
|
|
2
6
|
|
|
3
7
|
const initialState = null;
|
|
4
8
|
|
|
@@ -12,6 +16,8 @@ const executionGroup = (state = initialState, { type, payload }) => {
|
|
|
12
16
|
case createExecutionGroup.SUCCESS: {
|
|
13
17
|
return payload?.data;
|
|
14
18
|
}
|
|
19
|
+
case clearExecutionGroup.TRIGGER:
|
|
20
|
+
return initialState;
|
|
15
21
|
default:
|
|
16
22
|
return state;
|
|
17
23
|
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
createExecutionGroup,
|
|
3
|
+
fetchExecutionGroup,
|
|
4
|
+
clearExecutionGroup,
|
|
5
|
+
} from "../routines";
|
|
2
6
|
|
|
3
7
|
export const executionGroupLoading = (state = false, { type }) => {
|
|
4
8
|
switch (type) {
|
|
5
9
|
case fetchExecutionGroup.REQUEST:
|
|
6
10
|
return true;
|
|
11
|
+
case fetchExecutionGroup.SUCCESS:
|
|
12
|
+
return true;
|
|
7
13
|
case fetchExecutionGroup.FULFILL:
|
|
8
14
|
return false;
|
|
9
15
|
case createExecutionGroup.REQUEST:
|
|
10
16
|
return true;
|
|
11
17
|
case createExecutionGroup.FULFILL:
|
|
12
18
|
return false;
|
|
19
|
+
case clearExecutionGroup.TRIGGER:
|
|
20
|
+
return false;
|
|
13
21
|
default:
|
|
14
22
|
return state;
|
|
15
23
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defaultExecutionGroupsColumns,
|
|
3
|
+
executionGroupsColumnsSelector,
|
|
4
|
+
} from "../executionGroupsColumnsSelector";
|
|
5
|
+
|
|
6
|
+
describe("selectors: executionGroupsColumnsSelector", () => {
|
|
7
|
+
it("returns defaultExecutionGroupsColumns if executionGroupsColumns is not defined", () => {
|
|
8
|
+
expect(executionGroupsColumnsSelector({})).toBe(
|
|
9
|
+
defaultExecutionGroupsColumns
|
|
10
|
+
);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it("returns executionGroupsColumns is defined", () => {
|
|
14
|
+
const executionGroupsColumns = { foo: "foo" };
|
|
15
|
+
expect(executionGroupsColumnsSelector({ executionGroupsColumns })).toBe(
|
|
16
|
+
executionGroupsColumns
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import _ from "lodash/fp";
|
|
2
|
+
import { createSelector } from "reselect";
|
|
3
|
+
import ExecutionGroupLink from "../components/ExecutionGroupLink";
|
|
4
|
+
|
|
5
|
+
export const defaultExecutionGroupsColumns = [
|
|
6
|
+
{
|
|
7
|
+
name: "executionGroup.insertedAt",
|
|
8
|
+
width: 2,
|
|
9
|
+
fieldSelector: _.identity,
|
|
10
|
+
fieldDecorator: ExecutionGroupLink,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "executionGroup.pendingCount",
|
|
14
|
+
fieldSelector: "statusCounts.PENDING",
|
|
15
|
+
textAlign: "right",
|
|
16
|
+
width: 1,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "executionGroup.startedCount",
|
|
20
|
+
fieldSelector: "statusCounts.STARTED",
|
|
21
|
+
textAlign: "right",
|
|
22
|
+
width: 1,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "executionGroup.successCount",
|
|
26
|
+
fieldSelector: "statusCounts.SUCCEEDED",
|
|
27
|
+
textAlign: "right",
|
|
28
|
+
width: 1,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "executionGroup.failedCount",
|
|
32
|
+
fieldSelector: "statusCounts.FAILED",
|
|
33
|
+
textAlign: "right",
|
|
34
|
+
width: 1,
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export const executionGroupsColumnsSelector = createSelector(
|
|
39
|
+
_.prop("executionGroupsColumns"),
|
|
40
|
+
_.defaultTo(defaultExecutionGroupsColumns)
|
|
41
|
+
);
|
package/src/selectors/index.js
CHANGED
|
@@ -30,3 +30,4 @@ export { getRuleImplementationSelectedFilterActiveValues } from "./getRuleImplem
|
|
|
30
30
|
export { getSegmentResultsColumns } from "./getSegmentResultsColumns";
|
|
31
31
|
export * from "./getImplementationStructures";
|
|
32
32
|
export { getParsedEvents } from "./getParsedEvents";
|
|
33
|
+
export * from "./executionGroupsColumnsSelector";
|