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

Fixed a bug which didn't allow proper comparison of objects #10089

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Dimitar5555
Copy link
Contributor

@Dimitar5555 Dimitar5555 commented Feb 3, 2024

Resolves #9502
Resolves #9788

I know this is hack, but it's the simplest solution to this problem. You could compare key by key, but if you happen to have nested objects/nested arrays of objects, it will quickly turn into recursion hell.

@tyrasd tyrasd added the bug A bug - let's fix this! label Feb 5, 2024
bhousel added a commit to facebook/Rapid that referenced this pull request Apr 29, 2024
re: #1389
re: openstreetmap/iD#10089
re: openstreetmap/iD#9502
re: openstreetmap/iD#9788

This was tricky to track down, as iD#10089 doesn't actually fix the issue
properly - really we should just not be using utilArrayIdentical with objects.

I wrote some tests to actually cover this issue and ensure that's it is fixed
correctly by comparing relation IDs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug - let's fix this!
Projects
None yet
2 participants