@truedat/dq 5.2.5 → 5.2.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,6 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## [5.2.5] 2023-02-07
3
+ ## [5.2.6] 2023-02-27
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5613] Also consider "edit as form implementation" / "edit as raw
8
+ implementation"
9
+
10
+ ## [5.2.5] 2023-02-27
4
11
 
5
12
  ### Fixed
6
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "5.2.5",
3
+ "version": "5.2.6",
4
4
  "description": "Truedat Web Data Quality Module",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -118,5 +118,5 @@
118
118
  "react-dom": ">= 16.8.6 < 17",
119
119
  "semantic-ui-react": ">= 2.0.3 < 2.2"
120
120
  },
121
- "gitHead": "c98dc58ea461988def656711e96c17144fc8497a"
121
+ "gitHead": "fba811a4e98fc0cd90286775f6513f053a126bb7"
122
122
  }
@@ -81,7 +81,7 @@ export const ImplementationsRoutes = ({
81
81
  ruleImplementationLoaded,
82
82
  structuresAliasesLoading,
83
83
  systemsLoading,
84
- isRuleImplemenationBasic,
84
+ implementationType,
85
85
  }) => {
86
86
  const authorized = useAuthorized();
87
87
  const { rule_result_id: ruleResultId } = useParams();
@@ -184,11 +184,12 @@ export const ImplementationsRoutes = ({
184
184
  {!structuresAliasesLoading &&
185
185
  ruleImplementationLoaded &&
186
186
  implementationStructuresLoaded ? (
187
- isRuleImplemenationBasic ? (
187
+ implementationType === "basic" ? (
188
188
  <NewBasicRuleImplementation edition clone />
189
189
  ) : (
190
190
  <>
191
- {ruleImplementationLoaded ? (
191
+ {ruleImplementationLoaded &&
192
+ implementationType === "default" ? (
192
193
  <ImplementationStructuresLoader
193
194
  structureIds={implementationStructures}
194
195
  />
@@ -207,11 +208,12 @@ export const ImplementationsRoutes = ({
207
208
  <>
208
209
  {!structuresAliasesLoading &&
209
210
  implementationStructuresLoaded ? (
210
- isRuleImplemenationBasic ? (
211
+ implementationType === "basic" ? (
211
212
  <NewBasicRuleImplementation edition />
212
213
  ) : (
213
214
  <>
214
- {ruleImplementationLoaded ? (
215
+ {ruleImplementationLoaded &&
216
+ implementationType === "default" ? (
215
217
  <ImplementationStructuresLoader
216
218
  structureIds={implementationStructures}
217
219
  />
@@ -228,11 +230,6 @@ export const ImplementationsRoutes = ({
228
230
  path={IMPLEMENTATION_EDIT_AS_DEFAULT}
229
231
  render={() => (
230
232
  <>
231
- {ruleImplementationLoaded ? (
232
- <ImplementationStructuresLoader
233
- structureIds={implementationStructures}
234
- />
235
- ) : null}
236
233
  {!structuresAliasesLoading &&
237
234
  ruleImplementationLoaded &&
238
235
  implementationStructuresLoaded ? (
@@ -249,11 +246,6 @@ export const ImplementationsRoutes = ({
249
246
  path={IMPLEMENTATION_EDIT_AS_RAW}
250
247
  render={() => (
251
248
  <>
252
- {ruleImplementationLoaded ? (
253
- <ImplementationStructuresLoader
254
- structureIds={implementationStructures}
255
- />
256
- ) : null}
257
249
  {!structuresAliasesLoading &&
258
250
  ruleImplementationLoaded &&
259
251
  implementationStructuresLoaded ? (
@@ -444,7 +436,7 @@ ImplementationsRoutes.propTypes = {
444
436
  ruleImplementationLoaded: PropTypes.bool,
445
437
  structuresAliasesLoading: PropTypes.bool,
446
438
  systemsLoading: PropTypes.bool,
447
- isRuleImplemenationBasic: PropTypes.bool,
439
+ implementationType: PropTypes.string,
448
440
  };
449
441
 
450
442
  export const mapStateToProps = (state) => ({
@@ -454,8 +446,7 @@ export const mapStateToProps = (state) => ({
454
446
  !state.ruleImplementationLoading && !_.isEmpty(state.ruleImplementation),
455
447
  structuresAliasesLoading: state.structuresAliasesLoading,
456
448
  systemsLoading: state.systemsLoading,
457
- isRuleImplemenationBasic:
458
- state.ruleImplementation?.implementation_type == "basic",
449
+ implementationType: state.ruleImplementation?.implementation_type,
459
450
  });
460
451
 
461
452
  export default connect(mapStateToProps)(ImplementationsRoutes);