Skip to content

Commit f9029d8

Browse files
fsnowyakov-feldman
authored andcommitted
DHFPROD-7002: GH 5308 - targetEntity still being set on new match/merge steps instead of targetEntityType
1 parent 978d5dc commit f9029d8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/artifacts/matching.sjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function defaultArtifact(artifactName) {
7272
batchSize: 100,
7373
sourceDatabase: dataHub.config.FINALDATABASE,
7474
targetDatabase: dataHub.config.FINALDATABASE,
75-
targetEntity: "Change this to a valid entity type name; e.g. Customer",
75+
targetEntityType: "Change this to a valid entity type name; e.g. Customer",
7676
sourceQuery: "cts.collectionQuery('Change this to a valid collection name; e.g. Customer')",
7777
collections: [
7878
"mastering-summary"

marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/artifacts/merging.sjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function defaultArtifact(artifactName) {
7474
sourceDatabase: dataHub.config.FINALDATABASE,
7575
targetDatabase: dataHub.config.FINALDATABASE,
7676
permissions: defaultPermissions,
77-
targetEntity: "Change this to a valid entity type name; e.g. Customer",
77+
targetEntityType: "Change this to a valid entity type name; e.g. Customer",
7878
sourceQuery: "cts.collectionQuery('mastering-summary')",
7979
provenanceGranularityLevel: 'coarse',
8080
collections: [],

marklogic-data-hub/src/test/java/com/marklogic/hub/scaffolding/CreateDefaultFlowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void test() {
1717
File file = new ScaffoldingImpl(getHubConfig()).createDefaultFlow("defaultFlowTest");
1818
ObjectNode json = readJsonObject(file);
1919
JsonNode mappingStep = json.get("steps").get("2");
20-
20+
2121
assertEquals("mapping-step", mappingStep.get("name").asText());
2222
assertEquals(
2323
"Change this to a valid entity type name; e.g. Customer",

marklogic-data-hub/src/test/java/com/marklogic/hub/scaffolding/CreateStepTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private void verifyStep(String stepName, JsonNode step, String stepType){
176176
else if ("matching".equalsIgnoreCase(stepType) || "merging".equalsIgnoreCase(stepType)){
177177
assertEquals("query", step.get("selectedSource").asText());
178178
assertEquals("json", step.get("targetFormat").asText());
179-
assertEquals("Change this to a valid entity type name; e.g. Customer", step.get("targetEntity").asText());
179+
assertEquals("Change this to a valid entity type name; e.g. Customer", step.get("targetEntityType").asText());
180180
assertEquals(false, step.get("stepUpdate").asBoolean());
181181
if ("matching".equalsIgnoreCase(stepType)) {
182182
assertNotNull( step.get("matchRulesets"));

0 commit comments

Comments
 (0)