@truedat/dq 4.53.5 → 4.53.6

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.53.6] 2022-10-13
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5064] Fixed Implementation key is not editable in raw implementation with
8
+ published status
9
+
3
10
  ## [4.53.4] 2022-10-07
4
11
 
5
12
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "4.53.5",
3
+ "version": "4.53.6",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.4",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "4.53.5",
37
+ "@truedat/test": "4.53.6",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -93,8 +93,8 @@
93
93
  },
94
94
  "dependencies": {
95
95
  "@apollo/client": "^3.6.4",
96
- "@truedat/core": "4.53.5",
97
- "@truedat/df": "4.53.5",
96
+ "@truedat/core": "4.53.6",
97
+ "@truedat/df": "4.53.6",
98
98
  "graphql": "^15.5.3",
99
99
  "path-to-regexp": "^1.7.0",
100
100
  "prop-types": "^15.8.1",
@@ -114,5 +114,5 @@
114
114
  "react-dom": ">= 16.8.6 < 17",
115
115
  "semantic-ui-react": ">= 0.88.2 < 2.1"
116
116
  },
117
- "gitHead": "c6d3952045da76376a962cd6309df695be40fcde"
117
+ "gitHead": "ff29c0e4f51c049077545c425533dd45a704e440"
118
118
  }
@@ -196,7 +196,6 @@ export const RuleImplementationRawForm = ({
196
196
  })}
197
197
  required
198
198
  value={implementationKey}
199
- disabled={ruleImplementation?.status === "published"}
200
199
  />
201
200
  </Form.Field>
202
201
  {_.isEmpty(rule) && !ruleImplementation?.rule_id ? (
@@ -89,6 +89,21 @@ describe("<RuleImplementationRawForm />", () => {
89
89
  expect(container).toMatchSnapshot();
90
90
  });
91
91
 
92
+ it("Implementation_key field is editable with status published", () => {
93
+ const updatedProps = _.flow(
94
+ _.set("ruleImplementation.domain_id", 1),
95
+ _.set("ruleImplementation.status", "published"),
96
+ _.set("ruleImplementation.implementation_key", "implementation_test")
97
+ )(props);
98
+ const { queryByPlaceholderText } = render(
99
+ <RuleImplementationRawForm {...updatedProps} />,
100
+ renderOpts
101
+ );
102
+ expect(
103
+ queryByPlaceholderText("Rule Implementation Key")
104
+ ).not.toBeDisabled();
105
+ });
106
+
92
107
  it("renders sources", () => {
93
108
  const { queryByRole } = render(
94
109
  <RuleImplementationRawForm {...props} />,