You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: marklogic-data-hub-central/src/main/java/com/marklogic/hub/central/controllers/steps/MergingStepController.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -88,8 +88,8 @@ public ResponseEntity<JsonNode> calculateMergingActivity(@PathVariable String st
88
88
@ResponseBody
89
89
@ApiOperation(value = "Validate the merging step")
it("Click on merge rule Address and validate warnings",()=>{
114
-
cy.findByText("Address").click();
114
+
cy.findAllByText("Address").first().click();
115
115
cy.get("[name=\"maxValues\"]").first().check();
116
116
mergeRuleModal.saveButton().click();
117
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
117
+
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Addressallows only a single value.\nIn every merge rule for the property Address set Max Values or Max Sources to 1.");
118
118
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
119
119
mergeRuleModal.ruleMaxValuesInput("1");
120
120
mergeRuleModal.saveButton().click();
121
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
122
-
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
121
+
curatePage.alertMessage().should("not.exist");
122
+
cy.findAllByText("Address").first().click();
123
+
cy.get("[name=\"maxValues\"]").first().check();
123
124
mergeRuleModal.ruleMaxValuesInput("0");
124
125
mergeRuleModal.ruleMaxScoreInput("1");
125
126
mergeRuleModal.saveButton().click();
126
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
127
-
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
127
+
curatePage.alertMessage().should("not.exist");
128
+
cy.findAllByText("Address").first().click();
129
+
cy.get("[name=\"maxValues\"]").first().check();
128
130
mergeRuleModal.ruleMaxScoreInput("0");
129
131
mergeRuleModal.saveButton().click();
130
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
132
+
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Addressallows only a single value.\nIn every merge rule for the property Address set Max Values or Max Sources to 1.");
131
133
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
132
134
mergeRuleModal.ruleMaxValuesInput("1");
133
135
mergeRuleModal.ruleMaxScoreInput("2");
134
136
mergeRuleModal.saveButton().click();
135
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
136
-
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
137
+
curatePage.alertMessage().should("not.exist");
138
+
cy.findAllByText("Address").first().click();
139
+
cy.get("[name=\"maxValues\"]").first().check();
137
140
mergeRuleModal.ruleMaxValuesInput("2");
138
141
mergeRuleModal.ruleMaxScoreInput("2");
139
142
mergeRuleModal.saveButton().click();
140
-
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
143
+
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Addressallows only a single value.\nIn every merge rule for the property Address set Max Values or Max Sources to 1.");
141
144
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Address, DateOfBirth, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property Address, DateOfBirth, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
166
+
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Addressallows only a single value.\nIn every merge rule for the property Address set Max Values or Max Sources to 1.");
164
167
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname allows only a single value.\nIn every merge rule for the property Address, DateOfBirth, ZipCode, id, SSN, lname, desc, fname set Max Values or Max Sources to 1.");
176
+
mergeRuleModal.alertMessage().should("have.text","Warning: The current merge settings might produce merged documents that are inconsistent with the entity type\nIn the entity type Person, the property or properties Addressallows only a single value.\nIn every merge rule for the property Address set Max Values or Max Sources to 1.");
174
177
mergeRuleModal.alertDescription().should("have.text","Please set max values for property to 1 on merge to avoid an invalid entity instance.");
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/data-services/mastering/validateMergingStep.api
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,12 @@
10
10
"name": "view",
11
11
"desc": "Designates the view the messages are for. Valid values are 'settings' or 'rules'",
12
12
"datatype": "string"
13
+
},
14
+
{
15
+
"name": "entityPropertyPath",
16
+
"desc": "Restricts property warnings to a given entity property path",
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/data-services/mastering/validateMergingStep.sjs
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/main/resources/ml-modules/root/data-hub/5/data-services/mastering/validateMergingStepLib.sjs
Copy file name to clipboardExpand all lines: marklogic-data-hub/src/test/ml-modules/root/test/suites/data-hub/5/data-services/mastering/previewMatchingActivity/setup.xqy
0 commit comments