Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of useIdPropertyToDetermineEquality #10

Open
madhavhs opened this issue Oct 25, 2019 · 0 comments
Open

Usage of useIdPropertyToDetermineEquality #10

madhavhs opened this issue Oct 25, 2019 · 0 comments

Comments

@madhavhs
Copy link

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"
}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant