Skip to content

Conversation

joelgriffith
Copy link

Addresses #783. When I initially wrote the findBreakingArgChanges, doing comparison checks on the arg instances themselves was the state-of-the-art. It looks like the findFieldsThatChangedType now references the name property of the types to check if changes happened in a breaking way, which is what I've done in this PR.

Not sure how I can assert this correction in unit-tests... would be happy for feedback

@wincent
Copy link
Contributor

wincent commented Apr 11, 2017

Thanks for the quick fix! You're right that a unit test would be very useful here.

@joelgriffith
Copy link
Author

I'll stew over that and fix the flow issues as well...

@wincent
Copy link
Contributor

wincent commented Apr 12, 2017

I'll stew over that and fix the flow issues as well...

Awesome, thanks!

}
]);
});

Copy link
Author

Choose a reason for hiding this comment

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

This test asserts were not using instance equality to validate that an argument has changed in a breaking way (this test will fail if so)

@joelgriffith
Copy link
Author

I've verified that this works in another project as expected.

@joelgriffith joelgriffith changed the title Moving from raw instance check to name checks Moving from raw instance check to name checks in findBreakingArgChanges Apr 12, 2017
@wincent
Copy link
Contributor

wincent commented Apr 12, 2017

Looks good. Thanks for this. Will cut a release shortly to get this fix out.

@wincent wincent merged commit 0a56e28 into graphql:master Apr 12, 2017
@joelgriffith joelgriffith deleted the bugfix/find-breaking-arg-changes branch April 12, 2017 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants