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

Bug Fix: No deprecation notice for field on fragment in a different document #1849

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

kvnkusch
Copy link
Contributor

@kvnkusch kvnkusch commented Mar 2, 2021

Description

There is currently no deprecated warning raised when using a deprecated field on a fragment, where that fragment is used on an operation in a different document. The culprit appears to be not passing the transformed version of the operation document (includes fragments from other documents) into findDeprecatedUsages. Included failing test case and fix.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have followed the CONTRIBUTING doc and the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

kvnkusch added 2 commits March 2, 2021 11:57
…precated field on a fragment in a different document than an operation
…an an operation. Finds deprecated fields using merged document
@kamilkisiela kamilkisiela merged commit b970740 into kamilkisiela:master Mar 3, 2021
@kamilkisiela
Copy link
Owner

Thanks, I will release it tomorrow.

@kvnkusch
Copy link
Contributor Author

Did this ever get released?

@kamilkisiela
Copy link
Owner

yes, now as v2.5.0

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

Successfully merging this pull request may close these issues.

2 participants