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

Fix "Switch to HashMap for the internal representation of object fields (#872)" #926

Merged
merged 5 commits into from
May 10, 2021

Conversation

xDarksome
Copy link
Contributor

#872 has introduced broken Object::partial_eq implementation therefore rendering some tests useless.
Also, Object field merging functionality was completely removed in that PR for some reason, which should have resulted in failing tests but didn't.

#914 was caused by this and #915 partially resolved the issue by implementing the same thing in the different place.

This PR rollbacks the Object implementation to its original state, switches the underlying type to HashMap and (hopefully) breaks nothing else.

@dyedgreen
Copy link
Contributor

Do you think it makes sense to add a test for the partial eq? (I saw that it’s derived now; but having a test like this might prevent a similar regression in a future refactor; especially seeing the trait being implemented correctly is so important for a lot of the other existing tests)

@tyranron tyranron added the enhancement Improvement of existing features or bugfix label May 10, 2021
@tyranron
Copy link
Member

@dyedgreen don't think so. I think the test has sense only if the code written manually. So, it should've been added when manual implementation was added.

Copy link
Member

@tyranron tyranron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xDarksome thaks! 🍻

@tyranron tyranron merged commit 35b6643 into graphql-rust:master May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants