@truedat/dq 4.37.3 → 4.37.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.37.4] 2022-02-04
4
+
5
+ ### Changed
6
+
7
+ - [TD-4424] Disable user filters while rule filters are loading
8
+
3
9
  ## [4.37.3] 2022-02-03
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.37.3",
3
+ "version": "4.37.4",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -82,8 +82,8 @@
82
82
  },
83
83
  "dependencies": {
84
84
  "@apollo/client": "^3.4.10",
85
- "@truedat/core": "4.37.3",
86
- "@truedat/df": "4.37.3",
85
+ "@truedat/core": "4.37.4",
86
+ "@truedat/df": "4.37.4",
87
87
  "axios": "^0.19.2",
88
88
  "graphql": "^15.5.3",
89
89
  "path-to-regexp": "^1.7.0",
@@ -103,5 +103,5 @@
103
103
  "react-dom": ">= 16.8.6 < 17",
104
104
  "semantic-ui-react": ">= 0.88.2 < 2.1"
105
105
  },
106
- "gitHead": "1c418784d34e171a6d62dd7fab3dfd05400998ba"
106
+ "gitHead": "d6a390c1a843d164c28cf7ae174126b6c0e24618"
107
107
  }
@@ -29,7 +29,10 @@ const translations = (formatMessage) => ({
29
29
 
30
30
  export const mapStateToProps = (state, ownProps) => {
31
31
  const formatMessage = _.pathOr(_.prop("id"), "intl.formatMessage")(ownProps);
32
- const { ruleImplementationSelectedFilter: selectedFilter } = state;
32
+ const {
33
+ ruleImplementationFiltersLoading: loading,
34
+ ruleImplementationSelectedFilter: selectedFilter,
35
+ } = state;
33
36
  const i18nValues = _.flow(
34
37
  getRuleImplementationSelectedFilterValues,
35
38
  _.map(makeOption(translations(formatMessage), selectedFilter))
@@ -42,6 +45,7 @@ export const mapStateToProps = (state, ownProps) => {
42
45
  } = state;
43
46
 
44
47
  return {
48
+ loading,
45
49
  selectedFilter,
46
50
  selectedFilters: getRuleImplementationSelectedFilters(state),
47
51
  selectedFilterActiveValues:
@@ -29,7 +29,8 @@ const translations = (formatMessage) => ({
29
29
 
30
30
  export const mapStateToProps = (state, ownProps) => {
31
31
  const formatMessage = _.pathOr(_.prop("id"), "intl.formatMessage")(ownProps);
32
- const { ruleSelectedFilter: selectedFilter } = state;
32
+ const { ruleFiltersLoading: loading, ruleSelectedFilter: selectedFilter } =
33
+ state;
33
34
  const i18nValues = _.flow(
34
35
  getRuleSelectedFilterValues,
35
36
  _.map(makeOption(translations(formatMessage), selectedFilter))
@@ -42,6 +43,7 @@ export const mapStateToProps = (state, ownProps) => {
42
43
  } = state;
43
44
 
44
45
  return {
46
+ loading,
45
47
  selectedFilter,
46
48
  selectedFilters: getRuleSelectedFilters(state),
47
49
  selectedFilterActiveValues: getRuleSelectedFilterActiveValues(state),
@@ -17,6 +17,7 @@ import { ruleImplementation } from "./ruleImplementation";
17
17
  import { ruleImplementationCount } from "./ruleImplementationCount";
18
18
  import { ruleImplementationCreating } from "./ruleImplementationCreating";
19
19
  import { ruleImplementationFilters } from "./ruleImplementationFilters";
20
+ import { ruleImplementationFiltersLoading } from "./ruleImplementationFiltersLoading";
20
21
  import { ruleImplementationLoading } from "./ruleImplementationLoading";
21
22
  import { ruleImplementationQuery } from "./ruleImplementationQuery";
22
23
  import { ruleImplementationRaw } from "./ruleImplementationRaw";
@@ -64,6 +65,7 @@ export {
64
65
  ruleImplementationCount,
65
66
  ruleImplementationCreating,
66
67
  ruleImplementationFilters,
68
+ ruleImplementationFiltersLoading,
67
69
  ruleImplementationLoading,
68
70
  ruleImplementationQuery,
69
71
  ruleImplementationRaw,
@@ -1,7 +1,7 @@
1
1
  import _ from "lodash/fp";
2
2
  import {
3
3
  clearImplementationFilters,
4
- fetchImplementationFilters
4
+ fetchImplementationFilters,
5
5
  } from "../routines";
6
6
 
7
7
  const initialState = {};
@@ -0,0 +1,14 @@
1
+ import { fetchImplementationFilters } from "../routines";
2
+
3
+ const ruleImplementationFiltersLoading = (state = false, { type }) => {
4
+ switch (type) {
5
+ case fetchImplementationFilters.REQUEST:
6
+ return true;
7
+ case fetchImplementationFilters.FULFILL:
8
+ return false;
9
+ default:
10
+ return state;
11
+ }
12
+ };
13
+
14
+ export { ruleImplementationFiltersLoading };