@truedat/dq 5.2.4 → 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,5 +1,18 @@
1
1
  # Changelog
2
2
 
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
11
+
12
+ ### Fixed
13
+
14
+ - [TD-5613] Avoid basic implementation structure fetch
15
+
3
16
  ## [5.2.2] 2023-02-22
4
17
 
5
18
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truedat/dq",
3
- "version": "5.2.4",
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": "30945576a3812f88a70b30553caec79bb8957d5c"
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();
@@ -181,18 +181,21 @@ export const ImplementationsRoutes = ({
181
181
  path={IMPLEMENTATION_CLONE}
182
182
  render={() => (
183
183
  <>
184
- {ruleImplementationLoaded ? (
185
- <ImplementationStructuresLoader
186
- structureIds={implementationStructures}
187
- />
188
- ) : null}
189
184
  {!structuresAliasesLoading &&
190
185
  ruleImplementationLoaded &&
191
186
  implementationStructuresLoaded ? (
192
- isRuleImplemenationBasic ? (
187
+ implementationType === "basic" ? (
193
188
  <NewBasicRuleImplementation edition clone />
194
189
  ) : (
195
- <NewRuleImplementation edition clone />
190
+ <>
191
+ {ruleImplementationLoaded &&
192
+ implementationType === "default" ? (
193
+ <ImplementationStructuresLoader
194
+ structureIds={implementationStructures}
195
+ />
196
+ ) : null}
197
+ <NewRuleImplementation edition clone />
198
+ </>
196
199
  )
197
200
  ) : null}
198
201
  </>
@@ -203,18 +206,20 @@ export const ImplementationsRoutes = ({
203
206
  path={IMPLEMENTATION_EDIT}
204
207
  render={() => (
205
208
  <>
206
- {ruleImplementationLoaded ? (
207
- <ImplementationStructuresLoader
208
- structureIds={implementationStructures}
209
- />
210
- ) : null}
211
209
  {!structuresAliasesLoading &&
212
- ruleImplementationLoaded &&
213
210
  implementationStructuresLoaded ? (
214
- isRuleImplemenationBasic ? (
211
+ implementationType === "basic" ? (
215
212
  <NewBasicRuleImplementation edition />
216
213
  ) : (
217
- <NewRuleImplementation edition />
214
+ <>
215
+ {ruleImplementationLoaded &&
216
+ implementationType === "default" ? (
217
+ <ImplementationStructuresLoader
218
+ structureIds={implementationStructures}
219
+ />
220
+ ) : null}
221
+ <NewRuleImplementation edition />
222
+ </>
218
223
  )
219
224
  ) : null}
220
225
  </>
@@ -225,11 +230,6 @@ export const ImplementationsRoutes = ({
225
230
  path={IMPLEMENTATION_EDIT_AS_DEFAULT}
226
231
  render={() => (
227
232
  <>
228
- {ruleImplementationLoaded ? (
229
- <ImplementationStructuresLoader
230
- structureIds={implementationStructures}
231
- />
232
- ) : null}
233
233
  {!structuresAliasesLoading &&
234
234
  ruleImplementationLoaded &&
235
235
  implementationStructuresLoaded ? (
@@ -246,11 +246,6 @@ 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}
254
249
  {!structuresAliasesLoading &&
255
250
  ruleImplementationLoaded &&
256
251
  implementationStructuresLoaded ? (
@@ -441,7 +436,7 @@ ImplementationsRoutes.propTypes = {
441
436
  ruleImplementationLoaded: PropTypes.bool,
442
437
  structuresAliasesLoading: PropTypes.bool,
443
438
  systemsLoading: PropTypes.bool,
444
- isRuleImplemenationBasic: PropTypes.bool,
439
+ implementationType: PropTypes.string,
445
440
  };
446
441
 
447
442
  export const mapStateToProps = (state) => ({
@@ -451,8 +446,7 @@ export const mapStateToProps = (state) => ({
451
446
  !state.ruleImplementationLoading && !_.isEmpty(state.ruleImplementation),
452
447
  structuresAliasesLoading: state.structuresAliasesLoading,
453
448
  systemsLoading: state.systemsLoading,
454
- isRuleImplemenationBasic:
455
- state.ruleImplementation?.implementation_type == "basic",
449
+ implementationType: state.ruleImplementation?.implementation_type,
456
450
  });
457
451
 
458
452
  export default connect(mapStateToProps)(ImplementationsRoutes);