We see a flag "useIdPropertyToDetermineEquality" is passed to find difference between json's based on ID , but we see even if if just interchange objects in array, it still shows the difference looks like it is not finding the the diffrenece based on ID.
Test Scenario - we have two json files 1. Base json 2. Modified json
In Modified Json file interchanged the position of "col-cc646" and "row-264d9"
Expected Result - If "useIdPropertyToDetermineEquality" is set to true, there should be no difference
Actual Result - There is difference created for this.
Json used for testing -
Base json -
[
{
"id": "txtGroupID",
"parentId": "col-cc646",
"type": "erp-text-box",
"guid": "968fbf82-075e-4309-a0c5-4135f97f3223",
"uniqueName": "txtGroupID",
"caption": "Group ID",
"visible": true,
"epiKeyField": false,
"epBinding": "ProcParam.GroupID",
"tabIndex": 1,
"enabled": true,
"readOnly": false,
"multiline": false
},
{
"id": "col-cc646",
"parentId": "row-264d9",
"type": "Div",
"class": "col",
"guid": "",
"uniqueName": "col-cc646"
},
{
"id": "row-264d9",
"parentId": "ReportOptions",
"type": "Div",
"class": "row",
"orientation": "vertical",
"uniqueName": "row-264d9",
"guid": "264d9476-4643-451e-bf07-5f18b770f4e5"
}
]
Modifed json -
[
{
"id": "txtGroupID",
"parentId": "col-cc646",
"type": "erp-text-box",
"guid": "968fbf82-075e-4309-a0c5-4135f97f3223",
"uniqueName": "txtGroupID",
"caption": "Group ID",
"visible": true,
"epiKeyField": false,
"epBinding": "ProcParam.GroupID",
"tabIndex": 1,
"enabled": true,
"readOnly": false,
"multiline": false
},
{
"id": "row-264d9",
"parentId": "ReportOptions",
"type": "Div",
"class": "row",
"orientation": "vertical",
"uniqueName": "row-264d9",
"guid": "264d9476-4643-451e-bf07-5f18b770f4e5"
},
{
"id": "col-cc646",
"parentId": "row-264d9",
"type": "Div",
"class": "col",
"guid": "",
"uniqueName": "col-cc646"
}
]
We see a flag "useIdPropertyToDetermineEquality" is passed to find difference between json's based on ID , but we see even if if just interchange objects in array, it still shows the difference looks like it is not finding the the diffrenece based on ID.
Test Scenario - we have two json files 1. Base json 2. Modified json
In Modified Json file interchanged the position of "col-cc646" and "row-264d9"
Expected Result - If "useIdPropertyToDetermineEquality" is set to true, there should be no difference
Actual Result - There is difference created for this.
Json used for testing -
Base json -
[
{
"id": "txtGroupID",
"parentId": "col-cc646",
"type": "erp-text-box",
"guid": "968fbf82-075e-4309-a0c5-4135f97f3223",
"uniqueName": "txtGroupID",
"caption": "Group ID",
"visible": true,
"epiKeyField": false,
"epBinding": "ProcParam.GroupID",
"tabIndex": 1,
"enabled": true,
"readOnly": false,
"multiline": false
},
{
"id": "col-cc646",
"parentId": "row-264d9",
"type": "Div",
"class": "col",
"guid": "",
"uniqueName": "col-cc646"
},
{
"id": "row-264d9",
"parentId": "ReportOptions",
"type": "Div",
"class": "row",
"orientation": "vertical",
"uniqueName": "row-264d9",
"guid": "264d9476-4643-451e-bf07-5f18b770f4e5"
}
]
Modifed json -
[
{
"id": "txtGroupID",
"parentId": "col-cc646",
"type": "erp-text-box",
"guid": "968fbf82-075e-4309-a0c5-4135f97f3223",
"uniqueName": "txtGroupID",
"caption": "Group ID",
"visible": true,
"epiKeyField": false,
"epBinding": "ProcParam.GroupID",
"tabIndex": 1,
"enabled": true,
"readOnly": false,
"multiline": false
},
{
"id": "row-264d9",
"parentId": "ReportOptions",
"type": "Div",
"class": "row",
"orientation": "vertical",
"uniqueName": "row-264d9",
"guid": "264d9476-4643-451e-bf07-5f18b770f4e5"
},
{
"id": "col-cc646",
"parentId": "row-264d9",
"type": "Div",
"class": "col",
"guid": "",
"uniqueName": "col-cc646"
}
]