@truedat/dq 5.2.6 → 5.2.7

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
+ ## [5.2.7] 2023-02-28
4
+
5
+ ### Fixed
6
+
7
+ - [TD-5613] Structure loading implementation routes
8
+
3
9
  ## [5.2.6] 2023-02-27
4
10
 
5
11
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
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": "fba811a4e98fc0cd90286775f6513f053a126bb7"
121
+ "gitHead": "402914140cf2839151e4afd202cbf20bebc37c40"
122
122
  }
@@ -81,7 +81,7 @@ export const ImplementationsRoutes = ({
81
81
  ruleImplementationLoaded,
82
82
  structuresAliasesLoading,
83
83
  systemsLoading,
84
- implementationType,
84
+ isRuleImplemenationBasic,
85
85
  }) => {
86
86
  const authorized = useAuthorized();
87
87
  const { rule_result_id: ruleResultId } = useParams();
@@ -181,21 +181,18 @@ export const ImplementationsRoutes = ({
181
181
  path={IMPLEMENTATION_CLONE}
182
182
  render={() => (
183
183
  <>
184
+ {ruleImplementationLoaded ? (
185
+ <ImplementationStructuresLoader
186
+ structureIds={implementationStructures}
187
+ />
188
+ ) : null}
184
189
  {!structuresAliasesLoading &&
185
190
  ruleImplementationLoaded &&
186
191
  implementationStructuresLoaded ? (
187
- implementationType === "basic" ? (
192
+ isRuleImplemenationBasic ? (
188
193
  <NewBasicRuleImplementation edition clone />
189
194
  ) : (
190
- <>
191
- {ruleImplementationLoaded &&
192
- implementationType === "default" ? (
193
- <ImplementationStructuresLoader
194
- structureIds={implementationStructures}
195
- />
196
- ) : null}
197
- <NewRuleImplementation edition clone />
198
- </>
195
+ <NewRuleImplementation edition clone />
199
196
  )
200
197
  ) : null}
201
198
  </>
@@ -206,20 +203,18 @@ export const ImplementationsRoutes = ({
206
203
  path={IMPLEMENTATION_EDIT}
207
204
  render={() => (
208
205
  <>
206
+ {ruleImplementationLoaded ? (
207
+ <ImplementationStructuresLoader
208
+ structureIds={implementationStructures}
209
+ />
210
+ ) : null}
209
211
  {!structuresAliasesLoading &&
212
+ ruleImplementationLoaded &&
210
213
  implementationStructuresLoaded ? (
211
- implementationType === "basic" ? (
214
+ isRuleImplemenationBasic ? (
212
215
  <NewBasicRuleImplementation edition />
213
216
  ) : (
214
- <>
215
- {ruleImplementationLoaded &&
216
- implementationType === "default" ? (
217
- <ImplementationStructuresLoader
218
- structureIds={implementationStructures}
219
- />
220
- ) : null}
221
- <NewRuleImplementation edition />
222
- </>
217
+ <NewRuleImplementation edition />
223
218
  )
224
219
  ) : null}
225
220
  </>
@@ -230,6 +225,11 @@ export const ImplementationsRoutes = ({
230
225
  path={IMPLEMENTATION_EDIT_AS_DEFAULT}
231
226
  render={() => (
232
227
  <>
228
+ {ruleImplementationLoaded ? (
229
+ <ImplementationStructuresLoader
230
+ structureIds={implementationStructures}
231
+ />
232
+ ) : null}
233
233
  {!structuresAliasesLoading &&
234
234
  ruleImplementationLoaded &&
235
235
  implementationStructuresLoaded ? (
@@ -246,6 +246,11 @@ export const ImplementationsRoutes = ({
246
246
  path={IMPLEMENTATION_EDIT_AS_RAW}
247
247
  render={() => (
248
248
  <>
249
+ {ruleImplementationLoaded ? (
250
+ <ImplementationStructuresLoader
251
+ structureIds={implementationStructures}
252
+ />
253
+ ) : null}
249
254
  {!structuresAliasesLoading &&
250
255
  ruleImplementationLoaded &&
251
256
  implementationStructuresLoaded ? (
@@ -436,7 +441,7 @@ ImplementationsRoutes.propTypes = {
436
441
  ruleImplementationLoaded: PropTypes.bool,
437
442
  structuresAliasesLoading: PropTypes.bool,
438
443
  systemsLoading: PropTypes.bool,
439
- implementationType: PropTypes.string,
444
+ isRuleImplemenationBasic: PropTypes.bool,
440
445
  };
441
446
 
442
447
  export const mapStateToProps = (state) => ({
@@ -446,7 +451,8 @@ export const mapStateToProps = (state) => ({
446
451
  !state.ruleImplementationLoading && !_.isEmpty(state.ruleImplementation),
447
452
  structuresAliasesLoading: state.structuresAliasesLoading,
448
453
  systemsLoading: state.systemsLoading,
449
- implementationType: state.ruleImplementation?.implementation_type,
454
+ isRuleImplemenationBasic:
455
+ state.ruleImplementation?.implementation_type == "basic",
450
456
  });
451
457
 
452
458
  export default connect(mapStateToProps)(ImplementationsRoutes);